mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Fix `restart-reset-terminal': terminal now restored to a sensible state when
reusing a window to restart a session. [originally from svn r6577] [this svn revision also touched putty-wishlist]
This commit is contained in:
@ -1987,6 +1987,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
||||
case IDM_RESTART:
|
||||
if (!back) {
|
||||
logevent(NULL, "----- Session restarted -----");
|
||||
term_pwron(term, FALSE);
|
||||
start_backend();
|
||||
}
|
||||
|
||||
@ -2154,7 +2155,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
||||
term_clrsb(term);
|
||||
break;
|
||||
case IDM_RESET:
|
||||
term_pwron(term);
|
||||
term_pwron(term, TRUE);
|
||||
if (ldisc)
|
||||
ldisc_send(ldisc, NULL, 0, 0);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user