Quantcast
Channel: All Open Tickets - Tera Term on OSDN
Viewing all articles
Browse latest Browse all 2128

Add ini option to hide file transfer dialog - Tera Term Ticket #31547 on SourceForge.JP

$
0
0

Add ini option to hide file transfer dialog

Open Date: 2013-06-10 22:21

Letztes Update: 2013-06-11 15:12

Reporter:(Anonymous)Eigentümer:(None)
Priority:5 - MediumMileStone:Tera Term 4.79
Type:PatchesSeverity:7
Component:Tera Term MacroStatus:Closed
ResolutionFixed

Details

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

Last Update of this Ticket

2013-06-11 15:12 Update by: doda

  • Milestone Update from (None) to Tera Term 4.79.
  • Ticket Close date set to 2013-06-11 15:12
  • Status Update from Open to Closed.
  • Resolution Update from None to Fixed.

Kommentar

Comitted. Thanks!


Viewing all articles
Browse latest Browse all 2128