Subject: Re: clear screen when logout
To: Richard Rauch <rauch@eecs.ukans.edu>
From: Grey Wolf <greywolf@siteROCK.com>
List: port-i386
Date: 10/17/2000 10:15:48
On Tue, 17 Oct 2000, Richard Rauch wrote:

# Ben suggests that Debian LINUX ``solves'' this problem with a
# .bash_logout.  This solves it no more than by putting it in a csh.logout
# (which is what I've done in the past).
# 
# The problem with both of these approaches is that it only works if your
# shell runs the indicated logout script.  /bin/sh doesn't run ANY logout
# script, that I know of.  Nor, I think, does /bin/ksh.  I dunno about
# others that we may have in pkgsrc.

That's easy to solve.  In /etc/profile, put the line

trap 'tput clear' 0

and your problem is solved.

# So, while it can work for a few users, it's not a real solution, IMHO.
# 
# 
# But, if a real solution finds its way into a NetBSD release, I'd be happy
# to see it.  (^&
# 
# 
#   "I probably don't know what I'm talking about." --rauch@eecs.ukans.edu
# 


				--*greywolf;

	/* Need OpenSource servers?  Try *BSD - Solid as a Rock. */