simon-svn: putty: simon
tartarus-commits at lists.tartarus.org
tartarus-commits at lists.tartarus.org
Tue Aug 15 13:45:22 BST 2006
SVN root: svn://ixion.tartarus.org/main
Changes by: simon
Revision: 6788
Date: 2006-08-15 13:45:21 +0100 (Tue, 15 Aug 2006)
Log message (14 lines):
Aha! At long last I've managed to reproduce the intermittent problem
I've been having with the cursor sometimes restoring to the wrong
place when screen(1) terminates. The offending sequence of escape
sequences goes ESC 7 (save cursor), ESC [?47h (switch to alternate
screen), ESC 7 (save cursor _again_), do some stuff, ESC 8 (restore
cursor), run screen session for a bit, ESC [?47l (return to main
screen), ESC 8 (restore cursor). The final ESC 8 is expected to
restore the cursor to where it was saved by the initial ESC 7.
Translation: the ESC 7 saved cursor state is part of the state we
must swap out when switching to the alternate screen. In other
words, we need to track _four_ cursor positions: active and saved,
on each of main and alternate screen. Previously we were tracking
only three.
Modified files:
U putty/terminal.c
Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi?rev=6788&view=rev
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/terminal.c?rev=6788&r1=6787&r2=6788
More information about the tartarus-commits
mailing list