Skip to content

Commit 2923fc6

Browse files
committed
ssh client restores previous screen colors after a tty session has ended
ssh.exe restores console color settings for a tty session to what was before. This is a usability improvement and a user have written an issue (#31) for this fix.
1 parent 5752a7e commit 2923fc6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ssh.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,6 +1561,9 @@ main(int ac, char **av)
15611561

15621562
#ifdef WIN32_FIXME
15631563

1564+
if (tty_flag)
1565+
ConUnInitWithRestore(); // restore terminal to previous settings if it was a tty session
1566+
15641567
CleanUpProxyProcess();
15651568

15661569
UninitMitKerberos();

0 commit comments

Comments
 (0)