Develop and Download Open Source Software

Browse Subversion Repository

Log of /trunk/teraterm/ttpcmn/ttcmn.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 10779 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 23 16:08:05 2023 UTC (9 months, 2 weeks ago) by zmatsuo
File length: 29472 byte(s)
Diff to previous 10617 , to selected 2476
CP51949 を CP949 に変更

- r10768 の修正抜け

Revision 10617 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 3 15:15:04 2023 UTC (13 months, 1 week ago) by zmatsuo
File length: 29474 byte(s)
Diff to previous 10276 , to selected 2476
lngファイル名変数を ANSI版から Unicode 版へ切り替え

- get_lang_msgW() -> GetI18nStrWW()
- SetDlgTexts() -> SetDlgTextsW()
- SetWinMenu() を SetWinMenuW() に置き換え
  - ttpcmn/ttcmn.c, def

Revision 10276 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 19 15:40:58 2022 UTC (18 months, 3 weeks ago) by zmatsuo
File length: 29465 byte(s)
Diff to previous 10130 , to selected 2476
新しい接続でcomポートが存在する時、メモリリークしていたので修正

- ComPortInfoGet() を使用するようにした
  - DetectComPorts() を使用しないようにした
- ダイアログのプロシージャ関数内でstatic変数を使用しないようにした
- comポートの情報は動的なメモリ上に取得するので内部的には上限がなくなった
  - tttypes.h で MAXCOMPORT は 4096 としてある

Revision 10130 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 9 01:08:44 2022 UTC (20 months ago) by zmatsuo
File length: 29315 byte(s)
Diff to previous 10009 , to selected 2476
ttpcmn.dll 内の関数の一部分を ttermpro.exe へ移動

- 文字列などヒープ領域を使用する箇所
  - ttcmn_static.c,h へまとめたて、ttermpro.exeへ移動
- この移動で、ttpcmn.dllとtermpro.exeでモジュールをまたいだヒープの操作はなくなった

ticket #45330

Revision 10009 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 23 23:59:07 2022 UTC (21 months, 2 weeks ago) by nmaya
File length: 36847 byte(s)
Diff to previous 9988 , to selected 2476
アイコンまわりを整理した

ディスプレイ拡大率にあったサイズのアイコンが使われるようにした
  各ウィンドウに動的にセットされるアイコン(タイトルバー・タスクバーなどで表示される)
  通知アイコン
通知アイコンにフルカラーのアイコンが使われるようにした
TTSSH から通知があったときには TTSSH のアイコンが使われるようにした
カスタム通知アイコンをセットする API を変更した

merge from branches/adjust_icon
ticket #43907, #44517

Revision 9988 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 4 13:17:12 2022 UTC (22 months, 1 week ago) by zmatsuo
File length: 37728 byte(s)
Diff to previous 9913 , to selected 2476
Unicode を ISO8859 に変換できなかった場合 '?' を出力するようにした

Revision 9913 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 8 13:25:16 2022 UTC (23 months ago) by zmatsuo
File length: 37654 byte(s)
Diff to previous 9805 , to selected 2476
Eterm風 背景画像 が設定できなくなっていたので修正

- theme/以下の設定ファイル(テーマファイル)が保存できない場合があった
- 保存できるよう修正
  - 起動時に設定ファイルがないとき、
    個人設定フォルダへ設定ファイルをコピーするが、
    そのときにthemeフォルダのファイルもコピーするようにした
  - iniファイル保存時に theme フォルダを作成するようにした
- テーマファイルの書き込み時のファイルパスをUnicode化
- ETERM_SECTION を削除
  - BG_SECTION へ置き換え
- 書き換えを行わないデータに const を追加
- far キーワードを削除

ticket #44377

Revision 9805 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 12 05:39:20 2022 UTC (2 years, 1 month ago) by zmatsuo
File length: 37669 byte(s)
Diff to previous 9743 , to selected 2476
ssh_known_hosts を起動時コピー設定ファイルに追加した

- ssh_known_hosts がないときダイアログが表示される
  - 「known_hosts 読み込み中にエラーが発生しました.」
- exeのあるフォルダの ssh_known_hosts を個人フォルダにコピーする
  - インストール直後の ssh_known_hosts はコメントのみが入っている
- ポータブル版ではコピーしないようにした
  - ポータブル版ではexeのフォルダと設定ファイルのあるフォルダが同一
- r9532

Revision 9743 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 12 15:38:15 2022 UTC (2 years, 1 month ago) by zmatsuo
File length: 37543 byte(s)
Diff to previous 9727 , to selected 2476
フォルダ文字列取得時にフォルダを作成するようにした

- つぎのAPI
  - GetHomeDirW()
  - GetLogDirW()
  - GetDownloadFolderW()
- ttermpro.exe 起動時にフォルダを作成するのをやめた
  - ttcmn.c
- _SHGetKnownFolderPath()
  - KF_FLAG_CREATE 指定時にフォルダを作成するようにした

Revision 9727 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 6 13:56:49 2022 UTC (2 years, 2 months ago) by zmatsuo
File length: 37622 byte(s)
Diff to previous 9598 , to selected 2476
ポータブル版のフォルダを考慮

- ポータブル版の判定
  - ExeDirW() (exe があるフォルダ)に portable.ini というファイルがあるとき
- ポータブル版の時の動作
  - HomeDirW() は ExeDirW() と同じフォルダを返す
  - LogDirW() は ExeDirW() + "\log" を返す

ticket #43493

Revision 9598 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 11 16:31:48 2021 UTC (2 years, 3 months ago) by zmatsuo
File length: 37617 byte(s)
Diff to previous 9584 , to selected 2476
iso8859 8ビット文字コードを使用できるようにした

- ttpdlg/ttdlg.c 内の文字コード関連部分を common/ttlib_charset.cpp に移動
- 1byte文字コードテスト用ツールを追加
  - tests/various_code_texts/dump_code.pl
- ttpcmnから../teraterm/unicode.c をリンクするようにした
  - Visual Studio 2005
  - Visual Studio 2019
  - CMakeLists.txt

Revision 9584 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 7 14:39:20 2021 UTC (2 years, 4 months ago) by zmatsuo
File length: 37454 byte(s)
Diff to previous 9570 , to selected 2476
バックアップファイルの日時文字列をISO8601基本形式に変更

Revision 9570 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 5 13:08:19 2021 UTC (2 years, 4 months ago) by zmatsuo
File length: 37539 byte(s)
Diff to previous 9568 , to selected 2476
ttermpro.exe 起動時に ini ファイルの文字コードを変換

- Windows2000以降でACPだった場合、UTF16LEへ変換
- Windows2000より前でUTF16LEだった場合、ACPへ変換
- 変換ファイル
  - TERATERM.INI
  - KEYBOARD.CNF
- 変換時、バックアップファイルを作成
- TERATERM.INI 保存時も変換
  - ttermpro.exe起動後、次の場合も考慮
    - iniファイルが入れ替えられる
    - iniファイルがなくなっている
  - 保存時バックアップファイルも作成
- imgrate_to_5.html の説明を修正

Revision 9568 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 5 13:07:54 2021 UTC (2 years, 4 months ago) by zmatsuo
File length: 36779 byte(s)
Diff to previous 9547 , to selected 2476
RestartTeraTerm() を Unicode化

- ハンドルリークを修正

Revision 9547 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 27 13:49:15 2021 UTC (2 years, 4 months ago) by zmatsuo
File length: 36959 byte(s)
Diff to previous 9546 , to selected 2476
セッションの複製が動作しなかったので修正

- セッション複製部分を別ファイルに分離
  - ttcmn_dup.cpp, h
- プロジェクトファイル修正

Revision 9546 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 27 13:48:57 2021 UTC (2 years, 4 months ago) by zmatsuo
File length: 36114 byte(s)
Diff to previous 9532 , to selected 2476
Visual Studio 2005 でビルドできるよう修正

- 2005で警告が出ないよう修正

Revision 9532 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 16 14:16:59 2021 UTC (2 years, 4 months ago) by zmatsuo
File length: 36097 byte(s)
Diff to previous 9501 , to selected 2476
起動時初期設定ファイルを %APPDATA%/teraterm5/ にコピー

- %APPDATA%/teraterm5/TERATERM.INI が存在しないとき
- ttermpro.exe が存在するフォルダの設定ファイルを
- %APPDATA%/teraterm5/ へコピー
- 次の3ファイル
  - TERATERM.INI
  - KEYBOARD.CNF
  - cygterm.cfg

Revision 9501 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 27 12:48:49 2021 UTC (2 years, 5 months ago) by zmatsuo
File length: 35576 byte(s)
Diff to previous 9499 , to selected 2476
設定ファイルを置くフォルダを変更

- フォルダ
  - %APPDATA%\teraterm5 (%USERPROFILE%\AppData\Roaming\teraterm5)
- ファイル
  - TERATERM.INI
  - KEYBOARD.CFG
  - broadcast.log
- 使用していない GetDefaultFName() を削除
  - GetDefaultFNameW() に置き換えた
- フォルダに関する関数を整理
  - GetHomeDirW() を修正
    - 設定ファイルを置くフォルダを返す
    - ttypes.HomeDirW と同一
	- 従来は ttermpro.exe などが置いてあるフォルダを返していた
  - GetLogDirW() を追加
    - ログなどを置くフォルダを返す
    - ttypes.LogDirW と同一
  - GetExeDirW() を追加
    - ttermpro.exe などが存在するフォルダを返す
    - ttypes.LogDirW と同一

Revision 9499 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 23 16:09:57 2021 UTC (2 years, 5 months ago) by zmatsuo
File length: 34843 byte(s)
Diff to previous 9497 , to selected 2476
Languate=Chinese時クラッシュすることがあったので修正

- Languate=Chinese時のiniファイルへの書き込み/読み込みができていなかったので修正
- 文字コードに関する部分を分離
  - ttlib_charset.cpp,h, tttypes_charset.h を追加

Revision 9497 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 23 16:09:33 2021 UTC (2 years, 5 months ago) by zmatsuo
File length: 34774 byte(s)
Diff to previous 9466 , to selected 2476
RussFontを削除、RussHost を KanjiCode に置き換え

- tttset.RussFont
- tttset.RussHost
  - tttset.KanjiCodeに置き換え

Revision 9466 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 14 14:51:37 2021 UTC (2 years, 5 months ago) by zmatsuo
File length: 34769 byte(s)
Diff to previous 9463 , to selected 2476
tttset 構造体に ExeDirW と LogDirW を追加

- ttsset.ExeDirW
  - exeなどが置かれたフォルダ
- tttset.HomeDirW
  - iniなどが置かれたフォルダ
  - ユーザー固有データ
- tttset.LogDirW
  - log、ダンプなどが置かれたフォルダ

Revision 9463 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 14 14:51:10 2021 UTC (2 years, 5 months ago) by zmatsuo
File length: 34418 byte(s)
Diff to previous 9342 , to selected 2476
コンパイラの警告対策

- cast size_t -> int
- replace strdup() -> _strdup()
- 'code_page' may be used uninitialized in this function (ttcmn.c)

Revision 9342 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 1 15:32:15 2021 UTC (2 years, 8 months ago) by zmatsuo
File length: 34396 byte(s)
Diff to previous 9337 , to selected 2476
TTMessageBoxW() を TTMessageBoxA() へ改名

- 引数 uType を TTMessageBoxInfoW へ移動
- 未使用マクロ get_lang_msgT() を削除

Revision 9337 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 1 05:36:29 2021 UTC (2 years, 8 months ago) by zmatsuo
File length: 34389 byte(s)
Diff to previous 9324 , to selected 2476
chmファイル名をUnicode化

- chm は Unicode ファイル名は開けない?

Revision 9324 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 29 15:20:20 2021 UTC (2 years, 9 months ago) by zmatsuo
File length: 34425 byte(s)
Diff to previous 9314 , to selected 2476
layer for unicode 向けのコードを削除

Revision 9314 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 20 01:07:54 2021 UTC (2 years, 9 months ago) by zmatsuo
File length: 34459 byte(s)
Diff to previous 9313 , to selected 2476
ComVar 構造体から CodePage メンバを削除

- Language, KanjiCode から文字コードを判定

Revision 9313 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 20 01:07:40 2021 UTC (2 years, 9 months ago) by zmatsuo
File length: 34391 byte(s)
Diff to previous 9311 , to selected 2476
locale設定を削除

- Cランタイムの文字コードの設定
  - 従来Cランタイムの文字コード変換関数を使用していたため必要だった
    - wctomb()
  - 現在Cランタイムの文字コード変換は使用していないため不要
    - OSのAPI WideCharToMultiByte(), MultiByteToWideChar() を使用
- setlocale()を削除
- 不要な locale.h の include を削除
- 設定ダイアログの locale 設定を削除
  - IDC_LOCALE_LABEL 削除
  - lng 内の DLG_TERM_LOCALE 削除
  - ドキュメント locale 設定個所を削除
- iniファイルのlocale読み書きを削除
- r9145

Revision 9311 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 18 16:05:10 2021 UTC (2 years, 9 months ago) by zmatsuo
File length: 34412 byte(s)
Diff to previous 9306 , to selected 2476
ANSI送信関数を削除

- 出力をすべて Unicode に置き換えて、使用されなくなったので削除
  - CommTextOut()
  - CommTextEcho()
- 未使用となる変数を削除

Revision 9306 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 12 15:29:32 2021 UTC (2 years, 9 months ago) by zmatsuo
File length: 45888 byte(s)
Diff to previous 9292 , to selected 2476
TTTSet構造体のファイルを保持するメンバをUnicode化,動的バッファ化した

- common/tttypes.h
- 次のメンバを追加
  - wchar_t *HomeDirW;
  - wchar_t *SetupFNameW;
  - wchar_t *KeyCnfFNW;
  - wchar_t *LogFNW;
  - wchar_t *MacroFNW;
  - wchar_t *UILanguageFileW;
  - wchar_t *UILanguageFileW_ini;
  - 主要なメンバのみ
- 従来の(ANSI文字列版)メンバーも利用可能
  - Unicode版から変換
  - 従来通りのフォルダ名に従来通りのファイル名で使用すれば問題は起きないはず
- Tera Term内部はほとんど従来通り(ANSI文字版)を使用

Revision 9292 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 27 15:42:20 2021 UTC (2 years, 10 months ago) by zmatsuo
File length: 45800 byte(s)
Diff to previous 9245 , to selected 2476
TCHAR を wchar_t(Unicode)へ変更

- 特に設定していないので、TCHAR = char
  - ANSI(非Unicode)としてコンパイルされていた

Revision 9245 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 10 14:12:12 2021 UTC (2 years, 11 months ago) by zmatsuo
File length: 45808 byte(s)
Diff to previous 9244 , to selected 2476
GetKeyStr() と GetKeyCode() を keyboard.c へ移動

- teraterm/ttpcmn/ttcmn.c から teraterm/teraterm/keyboard.c へ移動
- これらの関数は teraterm/teraterm/keyboard.c からしか使用されていなかった
  - static 関数へ変更
  - ttcmn で tttypes_key.h をインクルードしないようにした
- グローバル変数とローカル変数が同一だったので名前を変更した

Revision 9244 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 10 14:12:02 2021 UTC (2 years, 11 months ago) by zmatsuo
File length: 61151 byte(s)
Diff to previous 9243 , to selected 2476
キーボードに関連する部分を別ファイルに分離

- 次のファイルを追加
  - teratermttpset/ttset_keyboard.c
  - teraterm/common/tttypes_key.h

Revision 9243 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 10 14:11:51 2021 UTC (2 years, 11 months ago) by zmatsuo
File length: 61125 byte(s)
Diff to previous 9240 , to selected 2476
SHARED_KEYMAP マクロに関する部分を削除

- SHARED_KEYMAP は従来から無効状態だった
- 使用していないAPI を削除
  - ttpcmn.dll内
  - ChangeDefaultSet()
  - GetDefaultSet()

Revision 9240 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 10 14:11:24 2021 UTC (2 years, 11 months ago) by zmatsuo
File length: 61612 byte(s)
Diff to previous 9230 , to selected 2476
不要な #include <tchar.h> を削除

Revision 9230 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 3 15:04:42 2021 UTC (2 years, 11 months ago) by zmatsuo
File length: 61632 byte(s)
Diff to previous 9197 , to selected 2476
_WIN32_WINNTをコンパイルオプションで指定

- Tera Term は _WIN32_WINNT >= 0x0501 でビルドすることが前提となっている
  - 0x0501=_WIN32_WINNT_WINXP
    - Windows XP
    - Windows Server 2003
  - Visual Studio 2005 のプロジェクトファイルに /D_WIN32_WINNT=0x0501 追加済み(r9191)
- teraterm_conf.h を削除
  - WIN32_WINNT をコンパイルオプションで指定するため r7554 で追加した
  - コマンドラインで明示的に指定するようになったた不要となった
    - SDK 7.0 では _WIN32_WINNT が自動で設定されない
    - SDK 7.0 より新しいSDKでは、特に指定されていない場合、自動で設定される
      - SDKのバージョンによって自動で設定される_WIN32_WINNT の値は異なっている
      - SDK 7.1 の場合 0x0601
      - SDK 10.0.18362.0 の場合 0x0A00
      - sdkddkver.h 内で設定される
        - MinGWの場合は _mingw.h
- Visual Studio 2005 では次のSDKでビルドできることを確認済み
  - SDK 7.0
  - SDK 7.1
- Tera Term は Visual Studio 2005 以上をサポート
  - MSC_VER >= 1400

Revision 9197 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 13 14:42:48 2021 UTC (3 years ago) by zmatsuo
File length: 61686 byte(s)
Diff to previous 9196 , to selected 2476
comポートの列挙、情報取得を一か所にまとめた

- 機能を一か所(ComPortInfoGet())にまとめた
- DetectComPorts() から ComPortInfoGet() を利用するようにした
  - comport関連を ttpcmn/ttpcmn.c から ttpcmn/ttpcmn_cominfo.c に分離
  - 従来の動作
    - QueryDosDeviceA(NULL) でデバイスを列挙
    - "COM0" などを探して列挙
    - しかし 95 ではQueryDosDeviceA(NULL)は常に失敗
    - fopen() して成功したときデバイスが存在する、と判定
      - "\\.\COM0" など
  - 修正後
    - ComPortInfoGet() の結果を使用するようにした
- ttpcmn/comportinfo.cpp の ComPortInfoGet()
  - 従来
    - Windows 95 では列挙できていなかった
      - 多分 NT4も
      - setupapi がうまく使用できないOS
  - 修正後
    - 95,NT4の場合は "\\.\COM0" などをオープンしてデバイス存在判定を行う
    - その他のOSの場合は従来とおなじ
      - setupapi を使用する方法
  - comportinfo.cpp,h を common/ へ移動
- QueryDosDeviceA(NULL)
  - 成功するOSでは setupapi が正しく動作
  - 失敗するOSでは setupapi は動作しない

Revision 9196 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 13 14:42:32 2021 UTC (3 years ago) by zmatsuo
File length: 68357 byte(s)
Diff to previous 9130 , to selected 2476
ログインダイアログがうまく表示されないことがあったので修正

- VS2005でビルドして Windows 95 で動作した場合
- サイズの大きなローカル変数をヒープに移動

Revision 9130 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 16 05:22:12 2021 UTC (3 years, 2 months ago) by zmatsuo
File length: 68039 byte(s)
Diff to previous 9129 , to selected 2476
_isleadbyte_l() を IsDBCSLeadByteEx() に置き換え

Revision 9129 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 16 05:21:37 2021 UTC (3 years, 2 months ago) by zmatsuo
File length: 67927 byte(s)
Diff to previous 9048 , to selected 2476
VS2005 による Windows 95 のサポート方法を変更

- 各々のソースファイル内の Windows 95 サポート用コードを不要にする
  - ファイルのinclude + 関数呼出をやめる
    - #include "compat_w95.h" を削除
    - DoCover_IsDebuggerPresent() 呼び出しを削除
  - 代わりにファイル(common/compat_w95_vs2005.c)をリンク
- VSプロジェクトファイル
  - プロジェクトから compat_w95.h を削除
  - VS2005プロジェクトに compat_w95_vs2005.c を追加
    - VS2005以外では Windows 95 で動作するバイナリが生成できないので追加は不要
- cmake
  - SUPPORT_OLD_WINDOWS=ON 時、compat_w95_vs2005.c をリンクするよう修正
  - なるべく target_* を使用するよう修正

Revision 9048 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 16 12:24:13 2020 UTC (3 years, 3 months ago) by nmaya
File length: 67985 byte(s)
Diff to previous 8954 , to selected 2476
ソースファイルの著作権表記の "最後の発行の年" を削除

ticket #40996

Revision 8954 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 2 15:47:28 2020 UTC (3 years, 6 months ago) by zmatsuo
File length: 67989 byte(s)
Diff to previous 8897 , to selected 2476
不要 include を削除

Revision 8897 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 18 15:27:54 2020 UTC (3 years, 7 months ago) by zmatsuo
File length: 68012 byte(s)
Diff to previous 8860 , to selected 2476
ログに関するコードを filesys_log.c に移動した

- ログ用構造体(TFileVar_#filesys_log.c)から不要メンバ削除
- OnCommOpen()#vtwin.cpp で log,dde(macro)用バッファを作成していたが、作成済みのため削除

Revision 8860 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 25 16:00:24 2020 UTC (3 years, 8 months ago) by zmatsuo
File length: 68598 byte(s)
Diff to previous 8828 , to selected 2476
マクロ(ttmacro)用送信バッファの分離

- 受信した文字をマクロで判定等を行うために、マクロ(ttmacro)へ受信データを送信する
- 従来は、1つのバッファをマクロとlogで共用していた
- 各々で異なる文字コードを扱えるよう分離した
- マクロ用は ttdde.c,h にまとめた

Revision 8828 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 3 14:43:44 2020 UTC (3 years, 9 months ago) by zmatsuo
File length: 68645 byte(s)
Diff to previous 8616 , to selected 2476
struct TMap を tttypes.h から ttcmn.c へ移動

- この構造体はファイルローカルな構造体

Revision 8616 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 23 15:54:26 2020 UTC (4 years ago) by zmatsuo
File length: 67980 byte(s)
Diff to previous 8576 , to selected 2476
TTMessageBoxW() を追加、一部利用するよう修正

- MessageBox()の i18n 対応版
- TTMessageBoxW() を使用
  - ttssh/ttxssh.c
  - teraterm/teraterm/commlib.c
  - teraterm/ttpcmn/ttcmn.c
- GetI18nStrW() に戻り値を追加、文字数を返す
- TTGetLangStrW() 追加
  - GetI18nStrW() の動的バッファ版

Revision 8576 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 6 15:21:54 2020 UTC (4 years, 1 month ago) by zmatsuo
File length: 68019 byte(s)
Diff to previous 8544 , to selected 2476
Tera Term と htmlhelp ウィンドウを同時に閉じたときエラーが出ないよう修正

- 起動時に _HtmlHelpW(NULL, NULL, HH_INITIALIZE, ...) を追加
- 終了時の処理を WM_DESTROY から WM_CLOSE に変更
- 終了時、_HtmlHelpW(NULL, NULL, HH_CLOSE_ALL, 0) に修正
  - ドキュメントによると HH_CLOSE_ALL 時は引数を 0, NULL にする
  - 従来はファイル名などを渡していた
- 終了時、_HtmlHelpW(NULL, NULL, HH_UNINITIALIZE, ...) を追加
- ticket #40216

Revision 8544 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 17 15:27:46 2020 UTC (4 years, 1 month ago) by zmatsuo
File length: 68045 byte(s)
Diff to previous 8517 , to selected 2476
SSH Authentication Banner の バルーン通知を Unicode 対応とした

- r8530
- NotifyMessageW() 追加 (ttpcmn.dll)
- ttcmn から NotifyIcon 関連を ttcmn_notify.cpp に移動
- vs2005,vs2019,cmake

Revision 8517 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 30 23:42:44 2020 UTC (4 years, 2 months ago) by zmatsuo
File length: 70986 byte(s)
Diff to previous 8516 , to selected 2476
マルチモニタ関連のAPIを直接呼ばないようにした

- まだ使用している箇所があったので修正
- pMonitorFromRect(), pGetMonitorInfoA()
- r8504

Revision 8516 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 30 23:42:36 2020 UTC (4 years, 2 months ago) by zmatsuo
File length: 70977 byte(s)
Diff to previous 8496 , to selected 2476
OpenHelp() リファクタリング

Revision 8496 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 22 13:53:43 2020 UTC (4 years, 2 months ago) by zmatsuo
File length: 71000 byte(s)
Diff to previous 8445 , to selected 2476
common_static を ttpcmn からリンク, windowメニューを多言語化

Revision 8445 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 17 12:15:31 2019 UTC (4 years, 3 months ago) by doda
File length: 71576 byte(s)
Diff to previous 8188 , to selected 2476
Merge branch 'unicode_buf'

Revision 8188 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 18 14:39:50 2019 UTC (4 years, 6 months ago) by yutakapon
File length: 63148 byte(s)
Diff to previous 7896 , to selected 2476
シリアルポート設定ダイアログでCOMポートが存在しない場合、OKボタンを押せないようにした。

branches/serial_port_improvedからリビジョン8170をマージ:
シリアルポート設定ダイアログでCOMポートがゼロの場合、OKボタンを押せないようにした。
OKボタンを押すと、COM1に接続しようとするため。

........


Revision 7896 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 29 15:04:08 2019 UTC (4 years, 8 months ago) by zmatsuo
File length: 62998 byte(s)
Diff to previous 7725 , to selected 2476
Merge branch 'x64' into trunk

Revision 7725 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 31 16:13:30 2019 UTC (4 years, 10 months ago) by zmatsuo
File length: 62996 byte(s)
Diff to previous 7674 , to selected 2476
関数の引数を明確にした

- 指定なし→voidに変更

Revision 7674 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 13 15:14:30 2019 UTC (4 years, 10 months ago) by zmatsuo
File length: 62988 byte(s)
Diff to previous 7536 , to selected 2476
GetHomeDir(),GetUILanguageFileFull()#ttlib.cを追加、同様な処理は関数を使用するようにした

Revision 7536 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 1 12:45:02 2019 UTC (5 years ago) by zmatsuo
File length: 63072 byte(s)
Diff to previous 7484 , to selected 2476
MinGWでビルドできるよう調整

Revision 7484 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 14 15:53:55 2019 UTC (5 years ago) by zmatsuo
File length: 62966 byte(s)
Diff to previous 7466 , to selected 2476
GetConvString()#ttime.cの戻り値をconst wchar_t *に変更
前後参照変換の処理を ttime.c に移動
CommTextOutW(), CommTextEchoW() を ttcmn.c に追加
imm32.lib をリンクから外した

Revision 7466 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 9 17:33:27 2019 UTC (5 years, 1 month ago) by zmatsuo
File length: 62239 byte(s)
Diff to previous 7464 , to selected 2476
新しいMBCPToUTF32()追加、従来の関数は MBCP_UTF32() にリネーム

Revision 7464 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 9 17:33:06 2019 UTC (5 years, 1 month ago) by zmatsuo
File length: 62240 byte(s)
Diff to previous 7462 , to selected 2476
UTF32ToMBCP(), MBCPToUTF32()を使用するよう調整

Revision 7462 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 9 17:32:42 2019 UTC (5 years, 1 month ago) by zmatsuo
File length: 62878 byte(s)
Diff to previous 7412 , to selected 2476
unicode関連をcodeconv.cに集めた
CP932へ/からの変換を関数に分離(UTF32ToCP932(), UTF32ToCP932())
unicodeからDEC特殊文字変換を関数に分離(UTF32ToDecSp())
SJIS2UTF8() (内部コードからUTF-8へ出力)を language.c から ttcmn.c に移動
_WideCharToMultiByte(), _MultiByteToWideChar() の変換した文字数の戻り値修正
UTF32ToMBCP()追加
UTF32_CP932()追加
MBCPToUTF32()追加
WideCharToUTF8(), WideCharToCP932() の仕様を変更
変換テーブルとWindows APIをつかったコード変換の優先順位を変更できるようにした

Revision 7412 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 28 13:33:57 2019 UTC (5 years, 2 months ago) by zmatsuo
File length: 62312 byte(s)
Diff to previous 7411 , to selected 2476
htmlhelpで、hhctrl.ocxを参照するようにした

Revision 7411 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 28 13:26:10 2019 UTC (5 years, 2 months ago) by zmatsuo
File length: 61383 byte(s)
Diff to previous 7406 , to selected 2476
UnicodeToCP932()不具合修正
ファイル外から呼び出されない関数をstatic化

Revision 7406 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 25 12:37:51 2019 UTC (5 years, 2 months ago) by zmatsuo
File length: 61369 byte(s)
Diff to previous 7306 , to selected 2476
language.c SJIS2UTF8()の仕様変更
- locale文字列ではなく、コードページを使うようにした
- 内部コードに合わせて変換するようにした(CP932決め打ちだった)
- ConvertUnicode()のプロトタイプをlanguage.hに入れた

Revision 7306 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 6 09:34:44 2018 UTC (5 years, 4 months ago) by zmatsuo
File length: 61366 byte(s)
Diff to previous 7305 , to selected 2476
VS2005でコンパイルできるよう修正

Revision 7305 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 2 15:51:49 2018 UTC (5 years, 4 months ago) by zmatsuo
File length: 61358 byte(s)
Diff to previous 7304 , to selected 2476
PASCAL->WINAPI

Revision 7304 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 2 15:51:37 2018 UTC (5 years, 4 months ago) by zmatsuo
File length: 61358 byte(s)
Diff to previous 6888 , to selected 2476
共有メモリのサイズチェック追加

Revision 6888 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 26 03:47:58 2017 UTC (6 years, 8 months ago) by doda
File length: 60248 byte(s)
Diff to previous 6841 , to selected 2476
現在のウィンドウ数を返す関数を作り、vtwin.cpp ではそれを使うように変更。

ループで無理やり数えるくらいならば、pm->NWin を見せるようにする方がいいと思う。
本当は各ウィンドウに対して処理を行うようなイテレータを ttpcmn.dll が提供する方がいいのかもしれないけれど。

Revision 6841 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 4 15:02:28 2017 UTC (6 years, 9 months ago) by doda
File length: 60182 byte(s)
Diff to previous 6806 , to selected 2476
TeraTerm Project としてのライセンス表記を追加

・Tera Term 本体分を横 80 桁に収まるように改行位置を調整
・ttssh 関連の分を追加

Revision 6806 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 15 00:37:01 2017 UTC (6 years, 9 months ago) by doda
File length: 60186 byte(s)
Diff to previous 6801 , to selected 2476
TeraTerm Project としてのライセンス表記を追加

とりあえず Tera Term 本体分。
TeraTerm Project としての copyright 表記の年部分はコミットログを確認して書いたつもりだけど、ミスってたらすみません。

TODO: 過去に取り込んだパッチに関する著作権表記の追加

Revision 6801 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 13 10:30:12 2017 UTC (6 years, 9 months ago) by doda
File length: 58720 byte(s)
Diff to previous 6713 , to selected 2476
eliminate FAR keyword.

Revision 6713 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 12 12:41:42 2017 UTC (6 years, 11 months ago) by doda
File length: 58884 byte(s)
Diff to previous 6692 , to selected 2476
バルーンチップ未対応 OS では通知関連の設定をグレーアウトするように変更

Revision 6692 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 24 11:49:55 2017 UTC (6 years, 11 months ago) by doda
File length: 58903 byte(s)
Diff to previous 6691 , to selected 2476
バルーンチップ表示非対応の OS では通知アイコンを表示しないようにした

Revision 6691 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 24 11:49:52 2017 UTC (6 years, 11 months ago) by doda
File length: 58833 byte(s)
Diff to previous 6690 , to selected 2476
Windows 2000 の時は ttssh 側でも通知アイコンをセットするようにした。

Revision 6690 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 24 11:49:49 2017 UTC (6 years, 11 months ago) by doda
File length: 58764 byte(s)
Diff to previous 6684 , to selected 2476
通知アイコンを変更できるようにした。

Windows 2000 の時のみ VT Window を作成した時に 4bp のアイコンを登録するようにした。

Revision 6684 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 12 09:00:39 2017 UTC (7 years ago) by doda
File length: 58575 byte(s)
Diff to previous 6664 , to selected 2476
Windows 7 etc.  で連続して通知メッセージを表示しようとした時に、二つ目の通知でバルーンが消える問題を修正。

Windows 7 等では連続してメッセージを表示しようとすると、

1. 一つ目のバルーンが表示される。
2. 一つ目のバルーンの表示イベントが来る
3. 一つ目のバルーンが消えて?、二つ目のバルーンが表示される。
4. 二つ目のバルーンの表示イベントが来る
5. 一つ目のバルーンのタイムアウトイベントが来る
6. 二つ目のバルーンのタイムアウトイベントが来る

という順番でイベントが通知される。
5 のタイムアウトでバルーン&通知アイコンを非表示にしていた為、その時点で
表示中の二つ目のバルーンが一緒に消えていた。

対処として、メッセージの通知数を管理して、タイムアウトでの通知アイコンを
隠すのをすべてのバルーンが消えた時のみに行うようにした。

Revision 6664 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 3 12:51:43 2017 UTC (7 years ago) by doda
File length: 58305 byte(s)
Diff to previous 6662 , to selected 2476
バルーン通知時のアイコンの種類を指定出来るようにした。

Revision 6662 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 3 12:51:37 2017 UTC (7 years ago) by doda
File length: 58298 byte(s)
Diff to previous 6435 , to selected 2476
バルーン通知する為の関数を追加

ToDo:
・Windows95 等でも問題なく動く?
・_WIN32_IE を 0x501 に決め打ちしてるけれど問題ない?
・Windows8 以降ではトースト通知を使う方がいいかも。ただ、面倒そう。
・Windows10 では発生するイベントが違ったり、NIN_BALOONTIMEOUT が発生
  しなかったりするらしい(未確認)
  https://blogs.msdn.microsoft.com/japan_platform_sdkwindows_sdk_support_team_blog/2016/02/03/windows-10-12/
・バルーン通知時に通知領域に通知アイコンが出るが、バルーンクリックや
  タイムアウト時に隠すようにしているから邪魔にならないよね?
・バルーン左クリック(Windows10 では右クリックも?)で SetForegroundWindow
  しているけれど、メッセージの履歴を覚えておいてクリックで表示履歴を
  表示する方が便利かも。

Revision 6435 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 11 08:53:02 2016 UTC (7 years, 9 months ago) by doda
File length: 55861 byte(s)
Diff to previous 6369 , to selected 2476
・行末の空白/タブを削除
・インデント調整

Revision 6369 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 11 13:42:54 2016 UTC (8 years ago) by maya
File length: 55885 byte(s)
Diff to previous 6286 , to selected 2476
送信改行コード LF を追加

Revision 6286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 1 15:14:14 2016 UTC (8 years, 2 months ago) by yutakapon
File length: 55591 byte(s)
Diff to previous 6100 , to selected 2476
チケット #35744 VS2015の警告除去

下記ブランチからマージした。
svn+ssh://yutakapon@svn.sourceforge.jp/svnroot/ttssh2/branches/vs2015_warn
リビジョン6194 - 6260


Revision 6100 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 9 13:55:50 2015 UTC (8 years, 5 months ago) by salarm
File length: 56194 byte(s)
Diff to previous 6076 , to selected 2476
USBシリアル検出処理の修正
・デバイスによってはWM_DEVICECHANGEが通知されないのでRegisterDeviceNotificationを呼び出す
・デバイスによっては切断が検出できないのでレジストリも見るように修正

Revision 6076 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 5 11:44:40 2015 UTC (8 years, 5 months ago) by salarm
File length: 54960 byte(s)
Diff to previous 5877 , to selected 2476
USBシリアルに接続中にUSBシリアルケーブルを抜き差しするとCOMに接続できなくなる不具合修正
・COMポートが消えた時に自動的に切断してCOMポートが復活した時に再接続するようにした
※WindowsXP以降でのみ動作


Revision 5877 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 18 15:27:53 2015 UTC (8 years, 10 months ago) by maya
File length: 54408 byte(s)
Diff to previous 5876 , to selected 2476
接続するとキーボード設定ファイル名が消えてしまうのを、ファイル名が残るようにした

Revision 5876 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 16 16:47:54 2015 UTC (8 years, 10 months ago) by maya
File length: 54206 byte(s)
Diff to previous 5873 , to selected 2476
ttpmacro の NextParam を ttpset の NextParam と同じ動きにした
Dequote を DequoteParam として ttlib.c に移動した
GetParam を ttcmn.c から ttlib.c に移動した

Revision 5873 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 16 14:33:41 2015 UTC (8 years, 10 months ago) by maya
File length: 54740 byte(s)
Diff to previous 5636 , to selected 2476
GetParam を ttpcm.dll に移動した

Revision 5636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 6 11:51:03 2014 UTC (9 years, 9 months ago) by yutakapon
File length: 54206 byte(s)
Diff to previous 5407 , to selected 2476
チケット #33967 言語UI変更でヘルプが切り替わらない

設定 - 全般 - 言語UIで、メッセージカタログを切り替えた場合、ヘルプファイルも
切り替わるようにした。



Revision 5407 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 28 11:06:18 2013 UTC (10 years, 5 months ago) by yutakapon
File length: 54180 byte(s)
Diff to previous 5367 , to selected 2476
95/NT4.0で起動できなくなっていた問題を修正した。
チケット #32323
http://sourceforge.jp/ticket/browse.php?group_id=1412&tid=32323


Revision 5367 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 25 04:14:02 2013 UTC (10 years, 7 months ago) by yutakapon
File length: 53407 byte(s)
Diff to previous 5343 , to selected 2476
SVN#5301 の修正を元に戻す。


Revision 5343 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 23 08:00:04 2013 UTC (10 years, 8 months ago) by doda
File length: 54889 byte(s)
Diff to previous 5308 , to selected 2476
「重ねて/並べて表示」の Undo が無効の時、Window メニューが正しく表示されないのを修正。


Revision 5308 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 9 14:19:15 2013 UTC (10 years, 10 months ago) by maya
File length: 54953 byte(s)
Diff to previous 5301 , to selected 2476
マクロのエラーダイアログからヘルプの「エラーメッセージ一覧」を開けるようにした
  OpenHelp を ttpcmn.dll に移動

Revision 5301 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 2 14:35:35 2013 UTC (10 years, 10 months ago) by yutakapon
File length: 53924 byte(s)
Diff to previous 5299 , to selected 2476
ウィンドウの「左右に並べて」、「上下に並べて」表示処理をAPIを使わずに、
自前で行うようにした。
これにより、Top Mostなウィンドウも並び替え対象となる。

「重ねて」表示の方は未。


Revision 5299 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 2 12:12:19 2013 UTC (10 years, 10 months ago) by yutakapon
File length: 52442 byte(s)
Diff to previous 5280 , to selected 2476
ウィンドウを並べて表示に対して、元に戻す(Undo)するメニューを追加した。


Revision 5280 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 24 11:43:28 2013 UTC (10 years, 10 months ago) by doda
File length: 51240 byte(s)
Diff to previous 5252 , to selected 2476
Restore Allを元に戻した。


Revision 5252 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 7 14:20:55 2013 UTC (10 years, 11 months ago) by yutakapon
File length: 51095 byte(s)
Diff to previous 5251 , to selected 2476
メニュー配置を調整した。


Revision 5251 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 7 14:17:33 2013 UTC (10 years, 11 months ago) by yutakapon
File length: 51093 byte(s)
Diff to previous 5249 , to selected 2476
「2つ以上だったら」という条件を削除した。


Revision 5249 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 7 14:13:12 2013 UTC (10 years, 11 months ago) by yutakapon
File length: 51918 byte(s)
Diff to previous 5237 , to selected 2476
revert SVN#5227


Revision 5237 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 5 13:20:28 2013 UTC (10 years, 11 months ago) by yutakapon
File length: 52859 byte(s)
Diff to previous 5232 , to selected 2476
上下と左右の動作が逆になっていたのを修正した。


Revision 5232 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 5 12:29:52 2013 UTC (10 years, 11 months ago) by yutakapon
File length: 52859 byte(s)
Diff to previous 5230 , to selected 2476
全Tera Termウィンドウを閉じる機能を追加した。
ただし、このコミット時点では、どこからも呼び出していないので、実際には動かない。


Revision 5230 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 3 11:47:56 2013 UTC (10 years, 11 months ago) by yutakapon
File length: 52315 byte(s)
Diff to previous 5227 , to selected 2476
最大化だけではなく、最小化状態も復元できるようにした。


Revision 5227 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 3 09:51:03 2013 UTC (10 years, 11 months ago) by yutakapon
File length: 52519 byte(s)
Diff to previous 5224 , to selected 2476
「常に手前に表示」を Window メニューに追加した。




Revision 5224 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 2 06:37:09 2013 UTC (10 years, 11 months ago) by yutakapon
File length: 51578 byte(s)
Diff to previous 5223 , to selected 2476
「重ねて表示」「左右に並べて表示」「上下に並べて表示」を Window メニューに追加した。




Revision 5223 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 2 05:37:15 2013 UTC (10 years, 11 months ago) by yutakapon
File length: 51126 byte(s)
Diff to previous 5222 , to selected 2476
「重ねて表示」「左右に並べて表示」「上下に並べて表示」を行う関数を追加した。
結局、自前でやらずに、Win32APIを利用する。

共有メモリを拡張したので、以前のTera Termとの混在は不可。



Revision 5222 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 1 15:55:25 2013 UTC (10 years, 11 months ago) by yutakapon
File length: 49520 byte(s)
Diff to previous 4919 , to selected 2476
Tera Termのウィンドウ群を「並べて表示」する関数を追加した。
関数自体はまだどこからも呼んでいないので、実際にはまだ動かない。


Revision 4919 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 1 11:14:14 2012 UTC (11 years, 11 months ago) by yutakapon
File length: 47248 byte(s)
Diff to previous 4916 , to selected 2476
下記において、設定が変更された場合、Tera Termの再起動を促すダイアログを表示するようにした。
- Eterm look-feel 設定変更
- 言語ファイルUI 設定変更


Revision 4916 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 30 15:11:59 2012 UTC (11 years, 11 months ago) by yutakapon
File length: 47183 byte(s)
Diff to previous 4915 , to selected 2476
Additional settings - Visual tabで、Eterm look-feel をチェックできるようにした。
設定変更後、Tera Termを再起動するかどうか問い合わせるようにした。


Revision 4915 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 30 12:58:55 2012 UTC (11 years, 11 months ago) by yutakapon
File length: 46722 byte(s)
Diff to previous 4710 , to selected 2476
- 言語ファイルUIの設定変更時、自動的に Tera Term を再起動するかどうかを
  問い合わせるようにした。
- ttpcmn: RestartTeraTerm() 共通関数を追加した。


Revision 4710 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 8 02:23:38 2011 UTC (12 years, 5 months ago) by doda
File length: 46115 byte(s)
Diff to previous 4655 , to selected 2476
xterm の Back Tab (Shift+Tab) をサポート。


Revision 4655 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 26 11:49:41 2011 UTC (12 years, 6 months ago) by maya
File length: 45886 byte(s)
Diff to previous 4647 , to selected 2476
AppendMenu の引数の型があっていないので修正

Revision 4647 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 20 10:26:18 2011 UTC (12 years, 6 months ago) by doda
File length: 45889 byte(s)
Diff to previous 4076 , to selected 2476
[Window] メニューに、[Minimize All], [Restore All] を追加した。


Revision 4076 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 31 12:10:07 2010 UTC (13 years, 7 months ago) by doda
File length: 45397 byte(s)
Diff to previous 4073 , to selected 2476
ウィンドウメニューで自ウィンドウが判別できないので、とりあえずウィンドウのリストダイアログでも自ウィンドウの判別を行わないように変更。


Revision 4073 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 31 10:15:14 2010 UTC (13 years, 7 months ago) by doda
File length: 45347 byte(s)
Diff to previous 4031 , to selected 2476
ウィンドウメニューに、ウィンドウの状態を表す文字を表示するようにしてみた。

 * 現在のウィンドウ
 + 通常のウィンドウ
 - 最小化されたウィンドウ
 @ 最大化されたウィンドウ
 # 非表示のウィンドウ


Revision 4031 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 21 03:12:13 2010 UTC (13 years, 7 months ago) by maya
File length: 44983 byte(s)
Diff to previous 4030 , to selected 2476
ファイル名に使う配列の長さを見直した
  ファイル名の長さに MAXPATHLEN を使っていたところは MAX_PATH を使うようにした
  MAXPATHLEN はフォルダ名の長さとしては正しいはず

Revision 4030 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 20 17:44:02 2010 UTC (13 years, 7 months ago) by doda
File length: 44985 byte(s)
Diff to previous 4009 , to selected 2476
PrevWin/NextWin のウィンドウ切り替えで、非表示状態のウィンドウは飛ばすようにした。


Revision 4009 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 17 14:55:08 2010 UTC (13 years, 7 months ago) by maya
File length: 45256 byte(s)
Diff to previous 3955 , to selected 2476
trunk から r3926 をいったんひっこめる

Revision 3955 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 28 04:59:12 2010 UTC (13 years, 8 months ago) by doda
File length: 45370 byte(s)
Diff to previous 3950 , to selected 2476
VISIBLE じゃ無いウインドウも NextShownWin/PrevNextWin の対象外に。
# NextWin/PrevWin も VISIBLE なウィンドウのみにした方がいいかも


Revision 3950 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 27 14:07:14 2010 UTC (13 years, 8 months ago) by doda
File length: 45334 byte(s)
Diff to previous 3932 , to selected 2476
最小化されたウィンドウを対象外とした、次/前のウィンドウを表示するショートカットキー NextShownWin/PrevShownWin を追加。


Revision 3932 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 23 03:00:38 2010 UTC (13 years, 9 months ago) by doda
File length: 44876 byte(s)
Diff to previous 3926 , to selected 2476
送信処理が重くなっていたのを修正。
http://sourceforge.jp/forum/message.php?msg_id=51234


Revision 3926 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 7 14:01:51 2010 UTC (13 years, 10 months ago) by yutakapon
File length: 45058 byte(s)
Diff to previous 3900 , to selected 2476
以下に示す UTF-8 送信処理を、純粋なUnicodeとして処理するようにした。

 ・IME入力
 ・クリップボードの貼り付け

teraterm.iniに PureUTF8 エントリを追加。当該処理の on/off を切り替えられる。
デフォルトはまだ off とする。

これにより、SNOWMAN(U+2603)などの文字を送信しても、正しいUTF-8エンコーディングとして、
サーバへ送信される。
ただし、サロゲートペアには未対応。


Revision 3900 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 20 01:50:07 2010 UTC (13 years, 10 months ago) by doda
File length: 44944 byte(s)
Diff to previous 3888 , to selected 2476
テンキーの Enter で改行コードの変換が適用されなかったのを修正。
http://sourceforge.jp/ticket/browse.php?group_id=1412&tid=20308


Revision 3888 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 14 12:28:55 2010 UTC (13 years, 11 months ago) by doda
File length: 44897 byte(s)
Diff to previous 3707 , to selected 2476
英語モードおよびロシア語モードで、"Line at a time" モードが正しく働かないのを修正。
http://logmett.com/forum/viewtopic.php?f=8&t=1389

# 英語モードでのチェックが漏れてた… orz


Revision 3707 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 27 08:27:43 2009 UTC (14 years, 4 months ago) by maya
File length: 44887 byte(s)
Diff to previous 3675 , to selected 2476
シリアルポートのCOM最大値を4096にした。
  とりあえずteraterm.iniのMaxComPortは256のままにしておく。
  http://sourceforge.jp/ticket/browse.php?group_id=1412&tid=19635

Revision 3675 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 9 02:15:46 2009 UTC (14 years, 5 months ago) by maya
File length: 44886 byte(s)
Diff to previous 3673 , to selected 2476
ウィンドウが最小化されているときは元のサイズに戻す(SW_RESTORE)ようにした。

Revision 3673 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Nov 8 14:56:55 2009 UTC (14 years, 5 months ago) by yutakapon
File length: 44675 byte(s)
Diff to previous 3623 , to selected 2476
ウィンドウが最大化および最小化されていた場合、その状態を維持できるように、
SW_SHOWNORMAL から SW_SHOW へ変更した。


Revision 3623 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 20 13:37:45 2009 UTC (14 years, 6 months ago) by maya
File length: 44522 byte(s)
Diff to previous 3505 , to selected 2476
GetModuleFileName の返り値をチェックするようにした。
  http://sourceforge.jp/ticket/browse.php?group_id=1412&tid=18740

Revision 3505 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 16 09:37:13 2009 UTC (14 years, 9 months ago) by doda
File length: 44491 byte(s)
Diff to previous 3504 , to selected 2476
ファンクションキーの出力等もバッファリングするようにした。


Revision 3504 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 16 08:29:45 2009 UTC (14 years, 9 months ago) by doda
File length: 43282 byte(s)
Diff to previous 3503 , to selected 2476
英語/ロシア語モードで Ctrl-U がバッファに入ってしまうのを修正。


Revision 3503 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 16 08:27:45 2009 UTC (14 years, 9 months ago) by doda
File length: 43271 byte(s)
Diff to previous 3498 , to selected 2476
Line at a timeモード時、Ctrl-U でカーソル位置を行頭に移動したあと行消去を行うようにした。


Revision 3498 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 16 04:32:56 2009 UTC (14 years, 9 months ago) by doda
File length: 42680 byte(s)
Diff to previous 3497 , to selected 2476
Ctrl-Uでラインバッファの内容をクリアするようにした。


Revision 3497 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 16 02:11:19 2009 UTC (14 years, 9 months ago) by doda
File length: 42360 byte(s)
Diff to previous 3494 , to selected 2476
Line at a timeモード時、BSで送信前のデータを一字削除するようにした。


Revision 3494 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 15 18:37:05 2009 UTC (14 years, 9 months ago) by doda
File length: 41939 byte(s)
Diff to previous 3462 , to selected 2476
Line at a timeモードに仮対応


Revision 3462 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 10 03:28:31 2009 UTC (14 years, 10 months ago) by doda
File length: 40385 byte(s)
Diff to previous 3458 , to selected 2476
IsDBCSLeadByteEx を _isleadbyte_l に置き換え。
Locale/CodePage の対応があっているならば動作に近いがないので問題ないはず。
これによって CodePage の設定は使われなくなる。

動作の違いの確認は以下のコードで行った。

#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <ctype.h>
#include <locale.h>

void leadbyte_test(char *locale_str, unsigned int codepage) {
	_locale_t locale;
	int i;

	printf("testing %s(%d)\n", locale_str, codepage);
	locale = _create_locale(LC_ALL, locale_str);

	for (i=0; i<256; i++) {
		if ((_isleadbyte_l(i, locale)!=0) != (IsDBCSLeadByteEx(codepage, i)!=0)) {
			printf("%02x: Fail\n", i);
		}
	}

	_free_locale(locale);
}

int main(void) {
	leadbyte_test("Japanese", 932);
	leadbyte_test("Korean", 949);
	leadbyte_test("cht", 950);
	leadbyte_test("chs", 936);
	leadbyte_test("english", 1252);

	return 0;
}


Revision 3458 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 8 19:12:25 2009 UTC (14 years, 10 months ago) by doda
File length: 40194 byte(s)
Diff to previous 3457 , to selected 2476
ローカルエコーのルーチンを日本語/韓国語/UTF-8で共用するようにした。


Revision 3457 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 8 17:06:29 2009 UTC (14 years, 10 months ago) by doda
File length: 42055 byte(s)
Diff to previous 3452 , to selected 2476
UTF-8の4バイト文字対応の準備


Revision 3452 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 8 12:38:13 2009 UTC (14 years, 10 months ago) by doda
File length: 41998 byte(s)
Diff to previous 3451 , to selected 2476
UTF-8でのローカルエコーを改善


Revision 3451 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 8 11:39:28 2009 UTC (14 years, 10 months ago) by doda
File length: 41983 byte(s)
Diff to previous 3444 , to selected 2476
TextOutJP -> TextOutMBCS
# 日本語モード以外でも使用しているため


Revision 3444 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 7 06:57:34 2009 UTC (14 years, 10 months ago) by doda
File length: 41979 byte(s)
Diff to previous 3442 , to selected 2476
0x8E -> SS2


Revision 3442 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 6 11:16:25 2009 UTC (14 years, 10 months ago) by doda
File length: 41981 byte(s)
Diff to previous 3438 , to selected 2476
送信がUTF-8に設定されている時に、UTF-8に変換せずに送信する場合があるのを修正。


Revision 3438 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 4 11:52:11 2009 UTC (14 years, 10 months ago) by doda
File length: 42267 byte(s)
Diff to previous 3419 , to selected 2476
韓国語モードでのローカルエコーを改善した。


Revision 3419 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 25 12:45:32 2009 UTC (14 years, 10 months ago) by doda
File length: 40329 byte(s)
Diff to previous 3409 , to selected 2476
韓国語対応のコードを整理。


Revision 3409 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 18 11:25:37 2009 UTC (14 years, 10 months ago) by maya
File length: 44004 byte(s)
Diff to previous 3408 , to selected 2476
インデントを調整

Revision 3408 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 18 06:48:30 2009 UTC (14 years, 10 months ago) by doda
File length: 44001 byte(s)
Diff to previous 3407 , to selected 2476
typo fix.


Revision 3407 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 18 05:45:05 2009 UTC (14 years, 10 months ago) by doda
File length: 44001 byte(s)
Diff to previous 3398 , to selected 2476
Language=UTF-8対応


Revision 3398 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 15 11:50:48 2009 UTC (14 years, 10 months ago) by doda
File length: 43871 byte(s)
Diff to previous 3392 , to selected 2476
・文字化けを修正
・インデントを調整


Revision 3392 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 12 11:55:27 2009 UTC (14 years, 11 months ago) by maya
File length: 43863 byte(s)
Diff to previous 3354 , to selected 2476
インデントを調整。コード的な変更はないはず。

Revision 3354 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 28 13:10:36 2009 UTC (14 years, 11 months ago) by doda
File length: 43267 byte(s)
Diff to previous 3227 , to selected 2476
インデント修正


Revision 3227 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 24 15:10:33 2009 UTC (15 years ago) by maya
File length: 43277 byte(s)
Diff to previous 3221 , to selected 2476
CVS から SVN へ移行: 改行コードを LF から CR+LF へ変換

Revision 3221 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 24 09:37:20 2009 UTC (15 years ago) by maya
File length: 41316 byte(s)
Diff to previous 2664 , to selected 2476
CVS から SVN へ移行: trunk に集約

Revision 2664 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 20 04:45:31 2009 UTC (15 years, 1 month ago) by maya
Original Path: teraterm/trunk/ttpcmn/ttcmn.c
File length: 41316 byte(s)
Diff to previous 2663 , to selected 2476
IsDebuggerPresent 関係のコードを新しいヘッダファイルに集約した。


Revision 2663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 18 15:20:25 2009 UTC (15 years, 1 month ago) by maya
Original Path: teraterm/trunk/ttpcmn/ttcmn.c
File length: 42806 byte(s)
Diff to previous 2661 , to selected 2476
DoCover_IsDebuggerPresent() を WinMain, DllMain から呼ぶようにした。


Revision 2661 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 18 12:11:47 2009 UTC (15 years, 1 month ago) by yutakapon
Original Path: teraterm/trunk/ttpcmn/ttcmn.c
File length: 42806 byte(s)
Diff to previous 2660 , to selected 2476
#if 0
/* C言語では以下のコードは、コンパイルエラーとなるので、いったん外す。*/
EXTERN_C int s_DoCover_IsDebuggerPresent
    = (int) (DoCover_IsDebuggerPresent(), 0);
#endif


Revision 2660 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 17 13:53:24 2009 UTC (15 years, 1 month ago) by maya
Original Path: teraterm/trunk/ttpcmn/ttcmn.c
File length: 42720 byte(s)
Diff to previous 2556 , to selected 2476
* Windows 95
- Winsock2 が必須
- ttermpro の起動に IE4 以上が必須
- ヘルプの表示に IE5 以上が必須
- LogMeTTc は動かない
- TTLEdit はボタンの色がうまく出ない

* NT 4.0
- ヘルプの表示に IE5 以上が必須
- LogMeTT, TTLEdit の起動に SP4(?)以上 が必須
- LogMeTTc の起動に SP6 以上が必須


Revision 2556 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 6 06:50:40 2008 UTC (15 years, 9 months ago) by yutakapon
Original Path: teraterm/trunk/ttpcmn/ttcmn.c
File length: 41259 byte(s)
Diff to previous 2476
韓国語パッチを追加した。
http://sourceforge.jp/tracker/index.php?func=detail&aid=12957&group_id=1412&atid=5335


Revision 2476 - (view) (download) (as text) (annotate) - [selected]
Added Mon Apr 14 17:35:50 2008 UTC (16 years ago) by maya
Original Path: teraterm/trunk/ttpcmn/ttcmn.c
File length: 37763 byte(s)
ファイル移動に伴う修正


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26