Re: clear old output in login screen?

2009-05-05 Thread perryh
Mike Clarke jmc-freeb...@milibyte.co.uk wrote: On Monday 04 May 2009, per...@pluto.rain.com wrote: ... ? #!/bin/csh ? clear ? vidcontrol -C ? exec /usr/bin/login.real $@ But this wouldn't prevent someone scrolling back with the scroll lock key before logging in. I assume the OP's

Re: clear old output in login screen?

2009-05-05 Thread Mike Clarke
On Tuesday 05 May 2009, per...@pluto.rain.com wrote: Mike Clarke jmc-freeb...@milibyte.co.uk wrote: On Monday 04 May 2009, per...@pluto.rain.com wrote: ... ? #!/bin/csh ? clear ? vidcontrol -C ? exec /usr/bin/login.real $@ But this wouldn't prevent someone scrolling back

Re: clear old output in login screen?

2009-05-05 Thread Frank Shute
On Tue, May 05, 2009 at 09:45:16AM +0100, Mike Clarke wrote: On Tuesday 05 May 2009, per...@pluto.rain.com wrote: Mike Clarke jmc-freeb...@milibyte.co.uk wrote: On Monday 04 May 2009, per...@pluto.rain.com wrote: ... ? #!/bin/csh ? clear ? vidcontrol -C ? exec

Re: clear old output in login screen?

2009-05-04 Thread Mike Clarke
On Monday 04 May 2009, per...@pluto.rain.com wrote: If I needed to do this, could not find a way to do it via configuration settings, and didn't want to hack the login source code, I would try renaming the login binary to something like login.real, and replacing it with an executable script

clear old output in login screen?

2009-05-03 Thread jw
Currently, if I log in, do some work, then log out (from plain TTY, no X/SSH/etc), the output of my previous session is still readable above the new login: prompt. One can use scroll lock to view even more. How do I get it to clear the screen (and the scroll buffer) when the login prompt gets

Re: clear old output in login screen?

2009-05-03 Thread gabe g
Hey John, In order to achieve this, there are two methods that I know of, however, they are only tested in the Bourne and Bourne Again shells. clear logout # Bourne Again (Bash) Shell clear exit # Bourne (sh) Shell You may have to try similar commands

Re: clear old output in login screen?

2009-05-03 Thread Emiel van de Laar
On May 3, 2009, at 9:48 PM, gabe g wrote: Hey John, In order to achieve this, there are two methods that I know of, however, they are only tested in the Bourne and Bourne Again shells. clear logout # Bourne Again (Bash) Shell clear exit # Bourne (sh)

Re: clear old output in login screen?

2009-05-03 Thread Peter Boosten
On 3 mei 2009, at 21:48, gabe g wrote: Hey John, In order to achieve this, there are two methods that I know of, however, they are only tested in the Bourne and Bourne Again shells. clear logout # Bourne Again (Bash) Shell clear exit # Bourne (sh)

Re: clear old output in login screen?

2009-05-03 Thread Jonathan Chen
On Sun, May 03, 2009 at 11:46:30AM -0700, jw wrote: Currently, if I log in, do some work, then log out (from plain TTY, no X/SSH/etc), the output of my previous session is still readable above the new login: prompt. One can use scroll lock to view even more. How do I get it to clear the

Re: clear old output in login screen?

2009-05-03 Thread Paul B. Mahol
On 5/3/09, jw jwde...@gmail.com wrote: Currently, if I log in, do some work, then log out (from plain TTY, no X/SSH/etc), the output of my previous session is still readable above the new login: prompt. One can use scroll lock to view even more. How do I get it to clear the screen (and the

Re: clear old output in login screen?

2009-05-03 Thread jw
On Sun, May 3, 2009 at 12:48 PM, gabe g johndoeismyn...@gmail.com wrote: Hey John,   In order to achieve this, there are two methods that I know of, however, they are only tested in the Bourne and Bourne Again shells. clear logout # Bourne Again (Bash) Shell clear exit  

Re: clear old output in login screen?

2009-05-03 Thread jw
On Sun, May 3, 2009 at 1:51 PM, Paul B. Mahol one...@gmail.com wrote: echo $TERM | grep cons25 /dev/null clear vidcontrol -C Aha! I didn't know about 'vidcontrol -C' That combined with 'clear' does the trick. However... Is there any way I could have this execute when the login: prompt

Re: clear old output in login screen?

2009-05-03 Thread Polytropon
On Sun, 3 May 2009 11:46:30 -0700, jw jwde...@gmail.com 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)

Re: clear old output in login screen?

2009-05-03 Thread perryh
jw jwde...@gmail.com wrote: On Sun, May 3, 2009 at 1:51 PM, Paul B. Mahol one...@gmail.com wrote: echo $TERM | grep cons25 /dev/null clear vidcontrol -C Aha! I didn't know about 'vidcontrol -C' That combined with 'clear' does the trick. However... Is there any way I could have this

Re: clear old output in login screen?

2009-05-03 Thread Matt Emmerton
0 jw jwde...@gmail.com wrote: On Sun, May 3, 2009 at 1:51 PM, Paul B. Mahol one...@gmail.com wrote: echo $TERM | grep cons25 /dev/null clear vidcontrol -C Aha! I didn't know about 'vidcontrol -C' That combined with 'clear' does the trick. However... Is there any way I could have this