tests/test-pager-legacy.t
branchstable
changeset 32102 9a85ea1daf49
parent 32026 57042e91521a
child 32103 9a98023ac8db
equal deleted inserted replaced
32101:8e1708947496 32102:9a85ea1daf49
   159 Pager with color enabled allows colors to come through by default,
   159 Pager with color enabled allows colors to come through by default,
   160 even though stdout is no longer a tty.
   160 even though stdout is no longer a tty.
   161   $ cat >> $HGRCPATH <<EOF
   161   $ cat >> $HGRCPATH <<EOF
   162   > [ui]
   162   > [ui]
   163   > color = yes
   163   > color = yes
       
   164   > formatted = yes
   164   > [color]
   165   > [color]
   165   > mode = ansi
   166   > mode = ansi
   166   > EOF
   167   > EOF
   167   $ hg log --limit 3
   168   $ hg log --limit 3
   168   paged! '\x1b[0;33mchangeset:   10:46106edeeb38\x1b[0m\n'
   169   paged! '\x1b[0;33mchangeset:   10:46106edeeb38\x1b[0m\n'