comparison tests/test-mq.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 375ba42f3cda
children 301725c3df9a
comparison
equal deleted inserted replaced
13986:9c374cf76b7d 13987:e0f07847f8de
175 175
176 $ echo >> .hg/patches/flaf 176 $ echo >> .hg/patches/flaf
177 177
178 status --mq with color (issue2096) 178 status --mq with color (issue2096)
179 179
180 $ hg status --mq --config extensions.color= --color=always 180 $ hg status --mq --config extensions.color= --config color.mode=ansi --color=always
181 \x1b[0;32;1mA .hgignore\x1b[0m (esc) 181 \x1b[0;32;1mA .hgignore\x1b[0m (esc)
182 \x1b[0;32;1mA A\x1b[0m (esc) 182 \x1b[0;32;1mA A\x1b[0m (esc)
183 \x1b[0;32;1mA B\x1b[0m (esc) 183 \x1b[0;32;1mA B\x1b[0m (esc)
184 \x1b[0;32;1mA series\x1b[0m (esc) 184 \x1b[0;32;1mA series\x1b[0m (esc)
185 \x1b[0;35;1;4m? flaf\x1b[0m (esc) 185 \x1b[0;35;1;4m? flaf\x1b[0m (esc)