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.
Showing
- hgext/color.py 128 additions, 11 deletionshgext/color.py
- tests/test-branches.t 2 additions, 0 deletionstests/test-branches.t
- tests/test-diff-color.t 2 additions, 0 deletionstests/test-diff-color.t
- tests/test-eolfilename.t 2 additions, 0 deletionstests/test-eolfilename.t
- tests/test-mq-guards.t 2 additions, 2 deletionstests/test-mq-guards.t
- tests/test-mq.t 1 addition, 1 deletiontests/test-mq.t
- tests/test-status-color.t 13 additions, 0 deletionstests/test-status-color.t
Loading
Please register or sign in to comment