Date: Wed, 02 Dec 1998 23:02:04 -0500 From: "Steve Friedrich" <sfriedri@laker.net> To: "Guy Helmer" <ghelmer@scl.ameslab.gov>, "Karl Pielorz" <kpielorz@tdx.co.uk> Cc: "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG> Subject: Re: Userland feature request Message-ID: <199812030404.XAA29799@laker.net>
next in thread | raw e-mail | index | archive | help
On Wed, 2 Dec 1998 20:03:52 -0600 (CST), Guy Helmer wrote: >Is there a way to clear the scrollback buffer? When one logs out of the >console, it would be good if someone else couldn't come along and see the >last bits of what the previous user had been doing. I've tried putting \f >in the gettytab, but it doesn't seem to clear the scrollback buffer. I put the following in a file called clrscreen in /usr/local/mylastname: #!/bin/sh case `tty` in /dev/ttyv*) kbdcontrol -h 100 ; clear esac I added /usr/local/mylastname to my paths (and I updated the skeletons in /usr/share/skel) and created a /etc/csh.logout with: clrscreen You'll need to figure a way to invoke it with other shells. ;o) HTH Unix systems measure "uptime" in years, Winblows measures it in minutes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812030404.XAA29799>