Re: [PATCH] git: add -N as a short option for --no-pager
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Apr 25, 2018, 19:31 UTC
- Message-ID
- <523dfe75-45a2-d780-2581-1bdc076dd659@kdbg.org>
- In-Reply-To
- <36d622ac-f07d-7fd9-65dd-94f88b0e2f56@talktalk.net>
Am 25.04.2018 um 11:21 schrieb Phillip Wood:
Show 19 quoted lines
> 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