| 88 |
void clearscr() |
void clearscr() |
| 89 |
{ |
{ |
| 90 |
prints("\033[2J"); |
prints("\033[2J"); |
| 91 |
moveto(0, 0); |
moveto(1, 1); |
| 92 |
} |
} |
| 93 |
|
|
| 94 |
inline int press_any_key() |
inline int press_any_key() |
| 703 |
if (ch != KEY_NULL && ch != KEY_TIMEOUT) |
if (ch != KEY_NULL && ch != KEY_TIMEOUT) |
| 704 |
{ |
{ |
| 705 |
BBS_last_access_tm = time(NULL); |
BBS_last_access_tm = time(NULL); |
| 706 |
|
|
| 707 |
|
// Refresh current action |
| 708 |
|
if (user_online_update(NULL) < 0) |
| 709 |
|
{ |
| 710 |
|
log_error("user_online_update(NULL) error\n"); |
| 711 |
|
} |
| 712 |
} |
} |
| 713 |
|
|
| 714 |
// extended key handler |
// extended key handler |
| 720 |
switch (ch) |
switch (ch) |
| 721 |
{ |
{ |
| 722 |
case KEY_NULL: |
case KEY_NULL: |
| 723 |
|
#ifdef _DEBUG |
| 724 |
log_error("KEY_NULL\n"); |
log_error("KEY_NULL\n"); |
| 725 |
|
#endif |
| 726 |
goto cleanup; |
goto cleanup; |
| 727 |
case KEY_TIMEOUT: |
case KEY_TIMEOUT: |
| 728 |
log_error("User input timeout\n"); |
log_error("User input timeout\n"); |