From owner-freebsd-questions Fri Feb 8 19:56: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web13409.mail.yahoo.com (web13409.mail.yahoo.com [216.136.172.17]) by hub.freebsd.org (Postfix) with SMTP id AE64C37B41B for ; Fri, 8 Feb 2002 19:55:57 -0800 (PST) Message-ID: <20020209035557.88506.qmail@web13409.mail.yahoo.com> Received: from [67.203.82.42] by web13409.mail.yahoo.com via HTTP; Fri, 08 Feb 2002 19:55:57 PST Date: Fri, 8 Feb 2002 19:55:57 -0800 (PST) From: Andrew Gould Subject: Re: how to clear the screen while logging off To: Cliff Sarginson , freebsd-questions@FreeBSD.ORG In-Reply-To: <20020209034721.GB6163@raggedclown.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- Cliff Sarginson wrote: > On Fri, Feb 08, 2002 at 07:11:55PM -0800, Andrew > Gould wrote: > > --- Ken Bolingbroke > wrote: > > > > > > > > > On Fri, 8 Feb 2002, Skull Crusher wrote: > > > > > > > Hello, > > > > Is there a way to clear the screen as you log > off > > > besides just typing > > > > CLEAR and then type EXIT > > > > What I would like it to look like is just like > the > > > normal logon screen > > > > where it just says FreeBSD/i386 > > > (blah.blah.blah.com) ttyvX > > > > If you know what I mean.. > > > > > > If your shell executes a logout script, stick a > > > 'clear' statement in that. > > > I use tcsh which uses ~/.logout for individual > users > > > and /etc/csh.logout > > > for systemwide. > > > > > > Ken Bolingbroke > > > hacker@bolingbroke.com > > > > For the bash shell, put the 'clear' statement in > > ~/.bash_logout. > > > > As root, you can then copy the .bash_logout file > to > > /usr/share/skel/dot.bash_logout to automatically > > install the file in new users' home directories. > > > Mmm, if you are doing this for security reasons you > may want to check > what happens after you log out, set the scroll-lock > key to on, and push > up-arrow... > > -- > Regards > Cliff You can take care of that problem by recompiling the kernel with the following option line: options SC_NO_HISTORY Andrew Gould __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message