simon-svn: putty: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Fri Mar 7 18:30:37 GMT 2008


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       7911
Date:           2008-03-07 18:30:37 +0000 (Fri, 07 Mar 2008)

Log message (16 lines):
Fix a cursor positioning infelicity.

The scenario: I start a small, say 80x24, pterm. I do some work in
it, generating plenty of scrollback, and eventually I `less' a file.
`less' switches to the alt screen. Then I want more vertical space
to look at the file, so I enlarge the window to more like 80x60.
When I quit `less' and switch back to the primary screen, some
scrollback has been pulled down into the screen, as expected - but
the saved _cursor position_ is still at line 24, not at the bottom
of the new terminal where the prompt it goes with has moved to.

Solution: term_size() should adjust the alt-screen saved cursor
positions as well as the normal cursor position.

(Curiously, the problem doesn't happen on my home Debian box, even
without this fix. It happens on my RH9 box at work, though.)

Modified files:
U   putty/terminal.c

Links:
http://svn.tartarus.org/?rev=7911&view=rev
http://svn.tartarus.org/putty/terminal.c?rev=7911&r1=7910&r2=7911



More information about the tartarus-commits mailing list