clearing the tty before login

Craig M. Reece craigthulu at
Thu Jan 18 12:01:46 PST 2001

Put a clear code (usually ^L) in the issue file. Look in /etc/login.defs to 
see which exact file this is. I used linux_logo to generate my issue file in 
the past and one of the options was to include the screen clearing code.

On Thursday, January 18, 2001 12:48 pm, Daniel Roethlisberger spoke thusly:
> hey,
> I've been clearing up all those small annoyances on my LFS
> system... I'd like to have agetty clear the screen before it
> displays the login on the 2nd ... 6th console, but not on the
> first.
> I've had a look at how other distros do it, no luck there, as
> all I've got access to use mingetty for logins, which clears the
> tty by default, and takes a --noclear argument.
> So... any idea how to achieve this with agetty?
> I know I could add a "clear" to the bash logout script, but I
> don't quite like that solution, as it only solves the problem if
> the user logged off was using bash as his/her standard shell, and
> I feel that agetty or login should handle this somehow... ;)
> Cheers,
> Dan

Unsubscribe: send email to lfs-apps-request at
and put unsubscribe in the subject header of the message

More information about the blfs-support mailing list