1. hokorobi
  2. TPager
Issue #1 resolved

When using color extension, win32 escape sequence can be seen.

hokorobi
repo owner created an issue

No description provided.

Comments (5)

  1. hokorobi reporter

    Thank you for getting interested!

    For example, record extension cannot but use a command prompt. For this reason, I want to use win32 escape sequence on command prompt, and ansi on a pager (less).

    using less http://www.greenwoodsoftware.com/less/

    Example:

    .hgrc

    [extensions]
    tpager=C:\Mercurial_ext\tpager\tpager.py
    color=
    
    [color]
    mode=win32
    
    [pager]
    pager = less -FRSX
    hg16mode = yes
    
    
    > hg log -p
    1;6mchangeset:   1:12413413b71f1m
    tag:         tip
    user:        hokorobi <hokorobi.hokorobi@gmail.com>
    date:        Mon Apr 16 18:20:32 2012 +0900
    summary:     second.
    
    1;8mdiff -r 2d320f8d10e7 -r 12413413b71f homu1m
    1;4;8m--- a/homu        Mon Apr 16 18:20:19 2012 +09001m
    1;2;8m+++ b/homu        Mon Apr 16 18:20:32 2012 +09001m
    1;5m@@ -1,1 +1,2 @@1m
     aaa
    1;2m+bbb1m1;8;64m1m
    
    1;6mchangeset:   0:2d320f8d10e71m
    user:        hokorobi <hokorobi.hokorobi@gmail.com>
    date:        Mon Apr 16 18:20:19 2012 +0900
    summary:     first.
    
    1;8mdiff -r 000000000000 -r 2d320f8d10e7 homu1m
    1;4;8m--- /dev/null     Thu Jan 01 00:00:00 1970 +00001m
    1;2;8m+++ b/homu        Mon Apr 16 18:20:19 2012 +09001m
    1;5m@@ -0,0 +1,1 @@1m
    1;2m+aaa1m1;8;64m1m
    

    It expects to be colored by lower display.

    changeset:   1:12413413b71f
    tag:         tip
    user:        hokorobi <hokorobi.hokorobi@gmail.com>
    date:        Mon Apr 16 18:20:32 2012 +0900
    summary:     second.
    
    diff -r 2d320f8d10e7 -r 12413413b71f homu
    --- a/homu      Mon Apr 16 18:20:19 2012 +0900
    +++ b/homu      Mon Apr 16 18:20:32 2012 +0900
    @@ -1,1 +1,2 @@
     aaa
    +bbb
    
    changeset:   0:2d320f8d10e7
    user:        hokorobi <hokorobi.hokorobi@gmail.com>
    date:        Mon Apr 16 18:20:19 2012 +0900
    summary:     first.
    
    diff -r 000000000000 -r 2d320f8d10e7 homu
    --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
    +++ b/homu      Mon Apr 16 18:20:19 2012 +0900
    @@ -0,0 +1,1 @@
    +aaa
    
  2. Log in to comment