Parent Directory | Revision Log | Patch
revision 1.7 by okuji, Sat Feb 19 20:56:07 2005 UTC | revision 1.8 by okuji, Sun Feb 27 21:19:05 2005 UTC | |
---|---|---|
# | Line 105 grub_ncurses_checkkey (void) | Line 105 grub_ncurses_checkkey (void) |
105 | /* Check for SAVED_CHAR. This should not be true, because this | /* Check for SAVED_CHAR. This should not be true, because this |
106 | means checkkey is called twice continuously. */ | means checkkey is called twice continuously. */ |
107 | if (saved_char != ERR) | if (saved_char != ERR) |
108 | return 1; | return saved_char; |
109 | ||
110 | wtimeout (stdscr, 100); | wtimeout (stdscr, 100); |
111 | c = getch (); | c = getch (); |
# | Line 113 grub_ncurses_checkkey (void) | Line 113 grub_ncurses_checkkey (void) |
113 | if (c != ERR) | if (c != ERR) |
114 | { | { |
115 | saved_char = c; | saved_char = c; |
116 | return 1; | return c; |
117 | } | } |
118 | ||
119 | return 0; | return -1; |
120 | } | } |
121 | ||
122 | static int | static int |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |