| 237 |
return NOREDRAW; |
return NOREDRAW; |
| 238 |
} |
} |
| 239 |
show_top10 = 1; |
show_top10 = 1; |
| 240 |
|
|
| 241 |
clearscr(); |
clearscr(); |
| 242 |
show_top("", BBS_name, ""); |
show_top("", BBS_name, ""); |
| 243 |
show_bottom(""); |
show_bottom(""); |
| 248 |
{ |
{ |
| 249 |
iflush(); |
iflush(); |
| 250 |
ch = igetch(100); |
ch = igetch(100); |
| 251 |
|
|
| 252 |
|
if (ch != KEY_NULL && ch != KEY_TIMEOUT) |
| 253 |
|
{ |
| 254 |
|
BBS_last_access_tm = time(NULL); |
| 255 |
|
} |
| 256 |
|
|
| 257 |
switch (ch) |
switch (ch) |
| 258 |
{ |
{ |
| 259 |
case KEY_NULL: // broken pipe |
case KEY_NULL: // broken pipe |
| 260 |
|
log_error("KEY_NULL\n"); |
| 261 |
show_top10 = 0; |
show_top10 = 0; |
| 262 |
return 0; |
return 0; |
| 263 |
case KEY_TIMEOUT: |
case KEY_TIMEOUT: |
| 264 |
if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME) |
if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME) |
| 265 |
{ |
{ |
| 266 |
|
log_error("User input timeout\n"); |
| 267 |
show_top10 = 0; |
show_top10 = 0; |
| 268 |
return 0; |
return 0; |
| 269 |
} |
} |
| 288 |
} |
} |
| 289 |
} |
} |
| 290 |
|
|
|
BBS_last_access_tm = time(NULL); |
|
|
|
|
| 291 |
if (ch == EXITMENU) |
if (ch == EXITMENU) |
| 292 |
{ |
{ |
| 293 |
break; |
break; |
| 294 |
} |
} |
| 295 |
} |
} |
| 296 |
} |
} |
| 297 |
|
|
| 298 |
show_top10 = 0; |
show_top10 = 0; |
| 299 |
return REDRAW; |
return REDRAW; |
| 300 |
} |
} |