Package: less
Version: 418-1
Severity: normal

Is there any reason to use the ti termcap strings when the user
presses "F" or "G"?  It may be a way of gauranteeing that the screen
is clear, but this only needs to be done once, and is already done at
startup if "-X" isn't supplied -- just a normal "$ESC[H$ESC[2J"[1]
should be enough on subsequent occasions (or the first time it is used
when -X is supplied.  I notice this because I've turned off xterm's
horrible alternate screen switching, and turned on:

.Xdefaults:
! This resource specifies whether or not to ignore the 'alternate screen'
! of applications such as vi.  When it is on, these applications will restore
! the contents of the screen when they are exited to what they were before
! they were started.  When it is off, the contents of vi will remain on the
! screen after the program is quit.
XTerm.VT100.titeInhibit:  true
!and then allow an extra screenfull of scroll
XTerm.VT100.tiXtraScroll: true

Whenever I press F or G, I get an extra scroll happening, telling me
that less is trying to switch screens to the alternate screen.  I
would guess this would be completely unecessary (as well as a waste of
xterm scrollback buffer).

[1] Or whatever the official clear sequence is -- I just took that
from the output of 'clear'

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24 (SMP w/2 CPU cores)
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages less depends on:
ii  debianutils               2.28.5         Miscellaneous utilities specific t
ii  libc6                     2.7-10         GNU C Library: Shared libraries
ii  libncurses5               5.6+20080419-2 Shared libraries for terminal hand

less recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to