]> granicus.if.org Git - nethack/commit
adjustment of win32 console colours (trunk only)
authornethack.allison <nethack.allison>
Sun, 3 Sep 2006 04:17:09 +0000 (04:17 +0000)
committernethack.allison <nethack.allison>
Sun, 3 Sep 2006 04:17:09 +0000 (04:17 +0000)
commit817cae451880a90f6186dc7eaf1dc0ac20660992
tree274421b4591f5e7cb2f4bf7f90810fcede316e12
parent7ba02dda004e9d2b80d3d8f1163251fd9175c1d5
adjustment of win32 console colours (trunk only)

Allow config file entries to adjust win32 console colours.

The following entries in a config file are examples:
OPTIONS=palette:black-0-0-0
OPTIONS=palette:red-210-0-0
OPTIONS=palette:green-80-200-0
OPTIONS=palette:brown-180-100-0
OPTIONS=palette:blue-0-0-200
OPTIONS=palette:magenta-128-0-128
OPTIONS=palette:cyan-50-180-180
OPTIONS=palette:gray-192-192-192
OPTIONS=palette:dark gray-100-100-100
OPTIONS=palette:orange-255-128-0
OPTIONS=palette:bright green-0-255-0
OPTIONS=palette:yellow-255-255-0
OPTIONS=palette:bright blue-100-100-240
OPTIONS=palette:bright magenta-255-0-255
OPTIONS=palette:bright cyan-0-255-255
OPTIONS=palette:white-255-255-255

This uses an undocumented way to adjust the console
colours in a win32 console application. The method and
code snippet used comes from www.catch22.net by James Brown.

This page:
      http://www.catch22.net/about.asp
states the following:
"you do not have to pay anything to use the software, and there are no
 licencing terms for any sourcecode that you may download from this site.
This means you can freely use any sourcecode or portions of code in
your applications, whether they be free software or professional, retail
products."
include/ntconf.h
src/options.c
sys/winnt/defaults.nh
sys/winnt/nttty.c