tests/test-pager.t
branchstable
changeset 32103 9a98023ac8db
parent 32102 9a85ea1daf49
child 32104 f06d23af6cdf
equal deleted inserted replaced
32102:9a85ea1daf49 32103:9a98023ac8db
   139 
   139 
   140 Pager with color enabled allows colors to come through by default,
   140 Pager with color enabled allows colors to come through by default,
   141 even though stdout is no longer a tty.
   141 even though stdout is no longer a tty.
   142   $ cat >> $HGRCPATH <<EOF
   142   $ cat >> $HGRCPATH <<EOF
   143   > [ui]
   143   > [ui]
   144   > color = yes
   144   > color = always
   145   > formatted = yes
       
   146   > [color]
   145   > [color]
   147   > mode = ansi
   146   > mode = ansi
   148   > EOF
   147   > EOF
   149   $ hg log --limit 3
   148   $ hg log --limit 3
   150   paged! '\x1b[0;33mchangeset:   10:46106edeeb38\x1b[0m\n'
   149   paged! '\x1b[0;33mchangeset:   10:46106edeeb38\x1b[0m\n'