Talk:Clear screen on logout

From Gentoo Linux Wiki

Jump to: navigation, search

well, if you do clear on logout some of the last lines still will be available "SHIFT+PageUP" I use

File: /etc/inittab
...
# getty-programs for the normal runlevels
# <id>:<runlevels>:<action>:<process>
# The "id" field  MUST be the same as the last
# characters of the device (after "tty").
#1:2345:respawn:/sbin/mingetty --noclear tty1
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
...

PS: you may add it in to the article

  • note: that i use mingetty
  • note: "SHIFT+PageUP" will not work if you changed console to another one and then back to original one, i.e. you are at "Alt+F1" then "Alt+F2" and back to "Alt+F1".

JPH: What you can do aswell, is simply add some (I used 256) empty lines at the top of the /etc/issues file. The screen is then flushed with empty lines. Remember to check whether or not you used enough lines to flush the buffer.

If you throw in an extra ^O (\017) any hieroglyphic output is reset (which sometimes happens when you cat a binary file, or /dev/urandom) If you're unsure what I mean by this, type on a virtual console te following command: echo -e \016 # hieroglyph writing enabled ;) Notice the prompt renders unreadable aswell as any other output echo -e \017 # unset hieroglyph writing

Personal tools