]> granicus.if.org Git - nethack/commitdiff
win32tty color fix
authornethack.allison <nethack.allison>
Wed, 15 Oct 2003 11:37:16 +0000 (11:37 +0000)
committernethack.allison <nethack.allison>
Wed, 15 Oct 2003 11:37:16 +0000 (11:37 +0000)
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.

doc/fixes34.3
sys/winnt/nttty.c

index b16b221b78c8e2a7f0b2bf5e6c742ac2042ef8c2..a9b4c0ab01ce6e710863cfb28c91d97fd4f2bf85 100644 (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
index 1ef8a6de18ca7350afa1c41bd244e4fabf9a3e31..53a7b0b842a6042cc96659addb9292025ebe2a01 100644 (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;
 }