[Ttssh2-commit] [3280] 切断時に画面をクリアできる ClearScreenOnCloseConnection を追加した。

svnno****@sourc***** svnno****@sourc*****
2009年 4月 6日 (月) 21:52:39 JST


Revision: 3280
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3280
Author:   maya
Date:     2009-04-06 21:52:39 +0900 (Mon, 06 Apr 2009)

Log Message:
-----------
切断時に画面をクリアできる ClearScreenOnCloseConnection を追加した。

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/en/html/setup/teraterm-misc.html
    trunk/doc/en/html/setup/teraterm.html
    trunk/doc/jp/html/about/history.html
    trunk/doc/jp/html/setup/teraterm-misc.html
    trunk/doc/jp/html/setup/teraterm.html
    trunk/installer/release/TERATERM.INI
    trunk/installer/teraterm.iss
    trunk/teraterm/common/tttypes.h
    trunk/teraterm/teraterm/vtwin.cpp
    trunk/teraterm/ttpset/ttset.c


-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2009-04-06 12:24:31 UTC (rev 3279)
+++ trunk/doc/en/html/about/history.html	2009-04-06 12:52:39 UTC (rev 3280)
@@ -42,6 +42,10 @@
         <ul>
           <li>added <a href="../setup/teraterm-misc.html#DisableAcceleratorMenu">DisableAcceleratorMenu</a> in teraterm.ini file. The default is off.</li>
         </ul></li>
+      <li><!--Ø’fŽž‚ɉæ–Ê‚ðƒNƒŠƒA‚Å‚«‚é‚悤‚É‚µ‚½B-->
+        <ul>
+          <li>added <a href="../setup/teraterm-misc.html#ClearScreenOnCloseConnection">ClearScreenOnCloseConnection</a> in teraterm.ini file. The default is off.</li>
+        </ul></li>
     </ul></li>
 
   <li>Misc

Modified: trunk/doc/en/html/setup/teraterm-misc.html
===================================================================
--- trunk/doc/en/html/setup/teraterm-misc.html	2009-04-06 12:24:31 UTC (rev 3279)
+++ trunk/doc/en/html/setup/teraterm-misc.html	2009-04-06 12:52:39 UTC (rev 3280)
@@ -152,5 +152,21 @@
 </pre>
 
 
+<h1><a name="ClearScreenOnCloseConnection"><!--Ø’fŽž‚ɉæ–Ê‚ðƒNƒŠƒA‚·‚é--></a></h1>
+
+<p>
+<!--Ø’fŽž‚ɉæ–Ê‚ðƒNƒŠƒA‚·‚é‚ɂ́AÝ’èƒtƒ@ƒCƒ‹‚Ì [Tera Term] ƒZƒNƒVƒ‡ƒ“‚Ì ClearScreenOnCloseConnection s‚ðˆÈ‰º‚̂悤‚ɕύX‚µ‚Ä‚­‚¾‚³‚¢B-->
+</p>
+
+<pre>
+ClearScreenOnCloseConnection=on
+</pre>
+
+<pre>
+Default:
+ClearScreenOnCloseConnection=off
+</pre>
+
+
 </BODY>
 </HTML>

Modified: trunk/doc/en/html/setup/teraterm.html
===================================================================
--- trunk/doc/en/html/setup/teraterm.html	2009-04-06 12:24:31 UTC (rev 3279)
+++ trunk/doc/en/html/setup/teraterm.html	2009-04-06 12:52:39 UTC (rev 3280)
@@ -115,6 +115,7 @@
  <li><a href="teraterm-misc.html#hostdlg">Showing "New Connection" dialog on startup</a></li>
  <li><a href="teraterm-misc.html#DisablePasteMouseMButton">Enable paste by clicking the middle button of mouse</a></li>
  <li><a href="teraterm-misc.html#DisableAcceleratorMenu">Disable "Send break" menu</a></li>
+ <li><a href="teraterm-misc.html#ClearScreenOnCloseConnection"><!--Ø’fŽž‚ɉæ–Ê‚ðƒNƒŠƒA‚·‚é--></a></li>
 </ul>
 
 </body>

Modified: trunk/doc/jp/html/about/history.html
===================================================================
--- trunk/doc/jp/html/about/history.html	2009-04-06 12:24:31 UTC (rev 3279)
+++ trunk/doc/jp/html/about/history.html	2009-04-06 12:52:39 UTC (rev 3280)
@@ -42,6 +42,10 @@
         <ul>
           <li>teraterm.ini ‚É <a href="../setup/teraterm-misc.html#DisableAcceleratorMenu">DisableAcceleratorMenu</a> ƒGƒ“ƒgƒŠ‚ð’ljÁ‚µ‚½BƒfƒtƒHƒ‹ƒg‚Í offB</li>
         </ul></li>
+      <li>Ø’fŽž‚ɉæ–Ê‚ðƒNƒŠƒA‚Å‚«‚é‚悤‚É‚µ‚½B
+        <ul>
+          <li>teraterm.ini ‚É <a href="../setup/teraterm-misc.html#ClearScreenOnCloseConnection">ClearScreenOnCloseConnectionu</a> ƒGƒ“ƒgƒŠ‚ð’ljÁ‚µ‚½BƒfƒtƒHƒ‹ƒg‚Í offB</li>
+        </ul></li>
     </ul></li>
 
   <li>‚»‚Ì‘¼

Modified: trunk/doc/jp/html/setup/teraterm-misc.html
===================================================================
--- trunk/doc/jp/html/setup/teraterm-misc.html	2009-04-06 12:24:31 UTC (rev 3279)
+++ trunk/doc/jp/html/setup/teraterm-misc.html	2009-04-06 12:52:39 UTC (rev 3280)
@@ -179,5 +179,21 @@
 </pre>
 
 
+<h1><a name="ClearScreenOnCloseConnection">Ø’fŽž‚ɉæ–Ê‚ðƒNƒŠƒA‚·‚é</a></h1>
+
+<p>
+Ø’fŽž‚ɉæ–Ê‚ðƒNƒŠƒA‚·‚é‚ɂ́AÝ’èƒtƒ@ƒCƒ‹‚Ì [Tera Term] ƒZƒNƒVƒ‡ƒ“‚Ì ClearScreenOnCloseConnection s‚ðˆÈ‰º‚̂悤‚ɕύX‚µ‚Ä‚­‚¾‚³‚¢B
+</p>
+
+<pre>
+ClearScreenOnCloseConnection=on
+</pre>
+
+<pre>
+È—ªŽž:
+ClearScreenOnCloseConnection=off
+</pre>
+
+
 </BODY>
 </HTML>

Modified: trunk/doc/jp/html/setup/teraterm.html
===================================================================
--- trunk/doc/jp/html/setup/teraterm.html	2009-04-06 12:24:31 UTC (rev 3279)
+++ trunk/doc/jp/html/setup/teraterm.html	2009-04-06 12:52:39 UTC (rev 3280)
@@ -119,6 +119,7 @@
  <li><a href="teraterm-misc.html#hostdlg">‹N“®Žž‚Ì "New Connection" ƒ_ƒCƒAƒƒO‚Ì•\Ž¦</a></li>
  <li><a href="teraterm-misc.html#DisablePasteMouseMButton">ƒ}ƒEƒX‚Ì’†ƒ{ƒ^ƒ“‚É‚æ‚é“\‚è•t‚¯‚ð—LŒø‚É‚·‚é</a></li>
  <li><a href="teraterm-misc.html#DisableAcceleratorMenu">ƒƒjƒ…[‚Ì Send break ‚𖳌ø‚É‚·‚é</a></li>
+ <li><a href="teraterm-misc.html#ClearScreenOnCloseConnection">Ø’fŽž‚ɉæ–Ê‚ðƒNƒŠƒA‚·‚é</a></li>
 </ul>
 
 </body>

Modified: trunk/installer/release/TERATERM.INI
===================================================================
--- trunk/installer/release/TERATERM.INI	2009-04-06 12:24:31 UTC (rev 3279)
+++ trunk/installer/release/TERATERM.INI	2009-04-06 12:52:39 UTC (rev 3280)
@@ -335,6 +335,9 @@
 ; Clear serial port buffer when port opening
 ClearComBuffOnOpen=on
 
+; Clear screen after the connection is closed
+ClearScreenOnCloseConnection=off
+
 ; "Disconnect?" warning
 ConfirmDisconnect=on
 

Modified: trunk/installer/teraterm.iss
===================================================================
--- trunk/installer/teraterm.iss	2009-04-06 12:24:31 UTC (rev 3279)
+++ trunk/installer/teraterm.iss	2009-04-06 12:52:39 UTC (rev 3280)
@@ -141,6 +141,8 @@
 Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\cyglaunch; Filename: {app}\cyglaunch.exe; WorkingDir: {app}; IconFilename: {app}\cyglaunch.exe; Components: cygterm; Tasks: quickcyglaunch; IconIndex: 0; Flags: createonlyiffileexists
 
 [INI]
+Filename: {app}\teraterm.ini; Section: Tera Term; Key: ClearScreenOnCloseConnection; String: off; Flags: createkeyifdoesntexist; Components: TeraTerm
+Filename: {userdocs}\teraterm.ini; Section: Tera Term; Key: ClearScreenOnCloseConnection; String: off; Flags: createkeyifdoesntexist; Check: isUserIniExists; Components: TeraTerm
 Filename: {app}\teraterm.ini; Section: Tera Term; Key: DisableAcceleratorMenu; String: off; Flags: createkeyifdoesntexist; Components: TeraTerm
 Filename: {userdocs}\teraterm.ini; Section: Tera Term; Key: DisableAcceleratorMenu; String: off; Flags: createkeyifdoesntexist; Check: isUserIniExists; Components: TeraTerm
 Filename: {app}\teraterm.ini; Section: Tera Term; Key: PasteDialogSize; String: 330,220; Flags: createkeyifdoesntexist; Components: TeraTerm

Modified: trunk/teraterm/common/tttypes.h
===================================================================
--- trunk/teraterm/common/tttypes.h	2009-04-06 12:24:31 UTC (rev 3279)
+++ trunk/teraterm/common/tttypes.h	2009-04-06 12:52:39 UTC (rev 3280)
@@ -451,6 +451,7 @@
 	WORD StrictKeyMapping;
 	WORD Wait4allMacroCommand;
 	WORD DisableAcceleratorMenu;
+	WORD ClearScreenOnCloseConnection;
 };
 
 typedef struct tttset TTTSet, *PTTSet;
@@ -887,6 +888,7 @@
  * - At version 4.63, ttset_memfilemap was replaced with ttset_memfilemap_11.
  *   added tttset.Wait4allMacroCommand.
  *   added tttset.DisableAcceleratorMenu.
+ *   added tttset.ClearScreenOnCloseConnection.
  *
  * - At version 4.62, ttset_memfilemap was replaced with ttset_memfilemap_10.
  *   added tttset.DisableMouseTrackingByCtrl.

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2009-04-06 12:24:31 UTC (rev 3279)
+++ trunk/teraterm/teraterm/vtwin.cpp	2009-04-06 12:52:39 UTC (rev 3280)
@@ -2592,8 +2592,12 @@
 				::IsWindowEnabled(HVTWin) &&
 				((HTEKWin==NULL) || ::IsWindowEnabled(HTEKWin)) )
 				OnClose();
-			else
+			else {
 				ChangeTitle();
+				if (ts.ClearScreenOnCloseConnection) {
+					OnEditClearScreen();
+				}
+			}
 			break;
 		case IdPrnStartTimer:
 			PrnFileStart();

Modified: trunk/teraterm/ttpset/ttset.c
===================================================================
--- trunk/teraterm/ttpset/ttset.c	2009-04-06 12:24:31 UTC (rev 3279)
+++ trunk/teraterm/ttpset/ttset.c	2009-04-06 12:52:39 UTC (rev 3280)
@@ -2160,6 +2160,10 @@
 	// DisableAcceleratorMenu
 	WriteOnOff(Section, "DisableAcceleratorMenu", FName,
 	           ts->DisableAcceleratorMenu);
+
+	// ClearScreenOnCloseConnection
+	WriteOnOff(Section, "ClearScreenOnCloseConnection", FName,
+	           ts->ClearScreenOnCloseConnection);
 }
 
 #define VTEditor "VT editor keypad"



Ttssh2-commit メーリングリストの案内