Talk:Colors

From NetHackWiki
Jump to navigation Jump to search

My xterm colours

Hello!

Below are the xterm colours I use with nethack. I spent a bit of time developing & testing them and decided to share... please give me some feedback. :)

Side note: to remember grey vs. gray - (e)nglish, (a)merican.

rsarson

  • copy & paste the code to the end of your .Xresources file
  • run 'xrdb .Xresources' (you may see override messages if your file already has any of these lines)
  • reload xterm
  • play nethack (with OPTIONS=use_darkgray in your rc file, if playing on NAO)
#define NETHACK 
#ifdef NETHACK
/* In nethack, CLR_BLACK & NO_COLOR = color8, and CLR_GRAY = foreground; */
/* colorBD is used but color7 is not - they are made equal here to balance */
/* the greys, ie, 3 greys instead of 4 makes them more distinct. */

/*** cursor ***/
xterm*VT100.cursorBlink:        true
xterm*VT100.cursorColor:        foreground

/*** background & foreground ***/
xterm*VT100.background:         #000000 /* black */
xterm*VT100.foreground:         #808080 /* CLR_GRAY */

/*** bold ***/
xterm*VT100.allowBoldFonts:     false   /* no "thick" bold characters */
xterm*VT100.colorBDMode:        true
xterm*VT100.colorBD:            #BFBFBF /* lightgrey */

/*** palette ***/
xterm*VT100.color0:             #000000 /* background */
xterm*VT100.color1:             #BF0000 /* CLR_RED */
xterm*VT100.color2:             #00BF00 /* CLR_GREEN */
xterm*VT100.color3:             #804000 /* CLR_BROWN */
xterm*VT100.color4:             #0060BF /* CLR_BLUE */
xterm*VT100.color5:             #BF00BF /* CLR_MAGENTA */
xterm*VT100.color6:             #00BFBF /* CLR_CYAN */
xterm*VT100.color7:             #BFBFBF /* not used in nethack */
/***/
xterm*VT100.color8:             #404040 /* CLR_BLACK & NO_COLOR */
xterm*VT100.color9:             #FF8000 /* CLR_ORANGE */
xterm*VT100.color10:            #00FF00 /* CLR_BRIGHT_GREEN */
xterm*VT100.color11:            #FFFF00 /* CLR_YELLOW */
xterm*VT100.color12:            #0080FF /* CLR_BRIGHT_BLUE */
xterm*VT100.color13:            #FF00FF /* CLR_BRIGHT_MAGENTA */
xterm*VT100.color14:            #00FFFF /* CLR_BRIGHT_CYAN */
xterm*VT100.color15:            #FFFFFF /* CLR_WHITE */
#endif /* NETHACK */

--Rsarson (talk) 23:46, 15 October 2013 (UTC)rsarson