From owner-freebsd-questions Wed Dec 2 20:04:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA22432 for freebsd-questions-outgoing; Wed, 2 Dec 1998 20:04:49 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from laker.net (jet.laker.net [205.245.74.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA22410 for ; Wed, 2 Dec 1998 20:04:46 -0800 (PST) (envelope-from sfriedri@laker.net) Received: from nt (digital-fll-119.laker.net [205.245.75.19]) by laker.net (8.9.0/8.9.LAKERNET.NO-SPAM.SPAMMERS.AND.RELAYS.WILL.BE.TRACKED.AND.PROSECUTED.) with SMTP id XAA29799; Wed, 2 Dec 1998 23:04:24 -0500 Message-Id: <199812030404.XAA29799@laker.net> From: "Steve Friedrich" To: "Guy Helmer" , "Karl Pielorz" Cc: "freebsd-questions@FreeBSD.ORG" Date: Wed, 02 Dec 1998 23:02:04 -0500 Reply-To: "Steve Friedrich" X-Mailer: PMMail 98 Professional (2.01.1600) For Windows NT (4.0.1381;3) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: Userland feature request Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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