Thread (61 messages) flat view 61 messages, 14 authors, 2016-06-15

Re: [ANNOUNCE] tig-0.14

From: Jonas Fonseca <hidden>
Date: 2016-06-15 22:46:09

On Wed, Feb 11, 2009 at 18:47, Ted Pavlic [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help