Mercurial > hg
comparison tests/test-mq-guards.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 | 05fffd665170 |
children | 00256f689f9c |
comparison
equal
deleted
inserted
replaced
13986:9c374cf76b7d | 13987:e0f07847f8de |
---|---|
307 2 A c.patch | 307 2 A c.patch |
308 3 U d.patch | 308 3 U d.patch |
309 | 309 |
310 qseries again, but with color | 310 qseries again, but with color |
311 | 311 |
312 $ hg --config extensions.color= qseries -v --color=always | 312 $ hg --config extensions.color= --config color.mode=ansi qseries -v --color=always |
313 0 G \x1b[0;30;1mnew.patch\x1b[0m (esc) | 313 0 G \x1b[0;30;1mnew.patch\x1b[0m (esc) |
314 1 G \x1b[0;30;1mb.patch\x1b[0m (esc) | 314 1 G \x1b[0;30;1mb.patch\x1b[0m (esc) |
315 2 A \x1b[0;34;1;4mc.patch\x1b[0m (esc) | 315 2 A \x1b[0;34;1;4mc.patch\x1b[0m (esc) |
316 3 U \x1b[0;30;1md.patch\x1b[0m (esc) | 316 3 U \x1b[0;30;1md.patch\x1b[0m (esc) |
317 | 317 |
430 $ hg qseries -m | 430 $ hg qseries -m |
431 b.patch | 431 b.patch |
432 | 432 |
433 hg qseries -m with color | 433 hg qseries -m with color |
434 | 434 |
435 $ hg --config extensions.color= qseries -m --color=always | 435 $ hg --config extensions.color= --config color.mode=ansi qseries -m --color=always |
436 \x1b[0;31;1mb.patch\x1b[0m (esc) | 436 \x1b[0;31;1mb.patch\x1b[0m (esc) |