On Thu, Jul 09, 2009 at 11:05:05PM +0000, Stuart Henderson wrote: > On 2009-07-09, Olivier Regnier <oregn...@hotmail.com> wrote: > > Hello, > > > > I installed OpenBSD 4.5 on my Samsung NC10. I want to clear the console each > > time a user logs out. I modified /etc/gettytab file but i have no result. > > Can > > you give me some information on this topic ? > > > > Thank you in advance. > > you need to modify std.9600 or default in gettytab, unless you change the > terminal type in ttys. > > I'm not sure if there's a good way to clear the scrollback buffer though.
if you just want a clear screen for the next login, you can have your shell catch the EXIT signal and clear the screen. for example, in a ksh .profile, have: trap clear EXIT or instead of running clear, it could source a file of commands, or whatever. the "trap" built-in is described in more detail in ksh(1). i don;t know if csh has an equivalent. that doesn;t clear the scrollback buffer exactly, but it will clear most of it. jmc