From 9f6e99c9c11a400af2ed69d2c1534469e5496f78 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Wed, 15 Oct 2003 11:37:16 +0000 Subject: [PATCH] win32tty color fix fix by , updated by 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. --- doc/fixes34.3 | 1 + sys/winnt/nttty.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/fixes34.3 b/doc/fixes34.3 index b16b221b7..a9b4c0ab0 100644 --- a/doc/fixes34.3 +++ b/doc/fixes34.3 @@ -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 diff --git a/sys/winnt/nttty.c b/sys/winnt/nttty.c index 1ef8a6de1..53a7b0b84 100644 --- a/sys/winnt/nttty.c +++ b/sys/winnt/nttty.c @@ -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; } -- 2.40.0