Altscreens for less and more

Cág caoc at riseup.net
Mon Sep 5 07:06:01 UTC 2016


Denys Vlasenko wrote:

> What is altscreen?

In Coreutils and in BSDs when you use less(1)/more(1) to view a file
an alternate screen opens that closes after exiting. Like in vim/nvi,
you open a file in a terminal, kind of a new window opens and when you
exit you don't see what you've done.

Coreutils less(1) can behave like BusyBox' one with -X option. From
the man page:

-X or --no-init
Disables sending the termcap initialization and deinitialization
strings  to  the  terminal.   This is sometimes desirable if the
deinitialization string does something unnecessary, like  clearing
the screen.


More information about the busybox mailing list