Added cbreak and intrflush into ncurses initialization.
authorFrancois Fleuret <francois@fleuret.org>
Thu, 18 Jun 2009 19:38:48 +0000 (21:38 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Thu, 18 Jun 2009 19:38:48 +0000 (21:38 +0200)
REVISION_NUMBER
selector.cc

index 492dff0..7f1ddd5 100644 (file)
@@ -1 +1 @@
-152
+153
index 4d86da2..739f6f8 100644 (file)
@@ -890,8 +890,10 @@ int main(int argc, char **argv) {
   // Here we start to display with curse
 
   initscr();
-
+  cbreak();
   noecho();
+  // nonl();
+  intrflush(stdscr, FALSE);
 
   // So that the arrow keys work
   keypad(stdscr, TRUE);