From: drdani Date: Mon, 7 Feb 2000 08:08:07 +0000 (+0000) Subject: Kevin Vigor's fix for Solaris X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=35c807abdf2a68914694be2d4a008e56c7a2e18a;p=fw%2Fsdcc Kevin Vigor's fix for Solaris git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@80 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/sim/ucsim/gui.src/a.cc b/sim/ucsim/gui.src/a.cc index 81d62c3f..c8033ae6 100644 --- a/sim/ucsim/gui.src/a.cc +++ b/sim/ucsim/gui.src/a.cc @@ -59,10 +59,14 @@ main(int argc, char *argv[]) init_pair(1, COLOR_WHITE, COLOR_BLUE); init_pair(2, COLOR_WHITE, COLOR_RED); } + + #ifdef NCURSES_VERSION + /* has_key is a ncurses specific function. */ if (has_key(KEY_UP)) printw("has UP KEY_UP=0x%x\n",KEY_UP); else printf("has no UP\n"); + #endif c= getch(); printw("got %d %x\n",c,c);