Am 25.04.2018 um 11:21 schrieb Phillip Wood:
On 24/04/18 17:59, Johannes Sixt wrote:

In modern setups, less, the pager, uses alternate screen to show
the content. When it is closed, it switches back to the original
screen, and all content is gone.

Are you setting LESS explicitly in the environment?

 From the git config man page:
When the LESS environment variable is unset, Git sets it to FRX (if LESS environment variable is set, Git does not change it at all).

 From the less man page the X option:
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.

So with the default setup the output should remain on the screen.

Right. But I have LESS=RS because I do *not* want it to remain on screen by default.

-- Hannes

Reply via email to