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