Clear screen on logout (Re: Terminal Corruption)
On Sun, 3 May 1998 email@example.com wrote:
> BTW I put reset in my .bash_logout
> so that the tty gets reset when I logout
> (unfortunatly it does it in xterms too with su etc...
> there should be a better way? relaly I only did it to clear the
> screen on logout)
I finally broke down and did this the right way. Before, I was doing a
trap /usr/bin/clear EXIT
in my /etc/profile. Now I have the characters that are echoed by clear at
the top of my /etc/issue and I unlinked my /etc/issue.net from my
/etc/issue so that telnet's and other network connections don't have this
clear effect, only the virtual terminals.
cat /tmp/clear-chars /etc/issue >/tmp/new-issue
cp /etc/issue /etc/issue.net
mv /tmp/new-issue /etc/issue
Note, be sure that your boot scripts don't overwrite your /etc/issue.
Brandon Mitchell <firstname.lastname@example.org> "We all know linux is great... it
PGP: finger -l email@example.com does infinite loops in 5 seconds"
Phone: (757) 221-4847 --Linus Torvalds
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com