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

Re: [cogito] paged output for cg-diff

From
Petr Baudis <pasky@ucw.cz>
Date
May 29, 2005, 14:01 UTC
Message-ID
<20050529140127.GI1036@pasky.ji.cz>
In-Reply-To
<7vu0kyuhtq.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Fri, May 20, 2005 at 03:50:57PM CEST, I got a letter where Junio C Hamano <junkio@cox.net> told me that...

Show 11 quoted lines
> On the other hand, if your user is a "less" user, and if the
> user wants it to honor ANSI "color" escape sequences, it would
> be more helpful to the user if you educate/encourage the user to
> have "LESS=R" in the environment and make that in effect
> everywhere less is used not just in Cogito.  Giving that support
> silently just in Cogito at the first thought may seem to be more
> helpful but in reality it is not.
> 
> So I would suggest to use the above form without defining your
> own PAGER shell function, and add a tip for "less" users to have
> "LESS=R" in their environment somewhere in the documentation.

Using the $LESS variable didn't occur to me and I like the idea. :-) I think the most reasonable thing for Cogito will be to set LESS=R$LESS if the user passed -c to the given command.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Junio C Hamano
Message 3 of 3 in “Re: [cogito] paged output for cg-diff”
  1. Michal RokosMay 20, 2005
  2. Junio C HamanoMay 20, 2005
  3. Petr BaudisMay 29, 2005

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.