|
||||
HOWTO: Clear console screen after logout
I have tried to put clear at shells logout scripts: /etc/{zlogout,csh.logout} etc, also changing /etc/gettytab from:
Code:
P|Pc|Pc console:\ :ht:np:sp#115200: Code:
P|Pc|Pc console:\ :ht:np:sp#115200:\ :cl=\E[H\E[2J: At this moment the only trully working sollution to this I have found is to put: Code:
vidcontrol -C && clear REPLIES: vidcontrol -C && clear does this very well, but like I said I am looking for some PURE/PROPER sollution for this. Quote:
Regards EDIT0: I think that I will use Your method because sh and ksh shells does not support any *logout files. EDIT1: sollution to not use /etc/gettytab: sh and ksh both use /etc/profile as a main startup file but as I mentioned before they does not support *logout files, the sollution is to put this command into /etc/profile: Code:
trap "vidcontrol -C && clear" 0
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd Last edited by Carpetsmoker; 7th May 2008 at 05:47 AM. Reason: Fix title |
Tags |
clear, logout, vidcontrol |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HOWTO: system load status in screen(1) | vermaden | Guides | 9 | 29th March 2010 08:07 PM |
log in to console and startx in os x | questionguy | Other BSD and UNIX/UNIX-like | 11 | 25th August 2009 05:27 AM |
Console Resolution Problem | kienjakenobi | FreeBSD General | 19 | 12th September 2008 12:20 PM |
Console Fonts | JMJ_coder | General software and network | 6 | 10th September 2008 09:57 PM |