hi,
== https://bugzilla.redhat.com/815790 == clear_console: New helper program to clear the *console*, including the _scrollback buffer_.
DESCRIPTION
clear_console clears your console if this is possible. It looks in the environment for the terminal type and then in the terminfo database to figure out how to clear the screen. To clear the buffer, it then changes the foreground virtual terminal to another terminal and then back to the original terminal.
== https://bugzilla.redhat.com/815810 == add "shopt -s histappend" to /etc/bashrc to avoid it.
histappend: If set, the history list is appended to the file named by the value of the HISTFILE variable when the shell exits, rather than overwriting the file.
== https://bugzilla.redhat.com/819129 == add MANPAGER=most to /etc/profile
and "most" should be in the base install
or the "less" trick: https://wiki.archlinux.org/index.php/Man_Page#Colored_man_pages
On 2012-06-13, Xose Vazquez Perez xose.vazquez@gmail.com wrote:
== https://bugzilla.redhat.com/815790 == clear_console: New helper program to clear the *console*, including the _scrollback buffer_.
DESCRIPTION
clear_console clears your console if this is possible. It looks in the environment for the terminal type and then in the terminfo database to figure out how to clear the screen. To clear the buffer, it then changes the foreground virtual terminal to another terminal and then back to the original terminal.
I added new escape sequence into Linux to clear the scroll-back buffer directly. I think enhancing `clear' utility is the right option.
-- Petr
On Wed, 13.06.12 15:00, Petr Pisar (ppisar@redhat.com) wrote:
On 2012-06-13, Xose Vazquez Perez xose.vazquez@gmail.com wrote:
== https://bugzilla.redhat.com/815790 == clear_console: New helper program to clear the *console*, including the _scrollback buffer_.
DESCRIPTION
clear_console clears your console if this is possible. It looks in the environment for the terminal type and then in the terminfo database to figure out how to clear the screen. To clear the buffer, it then changes the foreground virtual terminal to another terminal and then back to the original terminal.
I added new escape sequence into Linux to clear the scroll-back buffer directly. I think enhancing `clear' utility is the right option.
BTW, as a side note, systemd makes use of the new escape sequence before and after running gettys. That means on systemd systems output of the previous users is not leaked to you and your data not leaked to the next one using the tty.
Lennart