* Adam Borowski <kilobyte@xxxxxxxxxx>, 2016-11-28, 00:15:
clear(1) doesn't wipe the scrollback at all, it is still reachable, all of
it.
It does for me on the console. The man page says:
# clear clears your screen if this is possible, including its scrollback
# buffer (if the extended "E3" capability is defined). clear looks in the
# environment for the terminal type and then in the terminfo database to
# determine how to clear the screen.
Because of its reliance on terminfo, you need to have TERM=linux in your
environment; also, screen/tmux obviously breaks this.
The "linux" terminfo entry didn't have E3 until very recently.
You will need ncurses >= 20160514.
--
Jakub Wilk
--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html