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> GgðÇÁµ½BftHgÍoffB</li> </ul></li> + <li>ZbV¡»ð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; } + // ZbV¡»ð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));