Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
- To: "MLUG Members" <EMAIL:PROTECTED>
- Subject: Re: [MLUG] clearing the screen without losing data
- From: "Robert Citek" <EMAIL:PROTECTED>
- Date: Sat, 3 May 2008 03:47:24 -0500
- Delivery-date: Sat, 03 May 2008 03:47:43 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=nGinXdrxHpxkGy5mDYUFD1IUNJSe6KmWQtHuaoyS7go=; b=b2Y9NkIHxEbJthPtuM+rvfNmZUMzZRxJrClS+B4E89VPYJcC0dzzBCGgR9/yp2hYt9XmZcDEANqXpzv/x7BTQTVE15ZDwoxh8RVeWTXI9QU6V4xUSokM+ZEs2bawSFSWKAHnRaiwCLulwGQ18njtKA4BsEMdU6Pu8KP2Y1m8w6Q=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=p38mu28UwqSRr7htOp2FaKjP6DWqLnTdvhgrz5Fr6ZGtEPVfyaTCB1l1hGwEwbJxUoIToxPIpumLK2CRRS2t28Myv9cKI568l16IQcf59m0vXmrDiMDbFXzvnf0yCzrTELM06deVbDyhz9wBG5wk2N8bItFTpBTybSW2mtnc3Sg=
- Envelope-to: EMAIL:PROTECTED
- In-reply-to: <EMAIL:PROTECTED>
- References: <EMAIL:PROTECTED>
- Reply-to: MLUG Members <EMAIL:PROTECTED>
- Sender: EMAIL:PROTECTED
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:
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