On Mon, Mar 3, 2008 at 4:44 AM, Peter Harris <[EMAIL PROTECTED]> wrote: > > > Note that this does not interfere with rxvt's control code handling, since > rxvt fails the isatty() test, so this will pass the control codes through > unmodified. > > Signed-off-by: Peter Harris <[EMAIL PROTECTED]> > --- > > I got tired of seeing control codes appear on my console. Rather than > turn off colours, I decided to fix them instead. > > Note that this patch does not catch \033[K at the end of lines when > fetching from a remote. This patch only wraps ANSI C printf/fputs, not > POSIX open/write (yet). > > I'm not sure if Cygwin wants to define WIN_ANSI=YesPlease too. > > Comments welcome. > > Makefile | 6 + > compat/winansi.c | 309 > +++++++++++++++++++++++++++++++++++++++++++++++++++++ > git-compat-util.h | 7 ++ > 3 files changed, 322 insertions(+), 0 deletions(-) > create mode 100644 compat/winansi.c
I wonder if this can be a separate git command and make it default pager for Windows environment? I'm thinking about its use outside C-based commands, perharps shell scripts or perl scripts.. -- Duy
