зеркало из https://github.com/github/putty.git
a4cbd3dfdb
This is a heavily rewritten version of a patch originally by Lorenz Diener; it was tidied up somewhat by Christian Brabandt, and then tidied up more by me. The basic idea is to add to the termchar structure a pair of small structs encoding 24-bit RGB values, each with a flag indicating whether it's turned on; if it is, it overrides any other specification of fg or bg colour for that character cell. I've added a test line to colours.txt containing a few example colours from /usr/share/X11/rgb.txt. In fact it makes quite a good demo to run the whole of rgb.txt through this treatment, with a command such as perl -pe 's!^\s*(\d+)\s+(\d+)\s+(\d+).*$!\e[38;2;$1;$2;$3m$&\e[m!' rgb.txt |
||
---|---|---|
.. | ||
bignum.py | ||
bignumtests.txt | ||
colours.txt | ||
display.txt | ||
lattrs.txt | ||
scocols.txt | ||
utf8.txt | ||
vt100.txt |