Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
On Sat, 3 May 2008, Robert Citek wrote:
On Sat, May 3, 2008 at 1:27 AM, Mike Miller <EMAIL:PROTECTED> wrote:
in some terminals everything that was on the screen is deleted
and in others it is just scrolled up so that I can look at it if I want to.
It appears to depend on your $TERM setting. vt100 will erase. For example:
What terminal were you using? xterm? In rxvt terminal, it does not work
as you say -- it doesn't scroll with any TERM setting. It doesn't work
for me in xterm either. Also, when I use PuTTY, I get the desired
scrolling behavior even with vt100.
So I think your results (below) have something to do with the interaction
of your terminal with your TERM setting. The same tput clear string is
giving me different results on different terminals.
Thanks for the tips on tput, od, etc. That is very interesting. Using
that method I can see that rxvt and xterm TERM settings produce the same
clear string.
Mike
export TERM=vt100
seq 1 100
clear
If you scroll back, you won't see the end of the sequence. In
contrast, xterm will scroll. For example:
export TERM=xterm
seq 1 100
clear
I would venture the difference is because of the command sent to the terminal.
$ ( TERM=vt100 ; tput clear | od -bcAn )
033 133 110 033 133 112
033 [ H 033 [ J
$ ( TERM=xterm ; tput clear | od -bcAn )
033 133 110 033 133 062 112
033 [ H 033 [ 2 J
To view all the string command variations for clear:
$ find /lib/terminfo/ -type f |
while read name ; do
echo $name
TERM=${name##*/}
tput clear | od -bcAn
done
For more info, man tput and terminfo.
Regards,
- Robert
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members