Re: [ANNOUNCE] tig-0.14

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 11, 2009 at 18:47, Ted Pavlic <ted@xxxxxxxxxxxxx> wrote:
> *) Is there any way for "tig" to emulate "less -R"?
>
> That is, if an output is already colorized, can tig just pass through the
> ANSI?

Tig is heavily tied to ncurses and as far as I know ncurses does not
support this. So it would require tig to parse the ANSI terminal codes
into some representation from which the equivalent calls to the
ncurses API is made.

> *) When doing "git diff|tig" when there directory is clean, tig should
> probably exit immediately, right?

Yes, good idea. The blame and main view currently does this too. Will
look into it.

> *) Also, is there a way to configure "tig" to colorize and *exit* if the
> piped text doesn't fill a page?

No. However, this I have actually considered to support at some point,
since it would make it possible to test the rendering. Again, this is
not something ncurses supports as far as I know, so would require some
kind ofl "ANSI" code emitter.

> (in other words, I'd like "tig" to be able to replace my current "less -FRX"
> pager)

It will probably take a some time to get there, but I am open to
moving in this direction.

-- 
Jonas Fonseca
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux