tty: use bright colors directly on supporting terminals

Terminals supporting more than 8 colors can directly display the bright
colors (upper 8 colors of the 16 color palette).

The tty port now only uses bold for displaying bright colors as a fallback to
previous behavior for terminals with 8 colors.
This commit is contained in:
Patric Mueller
2021-08-03 01:03:30 +02:00
parent 62e09ae9f3
commit 456e62ef1f
2 changed files with 92 additions and 48 deletions

View File

@@ -1154,6 +1154,7 @@ Qt: [later] augment extended command selection dialog's Filter to add a
tiles: male and female variations in monsters.txt; tested only with tile2bmp
conversion utility so far; also supported by tilemap utility to
generate tile.c
tty: use bright colors directly on supporting terminals
Unix: can define NOSUSPEND in config.h or src/Makefile's CFLAGS to prevent
unixconf.h from enabling SUSPEND without need to modify unixconf.h
X11: implement 'selectsaved', restore via menu of saved games