From: Sverre Rabbelier <srabbelier@gmail.com>
To: E R <pc88mxer@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: odd behavior with export LESS=i
Date: Tue, 14 Jul 2009 10:32:04 -0700 [thread overview]
Message-ID: <fabb9a1e0907141032o6b1aac51yb42a640249f04050@mail.gmail.com> (raw)
In-Reply-To: <3a69fa7c0907141018l4f6fb773o219b6a18effc393d@mail.gmail.com>
Heya,
On Tue, Jul 14, 2009 at 10:18, E R<pc88mxer@gmail.com> wrote:
> export LESS
> LESS=i git log
>
> then I see things like ESC[33m instead of colored text.
That's because (as you could read in less'
way-too-long-for-a-damn-pager man page), you did not specify the magic
"-R" make-everything-work-like-it-should option, which turns on the
display of escape sequences (which are used to color your terminal).
> If I run:
>
> unset LESS
> git log
>
> then I get colored text.
That's because if not set, git default to setting LESS to -FXRS (which
includes the -R option). Solution is to either not set LESS, or to
include -R if that's indeed what you want.
--
Cheers,
Sverre Rabbelier
prev parent reply other threads:[~2009-07-14 17:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 17:18 odd behavior with export LESS=i E R
2009-07-14 17:28 ` E R
2009-07-14 17:32 ` Sverre Rabbelier [this message]
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=fabb9a1e0907141032o6b1aac51yb42a640249f04050@mail.gmail.com \
--to=srabbelier@gmail.com \
--cc=git@vger.kernel.org \
--cc=pc88mxer@gmail.com \
/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).