1
0
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:
Jacob Nevins
2006-02-19 14:59:48 +00:00
parent 54741e1271
commit dd73d2a836
4 changed files with 25 additions and 10 deletions

View File

@ -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;