simon-svn: putty: simon
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Sun Sep 23 16:36:55 BST 2012
SVN root: svn://svn.tartarus.org/sgt
Changes by: simon
Revision: 9677
Date: 2012-09-23 16:36:54 +0100 (Sun, 23 Sep 2012)
Log message (14 lines):
Clip the 'lines' parameter to scroll() at the size of the scroll
window. scroll() iterates that many times, so this prevents a tedious
wait if you give a very large parameter to ESC[L or ESC[M, for
example.
A side effect is that very large requests for upward scrolling in a
context that affects the scrollback will not actually wipe out the
whole scrollback: instead they push just the current lines of the
screen into the scrollback, and don't continue on to fill it up with
endless boring blank lines. I think this is likely to be more useful
in general, since it avoids wiping out lots of useful scrollback data
by mistake. I can imagine that people might have been using it
precisely _to_ wipe the scrollback in some situations, but if so then
they should use CSI 3 J instead.
Modified files:
U putty/terminal.c
Links:
http://svn.tartarus.org/sgt/?rev=9677&view=rev
http://svn.tartarus.org/sgt/putty/terminal.c?rev=9677&r1=9676&r2=9677
More information about the tartarus-commits
mailing list