[Ttssh2-commit] [4396] セッション複製を行う際、 /K= があれば引き継ぎを行うようにする。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 3月 27日 (日) 19:53:49 JST


Revision: 4396
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4396
Author:   yutakapon
Date:     2011-03-27 19:53:49 +0900 (Sun, 27 Mar 2011)

Log Message:
-----------
セッション複製を行う際、/K= があれば引き継ぎを行うようにする。
cf. http://sourceforge.jp/ticket/browse.php?group_id=1412&tid=24682

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/ja/html/about/history.html
    trunk/teraterm/teraterm/vtwin.cpp


-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2011-03-26 12:58:15 UTC (rev 4395)
+++ trunk/doc/en/html/about/history.html	2011-03-27 10:53:49 UTC (rev 4396)
@@ -42,6 +42,7 @@
         <ul>
           <li>added the <a href="../setup/teraterm-prn.html#ignoremc">IgnorePrinterCtrl</a> entry in the teraterm.ini file. The default value is off.</li>
         </ul></li>
+      <li>The /k option is inherited by using the Duplicate Session. cf. <a href="http://sourceforge.jp/ticket/browse.php?group_id=1412&tid=24682">/k inheritance in "new session"</a></li>
     </ul>
   </li>
 

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2011-03-26 12:58:15 UTC (rev 4395)
+++ trunk/doc/ja/html/about/history.html	2011-03-27 10:53:49 UTC (rev 4396)
@@ -42,6 +42,7 @@
         <ul>
           <li>teraterm.ini ‚É <a href="../setup/teraterm-prn.html#ignoremc">IgnorePrinterCtrl</a> ƒGƒ“ƒgƒŠ‚ð’ljÁ‚µ‚½BƒfƒtƒHƒ‹ƒg‚ÍoffB</li>
         </ul></li>
+      <li>ƒZƒbƒVƒ‡ƒ“•¡»‚ðs‚¤ÛA/K= ‚ª‚ ‚ê‚Έø‚«Œp‚¬‚ðs‚¤‚悤‚É‚µ‚½B cf. <a href="http://sourceforge.jp/ticket/browse.php?group_id=1412&tid=24682">/k inheritance in "new session"</a></li>
     </ul>
   </li>
 

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2011-03-26 12:58:15 UTC (rev 4395)
+++ trunk/teraterm/teraterm/vtwin.cpp	2011-03-27 10:53:49 UTC (rev 4396)
@@ -3473,7 +3473,7 @@
 // (2004.12.6 yutaka)
 void CVTWindow::OnDuplicateSession()
 {
-	char Command[MAX_PATH];
+	char Command[1024];
 	char *exec = "ttermpro";
 	STARTUPINFO si;
 	PROCESS_INFORMATION pi;
@@ -3505,6 +3505,14 @@
 		return;
 	}
 
+	// ƒZƒbƒVƒ‡ƒ“•¡»‚ðs‚¤ÛA/K= ‚ª‚ ‚ê‚Έø‚«Œp‚¬‚ðs‚¤‚悤‚É‚·‚éB
+	// cf. http://sourceforge.jp/ticket/browse.php?group_id=1412&tid=24682
+	// (2011.3.27 yutaka)
+	if (strlen(ts.KeyCnfFN) > 0) {
+		strncat_s(Command, sizeof(Command), " /K=", _TRUNCATE);
+		strncat_s(Command, sizeof(Command), ts.KeyCnfFN, _TRUNCATE);
+	}
+
 	memset(&si, 0, sizeof(si));
 	GetStartupInfo(&si);
 	memset(&pi, 0, sizeof(pi));



Ttssh2-commit メーリングリストの案内
Back to archive index