Re: How to clear screen before login prompt
On Mon, 29 Jun 98 16:25:37 +0200, Jieyao wrote: I was trying to do a clear screen after I logout from the console before the login prompt appears. the clear command in your .logout might do the trick. -- Steve C. Lamb | Opinions expressed by me are not my http://www.calweb.com/~morpheus| employer's. They hired me for my ICQ: 5107343 | skills and labor, not my opinions! ---+- -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
RE: How to clear screen before login prompt
Hello: If you are using the bash shell you can use the ~/.bash_logout file to execute some commands. In that file you could put a tput clear to clear your screen. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 29, 1998 10:42 AM To: debian-user@lists.debian.org Subject: Re: How to clear screen before login prompt Jieyao wrote: I was trying to do a clear screen after I logout from the console before the login prompt appears. Any idea how this can be done? I tried some escape sequence but doesn't work. TIA. __o __o __o __o __\_))__\_))__\_))__\_))___. --\---\ R O W I N G Jieyao [EMAIL PROTECTED] ICQ 836655 Don't waste your computer's time. Join the Singapore RC5 Effort now! http://raffles0005.pc.nus.sg/~rekcah/rc5/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Try adding clear to your .zlogout (or appropriate logout file for your shell) Dan.. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clear screen before login prompt
- I've wondered a lot why Debian doesn't use minigetty, but haven't bothered - to install it myself. - - I (and others) have asked for this a few times. In general too many - people complained about changing the status quo. It is rather easy to - change your getty (although you can NOT remove agetty package). Simply - edit your init tab to have mingetty rather than agetty. just mark getty to be removed and run dpkg --remove --force-remove-essential as i did on all my debian machines :) and I also vote for mingetty being std. package instead of agetty -- Matus fantomas Uhlar, sysadmin at NETLAB+ Kosice, Slovakia BIC coord for *.sk; admin of netlab.irc.sk; co-admin of irc.felk.cvut.cz -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clear screen before login prompt
On Mon, Jun 29, 1998 at 11:25:37PM +0800, Jieyao wrote: I was trying to do a clear screen after I logout from the console before the login prompt appears. Any idea how this can be done? I tried some escape sequence but doesn't work. TIA. Many folks suggested adding the clear command to you ~/.bash_profile. Such a meathod is probably a bit more elegant, but my cheap hackish way of accomplishing what you want is aliasing clear exit to the word bye -- or whatever you want. Seems Linux always has several ways of accomplishing one task. Have fun! -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clear screen before login prompt
the lone gunman wrote: On Mon, Jun 29, 1998 at 11:25:37PM +0800, Jieyao wrote: I was trying to do a clear screen after I logout from the console before the login prompt appears. Any idea how this can be done? I tried some escape sequence but doesn't work. TIA. Many folks suggested adding the clear command to you ~/.bash_profile. Such a meathod is probably a bit more elegant, but my cheap hackish ^ Hey, I resent^H^Hmble that remark! My bash function: xit () { clear logout } export xit way of accomplishing what you want is aliasing clear exit to the word bye -- or whatever you want. Seems Linux always has several ways of accomplishing one task. Have fun! -- Ed -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clear screen before login prompt
On Tue, Jun 30, 1998 at 09:57:41PM -0500, the lone gunman wrote: I was trying to do a clear screen after I logout from the console before the login prompt appears. Any idea how this can be done? I tried some escape sequence but doesn't work. TIA. Many folks suggested adding the clear command to you ~/.bash_profile. Such a meathod is probably a bit more elegant, but my cheap hackish way of accomplishing what you want is aliasing clear exit to the word bye -- or whatever you want. How about this: cp /etc/issue /etc/issue.sav cat `clear` /etc/issue.sav /etc/issue This will make the prompt always clear the screen as it does in both Redhat and Slackware. Note that the way the linuxlogo package works, this would break it. HOWEVER, if you REALLY want to use a text based logo in your login prompt, there ARE other wasy to do it. See man 5 issue for details. That or you can install linuxlogo and then just alter the file by hand or delete the clear and repeat the above process. Clear is for console ^[[H^[[J -- seems the ANSI ^[[2J doesn't work in Linux console. Note ^[ is a real escape. If you can type this in your editor with a meta command or something (I can) you needn't do the above. Seems Linux always has several ways of accomplishing one task. Yes indeed! This is the way that seems to do the best for me really. Here's my /etc/issue file with escapes converted to 's.. ---8 [H[J Debian GNU/\s (slink) \m kernel \r [34;1m\l[0m ---8 This results in a very clean... [TOP] Debian GNU/Linux (slink) i486 kernel 2.1.105 tty2 icarus2 login: _ - with ttyX standing out in a nice bright blue color.. pgpHkgWlXBiEJ.pgp Description: PGP signature
Re: How to clear screen before login prompt
Instead of all this futzing around, why not use a getty designed for what you are doing?? I use mingetty. Not only is it smaller than agetty, and a hair faster -- it also clears term. I have it display linux_logo above my login prompt. When I log out Linux_logo reappears and all is fresh again. -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clear screen before login prompt
Joseph Carter said On Tue, Jun 30, 1998 at 09:57:41PM -0500, the lone gunman wrote: I was trying to do a clear screen after I logout from the console before the login prompt appears. Any idea how this can be done? I tried some escape sequence but doesn't work. TIA. Here's my /etc/issue file with escapes converted to 's.. ---8 [H[J Debian GNU/\s (slink) \m kernel \r [34;1m\l[0m ---8 This results in a very clean... [TOP] Debian GNU/Linux (slink) i486 kernel 2.1.105 tty2 icarus2 login: _ - with ttyX standing out in a nice bright blue color.. There's a lot you can do with the console and escape sequences. I've played around with it a bit and have come-up with a full-screen version that uses all of the variables supported by issue (\b, \d, \t, etc) as well as line-draw characters and color. I've included it here in case any one cares to see it. Note1: I 've substituted % for real escapes. Note2: I've had to change the default console font to Cyr_a8x16 for the line draw characters to work. Note3: The Copyright notice isn't even seen since the display is cleared almost imediately after. Note4: I'd guess this would be enough to severly dork some terminal types so I only use this on the console. (Most of the systems I setup only have a getty on tty1...) Note5: Pressing ENTER without a user name updates the time and user count fields. Note6: The /d variable returns a variable-length result, therefore one line is a character short 9 days per month. (1st through the 9th) Looks great after that! ---8 Copyright 1998 Charles A. Stickelman [EMAIL PROTECTED] This file is covered by version 2 (or any later version) of the GPL. %[31;40;1m%[8]%[H%[J ?%[37;1m %[32m%[5mWELCOME%[0m%[1m%[37m to %[36mDebian GNU/\s Release%[37m: %[33m2.0%[37m. %[0m? ?%[37;1m Brought to you by: %[0m? ?%[36;1m Software In The Public Interest %[0m?%[36;1m Free Software Foundation %[0m? ?%[37;1m P.O. Box 70152 %[0m?%[37;1m 59 Temple Place - Suite 330 %[0m? ?%[37;1m Pt. Richmond, CA 94807-0152 USA %[0m?%[37;1m Boston, MA 02111-1307 USA%[0m? ?%[37;1m %[0m?%[37;1m +1-617-542-5942 %[0m? ?%[36;1m Open Software Developers Worldwide %[0m?%[36;1m Practical Network Design %[0m? ?%[37;1m The world owes a giant Thank You! %[0m?%[37;1m 9 Chambers Road %[0m? ?%[37;1m to Linus Torvalds et. al. for their %[0m?%[37;1m Mansfield, OH 44906-1301 USA %[0m? ?%[37;1m HUGE investment of time and energy! %[0m?%[37;1m +1-419-529-3841 %[0m? ?%[37;1m System Information: %[0m? ?%[36;1m \s Kernel Version%[37m:%[33m \r%[37m-%[33m\m %[0m? ?%[36;1m Build Info%[37m:%[33m \v %[0m? ?%[36;1m System Name%[37m:%[33m \n %[0m?%[36;1m Terminal%[37;1m:%[33m \l %[0m? ?%[36;1m Domain Name%[37m:%[33m \o %[0m?%[36;1m Line Speed%[37m:%[33m \b%[0m? ?%[36;1m Date/Time%[37m:%[33m \d \t%[0m?%[1m%[37m%[36;1m Current Users%[37m:%[33m \u %[0m? %[37;1m%[8] ---8 stick -- Chuck Stickelman, Owner E-Mail: [EMAIL PROTECTED] Practical Network DesignVoice: +1-419-529-3841 9 Chambers Road FAX:+1-419-529-3625 Mansfield, OH 44906-1301 USA -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clear screen before login prompt
On Tue, 30 Jun 1998, the lone gunman wrote: On Mon, Jun 29, 1998 at 11:25:37PM +0800, Jieyao wrote: I was trying to do a clear screen after I logout from the console before the login prompt appears. Any idea how this can be done? I tried some escape sequence but doesn't work. TIA. Many folks suggested adding the clear command to you ~/.bash_profile. Such a meathod is probably a bit more elegant, but my cheap hackish way of accomplishing what you want is aliasing clear exit to the word bye -- or whatever you want. Seems Linux always has several ways of accomplishing one task. Have fun! I put clear command in ~/.bash_logout. Have a nice day! (/)--(/) | Vadim S Ivanov [EMAIL PROTECTED], [EMAIL PROTECTED] | Peptide Chemistry Lab, Shemyakin-Ovchinnikov Institute | of Bioorganic Chemistry, Moscow, Russia | Ph: +7 (095) 335-5844Fax: +7 (095) 335-5844 | http://pepline.siobc.ras.ru/ (/)--(/) -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clear screen before login prompt
On Wed, Jul 01, 1998 at 03:36:57AM -0400, Shaleh wrote: Instead of all this futzing around, why not use a getty designed for what you are doing?? I use mingetty. Not only is it smaller than agetty, and a hair faster -- it also clears term. I have it display linux_logo above my login prompt. When I log out Linux_logo reappears and all is fresh again. I've wondered a lot why Debian doesn't use minigetty, but haven't bothered to install it myself. pgpHZz4WhsZRQ.pgp Description: PGP signature
Re: How to clear screen before login prompt
Joseph Carter wrote: I've wondered a lot why Debian doesn't use minigetty, but haven't bothered to install it myself. I (and others) have asked for this a few times. In general too many people complained about changing the status quo. It is rather easy to change your getty (although you can NOT remove agetty package). Simply edit your init tab to have mingetty rather than agetty. -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clear screen before login prompt
Brandon Mitchell wrote: On Mon, 29 Jun 1998, Jieyao wrote: I was trying to do a clear screen after I logout from the console before t he login prompt appears. A better twist on all the clear suggestions that are shell specific: $ clear new.issue $ edit new.issue # whatever editor you want $ mv new.issue /etc/issue This solution works by capturing the clearscreen escape sequence to new.issue. Therefore it will not work for anyone using a different terminal type; it could even hang their terminals (Wyse 50 terminals could easily get hung by being sent unrecognised sequences). Using the clear command ensures that the sequence sent is correct for the current terminal type. -- Oliver Elphick[EMAIL PROTECTED] Isle of Wight http://www.lfix.co.uk/oliver PGP key from public servers; key ID 32B8FAA1 Because he himself suffered when he was tempted, he is able to help those who are being tempted. Hebrews 2:18 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to clear screen before login prompt
Brandon Mitchell wrote: On Mon, 29 Jun 1998, Jieyao wrote: I was trying to do a clear screen after I logout from the console before t he login prompt appears. if you are using bash as your shell then just create a .bash_logout file in the users home hirectory and put the clear command in that file. bash then runs this file everytime you logout. Works for me anyway. Regards Graham A better twist on all the clear suggestions that are shell specific: $ clear new.issue $ edit new.issue # whatever editor you want $ mv new.issue /etc/issue This solution works by capturing the clearscreen escape sequence to new.issue. Therefore it will not work for anyone using a different terminal type; it could even hang their terminals (Wyse 50 terminals could easily get hung by being sent unrecognised sequences). Using the clear command ensures that the sequence sent is correct for the current terminal type. -- Oliver Elphick[EMAIL PROTECTED] Isle of Wight http://www.lfix.co.uk/oliver PGP key from public servers; key ID 32B8FAA1 Because he himself suffered when he was tempted, he is able to help those who are being tempted. Hebrews 2:18 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to clear screen before login prompt
On Mon, 29 Jun 1998, Jieyao wrote: I was trying to do a clear screen after I logout from the console before the login prompt appears. Any idea how this can be done? I tried some escape sequence but doesn't work. using `clear` in .bash_logout is fine, but if you are like me, and like to rid yourself of an extra file, add `trap clear EXIT` to your .bash_profile, or even /etc/profile. Michael Beattie ([EMAIL PROTECTED]) PGP Key available, reply with pgpkey as subject. - WinErr: 003 Dynamic linking error - Your mistake is now in every file - Debian GNU/Linux Ooohh You are missing out! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to clear screen before login prompt
Jieyao wrote: I was trying to do a clear screen after I logout from the console before the login prompt appears. Any idea how this can be done? I tried some escape sequence but doesn't work. TIA. __o __o __o __o __\_))__\_))__\_))__\_))___. --\---\ R O W I N G Jieyao [EMAIL PROTECTED] ICQ 836655 Don't waste your computer's time. Join the Singapore RC5 Effort now! http://raffles0005.pc.nus.sg/~rekcah/rc5/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Try adding clear to your .zlogout (or appropriate logout file for your shell) Dan.. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to clear screen before login prompt
Jieyo, Add the 'clear' command to your .bash_logout file. Steve Mayer [EMAIL PROTECTED] Jieyao wrote: I was trying to do a clear screen after I logout from the console before the login prompt appears. Any idea how this can be done? I tried some escape sequence but doesn't work. TIA. __o __o __o __o __\_))__\_))__\_))__\_))___. --\---\ R O W I N G Jieyao [EMAIL PROTECTED] ICQ 836655 Don't waste your computer's time. Join the Singapore RC5 Effort now! http://raffles0005.pc.nus.sg/~rekcah/rc5/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to clear screen before login prompt
Unless you are tied to agetty for a reason, mingetty does this automatically. Works similar to Sun's console getty. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to clear screen before login prompt
Jieyo, Add the 'clear' command to your .bash_logout file. I would like to see this in the debian dist by default. ...added to /etc/skel. I think it is very handy. --Jay Barbee -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to clear screen before login prompt
On Mon, 29 Jun 1998, Jieyao wrote: I was trying to do a clear screen after I logout from the console before the login prompt appears. A better twist on all the clear suggestions that are shell specific: $ clear new.issue $ edit new.issue # whatever editor you want $ mv new.issue /etc/issue Note that I put a lot of returns before the clear so that I can shift-pg up to see what happened before I got logged out. I simple change of vt's prevents someone else from doing this. This also prevents a cleared screen after a closed telnet, something I don't like. HTH, Brandon --+-- Brandon Mitchell [EMAIL PROTECTED] | Debian Testing Group Status PGP Key: finger -l [EMAIL PROTECTED] | http://bhmit1.home.ml.org/deb/ Dijkstra probably hates me (Linus Torvalds, in kernel/sched.c) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]