| 315 |
iflush(); |
iflush(); |
| 316 |
|
|
| 317 |
input_ok = 0; |
input_ok = 0; |
|
ch = igetch_t(MAX_DELAY_TIME); |
|
| 318 |
while (!SYS_server_exit && !input_ok) |
while (!SYS_server_exit && !input_ok) |
| 319 |
{ |
{ |
| 320 |
|
ch = igetch_t(MAX_DELAY_TIME); |
| 321 |
|
input_ok = 1; |
| 322 |
|
|
| 323 |
// extended key handler |
// extended key handler |
| 324 |
if (key_handler(&ch, &ctx) != 0) |
if (key_handler(&ch, &ctx) != 0) |
| 325 |
{ |
{ |
| 326 |
goto cleanup; |
goto cleanup; |
| 327 |
} |
} |
| 328 |
|
|
|
input_ok = 1; |
|
| 329 |
switch (ch) |
switch (ch) |
| 330 |
{ |
{ |
| 331 |
case KEY_NULL: |
case KEY_NULL: |
| 462 |
} |
} |
| 463 |
|
|
| 464 |
BBS_last_access_tm = time(0); |
BBS_last_access_tm = time(0); |
|
if (!input_ok) |
|
|
{ |
|
|
ch = igetch_t(MAX_DELAY_TIME); |
|
|
} |
|
| 465 |
} |
} |
| 466 |
|
|
| 467 |
continue; |
continue; |