Parent Directory
|
Revision Log
|
Patch
| Revision 1.44 by sysadm, Sat May 10 15:23:42 2025 UTC | Revision 1.45 by sysadm, Sun May 11 11:33:44 2025 UTC | |
|---|---|---|
| # | Line 119 static int _str_input(char *buffer, int | Line 119 static int _str_input(char *buffer, int |
| 119 | igetch(1); // Cleanup remaining '\n' in the buffer | igetch(1); // Cleanup remaining '\n' in the buffer |
| 120 | break; | break; |
| 121 | } | } |
| 122 | else if (c == KEY_TIMEOUT) | else if (c == KEY_TIMEOUT || c == KEY_NULL) // timeout or broken pipe |
| 123 | { | { |
| 124 | return -1; | return -1; |
| 125 | } | } |
| 126 | else if (c == KEY_NULL || c == LF) | else if (c == LF || c == '\0') |
| 127 | { | { |
| 128 | continue; | continue; |
| 129 | } | } |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |