git/list[1] front-page[2] threads[3] people[4] search[5] about
 

LESS env var and a pager

From
DHDiggory Hardy <diggory.hardy@gmail.com>
Date
Jul 30, 2009, 07:10 UTC
Message-ID
<31718a220907300010t136885c6ldc2ea362f9c6e33@mail.gmail.com>

I was recently trying to work out why when git's output is piped through a pager, it doesn't use the alternate screen buffer: https://bugs.kde.org/show_bug.cgi?id=201899

Conclusion: removing the X option from the LESS environ var produced
the results I wanted (allow mouse-wheel scrolling, output is hidden
after closing the pager).
One relevent post I found:
http://article.gmane.org/gmane.comp.version-control.git/29565/match=less+frsx

So maybe it'd make sense to change this in pager.c to: setenv("LESS", "FRS", 0); (or even just FR:) setenv("LESS", "FR", 0);

Just a suggestion of what seems preferable to me.
Next: Diggory Hardy
Message 1 of 2 in “LESS env var and a pager”
  1. Diggory HardyJul 30, 2009
  2. Diggory HardyJul 31, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.