summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-12 13:48:08 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-12 13:48:08 -0700
commitfa9a5721b1e903f5e2435d928183621071d45cc4 (patch)
tree068336d9099453bd303096c53b36c268c51261aa /crawl-ref/source/AppHdr.h
parent8abd03d4485e187aed31b8ac908e5908dc2666cc (diff)
downloadcrawl-ref-fa9a5721b1e903f5e2435d928183621071d45cc4.tar.gz
crawl-ref-fa9a5721b1e903f5e2435d928183621071d45cc4.zip
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 <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r--crawl-ref/source/AppHdr.h5
1 files changed, 1 insertions, 4 deletions
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