Parent Directory
|
Revision Log
|
Patch
| Revision 1.22 by sysadm, Sat May 10 02:14:46 2025 UTC | Revision 1.24 by sysadm, Sat May 10 13:17:36 2025 UTC | |
|---|---|---|
| # | Line 124 int igetch(int clear_buf) | Line 124 int igetch(int clear_buf) |
| 124 | ||
| 125 | if (c == '\0') | if (c == '\0') |
| 126 | { | { |
| 127 | out = c; | return KEY_NULL; |
| break; | ||
| 128 | } | } |
| 129 | ||
| 130 | if (c == KEY_CONTROL) | if (c == KEY_CONTROL) |
| # | Line 241 int igetch_t(long int sec) | Line 240 int igetch_t(long int sec) |
| 240 | do | do |
| 241 | { | { |
| 242 | ch = igetch(0); | ch = igetch(0); |
| 243 | } while ((ch == KEY_TIMEOUT || ch == 0xa) && (time(0) - t_begin < sec)); | } while (ch == KEY_TIMEOUT && (time(0) - t_begin < sec)); |
| 244 | ||
| 245 | return ch; | return ch; |
| 246 | } | } |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |