| 1 |
/*************************************************************************** |
/* SPDX-License-Identifier: GPL-3.0-or-later */ |
| 2 |
screen.c - description |
/* |
| 3 |
------------------- |
* screen |
| 4 |
Copyright : (C) 2004-2025 by Leaflet |
* - advanced telnet-based user interactive input / output features |
| 5 |
Email : leaflet@leafok.com |
* |
| 6 |
***************************************************************************/ |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
|
*/ |
|
/*************************************************************************** |
|
|
* * |
|
|
* This program is free software; you can redistribute it and/or modify * |
|
|
* it under the terms of the GNU General Public License as published by * |
|
|
* the Free Software Foundation; either version 3 of the License, or * |
|
|
* (at your option) any later version. * |
|
|
* * |
|
|
***************************************************************************/ |
|
| 8 |
|
|
| 9 |
#include "bbs.h" |
#include "bbs.h" |
| 10 |
#include "common.h" |
#include "common.h" |
| 144 |
|
|
| 145 |
while (!SYS_server_exit) |
while (!SYS_server_exit) |
| 146 |
{ |
{ |
| 147 |
ch = igetch_t(MIN(MAX_DELAY_TIME, 60)); |
ch = igetch_t(MIN(BBS_max_user_idle_time, 60)); |
| 148 |
|
|
| 149 |
if (ch == CR) |
if (ch == CR) |
| 150 |
{ |
{ |
| 314 |
|
|
| 315 |
while (!SYS_server_exit) |
while (!SYS_server_exit) |
| 316 |
{ |
{ |
| 317 |
ch = igetch_t(MIN(MAX_DELAY_TIME, 60)); |
ch = igetch_t(MIN(BBS_max_user_idle_time, 60)); |
| 318 |
|
|
| 319 |
if (ch == CR) |
if (ch == CR) |
| 320 |
{ |
{ |
| 645 |
input_ok = 0; |
input_ok = 0; |
| 646 |
while (!SYS_server_exit && !input_ok) |
while (!SYS_server_exit && !input_ok) |
| 647 |
{ |
{ |
| 648 |
ch = igetch_t(MAX_DELAY_TIME); |
ch = igetch_t(BBS_max_user_idle_time); |
| 649 |
input_ok = 1; |
input_ok = 1; |
| 650 |
|
|
| 651 |
if (ch != KEY_NULL && ch != KEY_TIMEOUT) |
if (ch != KEY_NULL && ch != KEY_TIMEOUT) |