From owner-freebsd-questions@FreeBSD.ORG Sun May 3 22:18:30 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7766C106566C for ; Sun, 3 May 2009 22:18:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 372D98FC0C for ; Sun, 3 May 2009 22:18:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-7-253.dynamic.qsc.de [92.196.7.253]) by mx02.qsc.de (Postfix) with ESMTP id CA1EE16C0101; Mon, 4 May 2009 00:18:28 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n43MIMN9003083; Mon, 4 May 2009 00:18:23 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 4 May 2009 00:18:22 +0200 From: Polytropon To: jw Message-Id: <20090504001822.b30ffb2f.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: clear old output in login screen? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2009 22:18:30 -0000 On Sun, 3 May 2009 11:46:30 -0700, jw wrote: > How do I get it to clear the screen (and the scroll buffer) when the > login prompt gets redisplayed? Two options: a) Clear everything right after login. Put the command "clear" in your ~/.login, or /etc/csh.login for all users. b) Clear everything right after logout, so the new login will get a blank screen. Put the command "clear" in your ~/.logout, or /etc/csh.logout for all users. This assumes that you have the standard dialog shell csh. If you're using bash, you need to modify its respective files, ~/.profile or ~/.bashrc - I don't know, I'm using csh. :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...