svnno****@sourc*****
svnno****@sourc*****
2011年 3月 14日 (月) 19:16:57 JST
Revision: 4383 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4383 Author: yutakapon Date: 2011-03-14 19:16:57 +0900 (Mon, 14 Mar 2011) Log Message: ----------- realtime modeã®å ´åãEnter keyã®ã¿éãã cf. http://logmett.com/forum/viewtopic.php?f=8&t=1601 Modified Paths: -------------- trunk/teraterm/teraterm/vtwin.cpp -------------- next part -------------- Modified: trunk/teraterm/teraterm/vtwin.cpp =================================================================== --- trunk/teraterm/teraterm/vtwin.cpp 2011-03-12 05:58:16 UTC (rev 4382) +++ trunk/teraterm/teraterm/vtwin.cpp 2011-03-14 10:16:57 UTC (rev 4383) @@ -3388,6 +3388,7 @@ if ((GetHNRec.PortType==IdTCPIP) && (ts.HistoryList>0) && LoadTTSET()) { + (*AddHostToList)(ts.SetupFName,GetHNRec.HostName); FreeTTSET(); } @@ -4816,6 +4817,16 @@ case IDOK: { memset(buf, 0, sizeof(buf)); + + // realtime modeÌêAEnter keyÌÝéB + // cf. http://logmett.com/forum/viewtopic.php?f=8&t=1601 + // (2011.3.14 hirata) + checked = SendMessage(GetDlgItem(hWnd, IDC_REALTIME_CHECK), BM_GETCHECK, 0, 0); + if (checked & BST_CHECKED) { // check è + strncpy_s(buf, sizeof(buf), "\n", _TRUNCATE); + goto skip; + } + ret = GetDlgItemText(hWnd, IDC_COMMAND_EDIT, buf, 256 - 1); if (ret == 0) { // error memset(buf, 0, sizeof(buf)); @@ -4853,6 +4864,7 @@ } } +skip:; // 337: 2007/03/20 `FbN³êÄ¢½çeEBhEÉÌÝM checked = SendMessage(GetDlgItem(hWnd, IDC_PARENT_ONLY), BM_GETCHECK, 0, 0);