]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Aha! At long last I've managed to reproduce the intermittent problem
authorSimon Tatham <anakin@pobox.com>
Tue, 15 Aug 2006 12:45:21 +0000 (12:45 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 15 Aug 2006 12:45:21 +0000 (12:45 +0000)
commit09f86ce7ec4f57794993c9299e1e4de62e17e075
tree52d6047a3439ee12432f2cf7487dc50c35196962
parent33b7caa5900167e6a8134c3affef352da557af23
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.

[originally from svn r6788]
terminal.c