summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-10 13:27:08 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-10 13:27:08 +0000
commit83a1f5bb1cc5c925d534838556873d714d861f35 (patch)
treefa650911f935037ef37fc10302a54fc0378473f0 /crawl-ref/source/libunix.cc
parent3a1e34e90153981eb8a83241a49d1280eae4ab3a (diff)
downloadcrawl-ref-83a1f5bb1cc5c925d534838556873d714d861f35.tar.gz
crawl-ref-83a1f5bb1cc5c925d534838556873d714d861f35.zip
Conditionalise define_key on ncurses as a token gesture to classic curses compatibility.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8381 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r--crawl-ref/source/libunix.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index f2cc7a76f2..5ecf73c57e 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -413,6 +413,7 @@ void message_out(int which_line, int color, const char *s, int firstcol,
static void unixcurses_defkeys( void )
{
+#ifdef NCURSES_VERSION
// keypad 0-9 (only if the "application mode" was successfully initialized)
define_key("\033Op", 1000);
define_key("\033Oq", 1001);
@@ -442,6 +443,7 @@ static void unixcurses_defkeys( void )
define_key("\033[1~", 1031); // Home
define_key("\033[4~", 1034); // End
define_key("\033[E", 1040); // center arrow
+#endif
}
int unixcurses_get_vi_key(int keyin)