From fa9a5721b1e903f5e2435d928183621071d45cc4 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Mon, 12 Oct 2009 13:48:08 -0700 Subject: 8 color terminals: switch to conditional usage based on terminal type Apple's Terminal.app sets a TERM_PROGRAM environment variable to "Apple_Terminal". This gives us a good way to detect at runtime whether or not the terminal supports more than 8 colors. The main reason for checking at runtime is that Mac users are able to run other terminal apps (xterm, rxvt, etc), and should expect to see more than 8 colors in terminals that support it. Signed-off-by: Steven Noonan --- crawl-ref/source/AppHdr.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crawl-ref/source/AppHdr.h') diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h index ef65c1288f..4014edab30 100644 --- a/crawl-ref/source/AppHdr.h +++ b/crawl-ref/source/AppHdr.h @@ -64,10 +64,7 @@ // especially bad, so we'll want to remap that. OS X is otherwise // Unix-ish, so we shouldn't need other special handling. // -#if defined(TARGET_OS_MACOSX) - #define USE_8_COLOUR_TERM_MAP - #define COL_TO_REPLACE_DARKGREY BLUE -#endif +#define COL_TO_REPLACE_DARKGREY BLUE // // FreeBSD -- cgit v1.2.3-54-g00ecf