TTY: add support for the palette config option

For now, terminal colors are not reset back when exiting NetHack.
Depends on CHANGE_COLOR compile-time option.
This commit is contained in:
Pasi Kallinen
2025-12-30 19:24:57 +02:00
parent 6707d3bfba
commit 0dac2b5fa0
2 changed files with 37 additions and 3 deletions

View File

@@ -2337,7 +2337,7 @@ curses: if user's terminal was set to 'application keypad mode' (DEC VTxxx
"ESC SPC G"), nethack wasn't recognizing number pad keys
curses: change petattr attributes, dropping support for curses-only ones
curses: swap the grey and no-color color initialization
curses+Qt: allow changing default colors with the 'palette' config option
curses+tty+Qt: allow changing default colors with the 'palette' config option
(only if compiled with CHANGE_COLOR)
curses: if messages have been issued during start-up (for instance, warnings
about issues in run-time config file), prompt user to press <return>