Skip to content

Commit cd592e4

Browse files
authored
Merge pull request #976 from TeraTermProject/fix/#975-IandVoption
ttermpro.exe の /I オプション指定時にマクロコマンド connect でホストに接続出来ない #975
2 parents 9ccffa2 + 20a5f49 commit cd592e4

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

doc/en/html/about/history.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ <h3 id="teraterm_5.6.0">YYYY.MM.DD (Ver 5.6.0 not released yet)</h3>
5959
Fixed an issue so that [File] - [Change directory...] can be selected even when the session is disconnected.
6060
(<a href="https://github.com/TeraTermProject/teraterm/issues/969" target="_blank">issue #969</a>)
6161
</li>
62+
<li>
63+
Fixed an issue where the window was not hidden when ttermpro.exe was launched with the /V option. (degradation at 5.4.1)<br>
64+
Fixed an issue where the macro command "connect" failed to connect to the host when ttermpro.exe was launched with the /I option. (degradation at 5.4.1)
65+
(<a href="https://github.com/TeraTermProject/teraterm/issues/975" target="_blank">issue #975</a>)
66+
</li>
6267
<li>
6368
Fixed a bug that caused <a href="../setup/teraterm-trans.html#hidetransdialog">FTHideDialog</a> in TERATERM.INI to stop working.
6469
(<a href="https://github.com/TeraTermProject/teraterm/issues/967" target="_blank">issue #967</a>)

doc/ja/html/about/history.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ <h3 id="teraterm_5.6.0">YYYY.MM.DD (Ver 5.6.0 not released yet)</h3>
5959
セッション断の状態でも [File] - [Change directory...] を選択出来るよう修正した。
6060
(<a href="https://github.com/TeraTermProject/teraterm/issues/969" target="_blank">issue #969</a>)
6161
</li>
62+
<li>
63+
ttermpro.exe の /I オプション指定時にマクロコマンド connect でホストに接続出来ない不具合を修正した。(5.4.1でのデグレード)<br>
64+
ttermpro.exe の /V オプション指定時にウインドウが非表示にならない不具合を修正した。(5.4.1でのデグレード)
65+
(<a href="https://github.com/TeraTermProject/teraterm/issues/975" target="_blank">issue #975</a>)
66+
</li>
6267
<li>
6368
TERATERM.INI の <a href="../setup/teraterm-trans.html#hidetransdialog">FTHideDialog</a> が機能しなくなっていた不具合を修正した。
6469
(<a href="https://github.com/TeraTermProject/teraterm/issues/967" target="_blank">issue #967</a>)

teraterm/teraterm/teraterm.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPreInst,
374374
pVTWin = m_pMainWnd;
375375
main_window = m_pMainWnd->m_hWnd;
376376

377-
if (ts.Minimize>0) {
378-
nCmdShow = SW_SHOWMINIMIZED;
379-
}
380-
ShowWindow(main_window, nCmdShow);
381-
382377
// [Tera Term]セクションのDLG_SYSTEM_FONTをとりあえずセットする
383378
SetDialogFont(ts.DialogFontNameW, ts.DialogFontPoint, ts.DialogFontCharSet,
384379
ts.UILanguageFileW, "Tera Term", "DLG_SYSTEM_FONT");

teraterm/teraterm/vtwin.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,7 @@ CVTWindow::CVTWindow(HINSTANCE hInstance)
788788
TipWin->Create(HVTWin);
789789
}
790790

791-
if (ts.nCmdShow == SW_HIDE || ts.nCmdShow == SW_SHOWMINIMIZED ||
792-
ts.nCmdShow == SW_MINIMIZE || ts.HideWindow > 0) {
791+
if (ts.nCmdShow == SW_HIDE || ts.HideWindow > 0) {
793792
if (strlen(TopicName)>0) {
794793
InitDDE();
795794
SendDDEReady();
@@ -799,6 +798,11 @@ CVTWindow::CVTWindow(HINSTANCE hInstance)
799798
return;
800799
}
801800
SetWindowAlpha(ts.AlphaBlendActive);
801+
int CmdShow = ts.nCmdShow;
802+
if (ts.Minimize > 0) {
803+
CmdShow = SW_SHOWMINIMIZED;
804+
}
805+
ShowWindow(CmdShow);
802806
ChangeCaret(vt_src);
803807
}
804808

0 commit comments

Comments
 (0)