git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Petr Baudis <pasky@ucw.cz>
To: Junio C Hamano <junkio@cox.net>
Cc: Michal Rokos <michal@rokos.info>, git@vger.kernel.org
Subject: Re: [cogito] paged output for cg-diff
Date: Sun, 29 May 2005 16:01:27 +0200	[thread overview]
Message-ID: <20050529140127.GI1036@pasky.ji.cz> (raw)
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...
> 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

  reply	other threads:[~2005-05-29 13:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-20 13:17 [cogito] paged output for cg-diff Michal Rokos
2005-05-20 13:50 ` Junio C Hamano
2005-05-29 14:01   ` Petr Baudis [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-20  9:05 Michal Rokos
2005-05-20 12:53 ` Junio C Hamano
2005-05-20 14:55   ` Thomas Glanzmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050529140127.GI1036@pasky.ji.cz \
    --to=pasky@ucw.cz \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    --cc=michal@rokos.info \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).