From owner-freebsd-questions Wed May 24 23:43:33 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id E6B1137BDE1 for ; Wed, 24 May 2000 23:43:28 -0700 (PDT) (envelope-from DougB@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id XAA65057; Wed, 24 May 2000 23:43:17 -0700 (PDT) (envelope-from DougB@gorean.org) Message-ID: <392CCB85.ACDAF4C3@gorean.org> Date: Wed, 24 May 2000 23:43:17 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 5.0-CURRENT-0523 i386) X-Accept-Language: en MIME-Version: 1.0 To: Glenn Johnson Cc: Chris Smith , freebsd-questions@FreeBSD.ORG Subject: Re: HELP! - Clearing screen on logout References: <959158168.392b97980978e@www.tdyc.com> <20000524215510.A981@gforce.johnson.home> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Glenn Johnson wrote: > > On Wed, May 24, 2000 at 01:49:28AM -0700, Chris Smith wrote: > > > Hi, > > > > Can anyone tell me _explicitly_ how to clear the screen when a user > > logs out (or when a getty starts)? I know it's in the gettytab man > > page, but I cant get it to work. I've probably incorrectly played > > with the cl option?!? > > Put a "\f" after the "im=" for the default entry in /etc/gettytab. So it > would look like this: > > default:\ > :cb:ce:ck:lc:fd#1000:im=\f\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200: > > The \f does a form feed. FWIW, that's fine if all you want to do is clear what's visible on the screen. This technique does not clear the scrollback buffer. There was a thread about how to do that a while back... unfortunately I don't remember what the most efficient way to do it was. I think that adding a lot of \f's would probably do it, but I seem to recall someone coming up with a more elegant solution.... HTH, Doug -- "Live free or die" - State motto of my ancestral homeland, New Hampshire Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message