From owner-freebsd-questions Sat Feb 9 2:24:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from kabel203069.kabel.utwente.nl (kabel203069.kabel.utwente.nl [130.89.203.69]) by hub.freebsd.org (Postfix) with ESMTP id 786A337B417 for ; Sat, 9 Feb 2002 02:24:32 -0800 (PST) Received: by kabel203069.kabel.utwente.nl (Postfix, from userid 1000) id 04FAE1F80; Sat, 9 Feb 2002 11:24:25 +0100 (CET) Date: Sat, 9 Feb 2002 11:24:24 +0100 From: Rogier Steehouder To: Skull Crusher Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to clear the screen while logging off Message-ID: <20020209112424.A649@localhost> Mail-Followup-To: Rogier Steehouder , Skull Crusher , freebsd-questions@FreeBSD.ORG References: <012401c1b114$dd353ac0$040aa8c0@fucknutz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <012401c1b114$dd353ac0$040aa8c0@fucknutz>; from skull@slayer-domain.com on Fri, Feb 08, 2002 at 06:52:43PM -0800 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 On 08-02-2002 18:52 (-0800), 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.. > > Thanks, > > Joe.. I have seen some shell-dependent answers, so I will post my shell-independent one: Edit /etc/gettytab. Read up on the man-page and you will find that the 'im' option specifies the banner message. Starting it with '\f' (formfeed = clear screen) will do the trick. Of course history browsing with scroll lock will still work. Maybe someone can make some sort of "kill history" command. With kind regards, Rogier Steehouder -- ___ _ -O_\ // | / Rogier Steehouder //\ / \ r.j.s@gmx.net // \ <---------------------- 25m ----------------------> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message