Parent Directory
|
Revision Log
|
Patch
| Revision 1.41 by sysadm, Sat May 10 11:09:02 2025 UTC | Revision 1.42 by sysadm, Sat May 10 13:17:36 2025 UTC | |
|---|---|---|
| # | Line 114 static int _str_input(char *buffer, int | Line 114 static int _str_input(char *buffer, int |
| 114 | ||
| 115 | while ((c = igetch_t(MIN(MAX_DELAY_TIME, 60)))) | while ((c = igetch_t(MIN(MAX_DELAY_TIME, 60)))) |
| 116 | { | { |
| 117 | if (c == KEY_NULL || c == CR) | if (c == CR) |
| 118 | { | { |
| 119 | igetch(1); // Cleanup remaining '\n' in the buffer | igetch(1); // Cleanup remaining '\n' in the buffer |
| 120 | break; | break; |
| # | Line 123 static int _str_input(char *buffer, int | Line 123 static int _str_input(char *buffer, int |
| 123 | { | { |
| 124 | return -1; | return -1; |
| 125 | } | } |
| 126 | if (c == LF) | if (c == KEY_NULL || c == LF) |
| 127 | { | { |
| 128 | continue; | continue; |
| 129 | } | } |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |