ncurses.c
changeset 45 7197576fedcf
parent 27 81a574d60c15
child 77 49e0babccb23
--- a/ncurses.c
+++ b/ncurses.c
@@ -34,14 +34,13 @@
     return EXIT_SUCCESS;
 }
 
-wchar_t fucnt (WINDOW * win)
+wchar_t func (WINDOW * win)
 {
     wchar_t guess;
 
     char dest[4];
 
     int maxx;
-
     int maxy;
 
     while (guess != ESCAPE) {
@@ -82,10 +81,12 @@
 
     check_locale ();
     win = initscr ();
+    keypad (win, 1);
     noecho ();
-    x = fucnt (win);
+
+    x = func (win);
+
     endwin ();
-
     printf ("\n");
 
     return EXIT_SUCCESS;