win32tty color fix

fix by <Someone>, updated by <Someone> on r.g.r.n.

changes the colours of the windows tty port so that blue and
bright blue, and cyan and bright cyan are distinguishable. The chief
benefit of this is that floating eyes no longer look like shocking
spheres.
This commit is contained in:
nethack.allison
2003-10-15 11:37:16 +00:00
parent 50450b7dd5
commit 9f6e99c9c1
2 changed files with 4 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ Platform- and/or Interface-Specific Fixes
win32tty: fix visible CRLF characters during lockfile error message
win32tty: switch to low level console routines
win32tty: refrain from cursor movement until an input is pending (M. Lehotay)
win32tty: distinguish blue, bright blue, cyan, and bright cyan (Nicholas Webb)
win32gui: you couldn't specify an alignment in defaults.nh and have it stick
win32gui: allow race/gender/alignment selections beyond those specified in
defaults.nh, while still honoring defaults.nh choices

View File

@@ -559,7 +559,7 @@ init_ttycolor()
ttycolors[CLR_RED] = FOREGROUND_RED;
ttycolors[CLR_GREEN] = FOREGROUND_GREEN;
ttycolors[CLR_BROWN] = FOREGROUND_GREEN|FOREGROUND_RED;
ttycolors[CLR_BLUE] = FOREGROUND_BLUE|FOREGROUND_INTENSITY;
ttycolors[CLR_BLUE] = FOREGROUND_BLUE;
ttycolors[CLR_MAGENTA] = FOREGROUND_BLUE|FOREGROUND_RED;
ttycolors[CLR_CYAN] = FOREGROUND_GREEN|FOREGROUND_BLUE;
ttycolors[CLR_GRAY] = FOREGROUND_GREEN|FOREGROUND_RED|FOREGROUND_BLUE;
@@ -572,7 +572,8 @@ init_ttycolor()
ttycolors[CLR_BRIGHT_BLUE] = FOREGROUND_BLUE|FOREGROUND_INTENSITY;
ttycolors[CLR_BRIGHT_MAGENTA] = FOREGROUND_BLUE|FOREGROUND_RED|\
FOREGROUND_INTENSITY;
ttycolors[CLR_BRIGHT_CYAN] = FOREGROUND_GREEN|FOREGROUND_BLUE;
ttycolors[CLR_BRIGHT_CYAN] = FOREGROUND_GREEN|FOREGROUND_BLUE|\
FOREGROUND_INTENSITY;
ttycolors[CLR_WHITE] = FOREGROUND_GREEN|FOREGROUND_BLUE|FOREGROUND_RED|\
FOREGROUND_INTENSITY;
}