Mercurial > hg
comparison tests/test-branches.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 | 301725c3df9a |
comparison
equal
deleted
inserted
replaced
13986:9c374cf76b7d | 13987:e0f07847f8de |
---|---|
348 | 348 |
349 default branch colors: | 349 default branch colors: |
350 | 350 |
351 $ echo "[extensions]" >> $HGRCPATH | 351 $ echo "[extensions]" >> $HGRCPATH |
352 $ echo "color =" >> $HGRCPATH | 352 $ echo "color =" >> $HGRCPATH |
353 $ echo "[color]" >> $HGRCPATH | |
354 $ echo "mode = ansi" >> $HGRCPATH | |
353 | 355 |
354 $ hg up -C c | 356 $ hg up -C c |
355 3 files updated, 0 files merged, 2 files removed, 0 files unresolved | 357 3 files updated, 0 files merged, 2 files removed, 0 files unresolved |
356 $ hg commit -d '9 0' --close-branch -m 'reclosing this branch' | 358 $ hg commit -d '9 0' --close-branch -m 'reclosing this branch' |
357 $ hg up -C b | 359 $ hg up -C b |