author | Andy Spencer <andy753421@gmail.com> | |
Tue, 24 Nov 2009 15:51:44 +0000 (15:51 +0000) | ||
committer | Max Kellermann <max@duempel.org> | |
Tue, 24 Nov 2009 16:08:24 +0000 (17:08 +0100) | ||
commit | 9b174ec4b7f3ecfa0cf43919ea199df09af971da | |
tree | c50b35c04e2e4f4ed67fed43f299897203981e0e | tree | snapshot |
parent | 98c6201771be9b717d100440a198c200352f7ab9 | commit | diff |
colors: Allow using 256 colors
Return the corresponding value when integers are passed to str2color. This
allows high colors to be used with 256 color terminals. Bright colors can be
used by adding 256 to integer.
COLOR_BRIGHT_MASK changed to avoid conflicts with >127 colors.
Return the corresponding value when integers are passed to str2color. This
allows high colors to be used with 256 color terminals. Bright colors can be
used by adding 256 to integer.
COLOR_BRIGHT_MASK changed to avoid conflicts with >127 colors.
src/colors.c | diff | blob | history |