[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clearing Text Terminals after Logout...



Doktor Faustus <faustus@telusplanet.net> wrote:

> What do I need to edit in the /etc/gettytab to get a vt100 terminal to clear
> itself after logout?  I am all thumbs when it comes to escape sequences.

tput(1) is quite helpful.

naddy@spaghetti[~] tput -Tvt100 clear | hd
00000000  1B 5B 48 1B 5B 4A                                 |.[H.[J|

Oh, and before you ask:

naddy@spaghetti[~] cat bin/hd
#!/usr/bin/hexdump -f
"%08_ax  " 8/1 "%02X " "  " 8/1 "%02X "
"  |" "%_p"
"|\n"

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de