Parent Directory
|
Revision Log
|
Patch
| Revision 1.11 by sysadm, Sat May 7 09:28:12 2005 UTC | Revision 1.13 by sysadm, Mon Mar 15 07:30:21 2010 UTC | |
|---|---|---|
| # | Line 69 igetch () | Line 69 igetch () |
| 69 | fd_set testfds; | fd_set testfds; |
| 70 | struct timeval timeout; | struct timeval timeout; |
| 71 | ||
| 72 | //Stop on system exit | |
| 73 | if (SYS_exit) | |
| 74 | return KEY_NULL; | |
| 75 | ||
| 76 | if (pos >= len) | if (pos >= len) |
| 77 | { | { |
| 78 | pos = 0; | pos = 0; |
| # | Line 89 igetch () | Line 93 igetch () |
| 93 | } | } |
| 94 | if (result < 0) | if (result < 0) |
| 95 | { | { |
| 96 | log_error ("select() error!\n"); | log_error ("select() error (%d) !\n", result); |
| 97 | return KEY_NULL; | return KEY_NULL; |
| 98 | } | } |
| 99 | if (result > 0) | if (result > 0) |
| # | Line 230 igetch_t (long int sec) | Line 234 igetch_t (long int sec) |
| 234 | { | { |
| 235 | ch = igetch (); | ch = igetch (); |
| 236 | } | } |
| 237 | while ((ch == KEY_TIMEOUT) && (time (0) - t_begin < sec)); | while ((ch == KEY_TIMEOUT || ch == 0xa) && (time (0) - t_begin < sec)); |
| 238 | ||
| 239 | return ch; | return ch; |
| 240 | } | } |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |