Mercurial > hg
comparison tests/test-diff-color.t @ 13987:e0f07847f8de
color: add support for terminfo-based attributes and color
Using terminfo instead of hard-coding ECMA-48 control sequences provides a
greater assurance that the terminal codes are correct for the current
terminal type; not everything supports the ANSI escape codes.
It also allows us to use a wider range of colors when a terminal emulator
supports it (such as 16- or 256-color xterm), and a few more non-color
attributes, such as the ever-popular blink.
author | Danek Duvall <duvall@comfychair.org> |
---|---|
date | Thu, 21 Apr 2011 13:47:45 -0700 |
parents | 1ce0e80799c0 |
children | 1e9451476bf8 |
comparison
equal
deleted
inserted
replaced
13986:9c374cf76b7d | 13987:e0f07847f8de |
---|---|
1 Setup | 1 Setup |
2 | 2 |
3 $ echo "[color]" >> $HGRCPATH | |
4 $ echo "mode = ansi" >> $HGRCPATH | |
3 $ echo "[extensions]" >> $HGRCPATH | 5 $ echo "[extensions]" >> $HGRCPATH |
4 $ echo "color=" >> $HGRCPATH | 6 $ echo "color=" >> $HGRCPATH |
5 $ hg init repo | 7 $ hg init repo |
6 $ cd repo | 8 $ cd repo |
7 $ cat > a <<EOF | 9 $ cat > a <<EOF |