チケット #31547

Add ini option to hide file transfer dialog

登録: 2013-06-10 22:21 最終更新: 2013-06-11 15:12

報告者:
(匿名)
担当者:
(未割り当て)
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
7
解決法:
修正済み
ファイル:
なし
投票
点数: 0
No votes
0.0% (0/0)
0.0% (0/0)

詳細

Hello,

I have written the following to the ttssh2-devel but I do not think it reached the destination.

I am using TeraTerm for automated testing. It is great but ... the testing lasts for hours, and in that time the desktop is literally unusable because of popup windows. Whenever I press Enter key there is a sensible chance that I would cancel a file transfer, and ruin everything. It is frustrating and annoying.

In the following lines there is a simple patch to make the file transfer dialog hidden. I hope this will improve things a little bit. The patch was never tried because I can not install Visual Studio. I hope maybe someone here can try it.

* Patch is applied over version ttssh2-tags_teraterm-4_78-r5307.tar.gz

# ~/Install/teraterm-4_78
$ git diff 1df9 8a0f
diff --git a/teraterm/common/tttypes.h b/teraterm/common/tttypes.h
index dedc843..dcb1b88 100755
--- a/teraterm/common/tttypes.h
+++ b/teraterm/common/tttypes.h
@@ -513,6 +513,7 @@ struct tttset {
        WORD MouseEventTracking;
        WORD KillFocusCursor;
        WORD LogHideDialog;
+       WORD FTHideDialog;
        int TerminalOldWidth;
        int TerminalOldHeight;
        WORD MaximizedBugTweak;
@@ -1025,6 +1026,9 @@ typedef TMap far *PMap;
  * Increment the number of this macro value
  * when you change TMap or member of TMap.
  *
+ * - At version 4.78,
+ *   added tttset.FTHideDialog
+ *
  * - At version 4.78, ttset_memfilemap was replaced with ttset_memfilemap_20.
  *   added tttset.LogRotate
  *   added tttset.LogRotateSize
diff --git a/teraterm/teraterm/filesys.cpp b/teraterm/teraterm/filesys.cpp
index 3496a9b..2ca06a2 100755
--- a/teraterm/teraterm/filesys.cpp
+++ b/teraterm/teraterm/filesys.cpp
@@ -207,6 +207,7 @@ BOOL OpenFTDlg(PFileVar fv)

        fv->StartTime = 0;
        fv->ProgStat = 0;
+       fv->HideDialog = ts.FTHideDialog;

        if (FTDlg!=NULL)
        {
diff --git a/teraterm/ttpset/ttset.c b/teraterm/ttpset/ttset.c
index 4b036eb..b211924 100755
--- a/teraterm/ttpset/ttset.c
+++ b/teraterm/ttpset/ttset.c
@@ -762,6 +762,9 @@ void FAR PASCAL ReadIniFile(PCHAR FName, PTTSet ts)
        /* Log without transfer dialog */
        ts->LogHideDialog = GetOnOff(Section, "LogHideDialog", FName, FALSE);

+       /* File Transfer dialog visibility */
+       ts->FTHideDialog = GetOnOff(Section, "FTHideDialog", FName, FALSE);
+
        /* Default Log file name (2006.8.28 maya) */
        GetPrivateProfileString(Section, "LogDefaultName", "teraterm.log",
                                ts->LogDefaultName, sizeof(ts->LogDefaultName),

This patch makes use of the existing option to hide the file transfer popup, present in CFileTransDlg::Create. It will (hopefully) add "FTHideDialog" option in the ini file to enable/disable this pop-up.

Please review and give comments to

Teodor Robas

teodor.robas<AT>bp.renesas.com

チケットの履歴 (2 件中 2 件表示)

2013-06-10 22:21 更新者: None
  • 新しいチケット "Add ini option to hide file transfer dialog" が作成されました
2013-06-11 15:12 更新者: doda
  • 解決法なし から 修正済み に更新されました
  • 状況オープン から 完了 に更新されました
  • チケット完了時刻2013-06-11 15:12 に更新されました
  • マイルストーン(未割り当て) から Tera Term 4.79 (完了済み) に更新されました
コメント

Comitted. Thanks!

添付ファイルリスト

添付ファイルはありません

編集

ログインしていません。ログインしていない状態では、コメントに記載者の記録が残りません。 » ログインする