From: Eric S. Raymond Date: Thu, 1 Aug 2002 22:15:12 +0000 (+0000) Subject: Make the cursor invisible. X-Git-Tag: 2.1 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=561909444972e4ff84d967215d1725d4908c1a3f;p=tetrix.git Make the cursor invisible. --- diff --git a/tet.c b/tet.c index 1629198..96fa1ce 100644 --- a/tet.c +++ b/tet.c @@ -103,6 +103,7 @@ Init() initscr(); #ifdef KEY_MIN keypad(stdscr, TRUE); + curs_set(0); #endif /* KEY_MIN */ nodelay(stdscr, TRUE); noecho(); @@ -264,6 +265,9 @@ Play() case QUIT_KEY: CurrentPause = 0; case FALL_KEY: +#ifdef KEY_MIN + case KEY_DOWN: +#endif /* KEY_MIN */ FallingDown = 1; UPSCORE(20-Row); Pause = 0; @@ -416,7 +420,7 @@ GetKey() top: if ((c = getch()) == ERR) return; - else Key = (c & 0177); + else Key = c; goto top; }