Added pause for videotex, and fix capturing returns

This commit is contained in:
Deon George 2019-01-24 11:16:45 +11:00
parent f2e6a250cc
commit 4f79a1a997
1 changed files with 5 additions and 2 deletions

View File

@ -127,6 +127,7 @@ abstract class Server {
$client->send(TCP_IAC.TCP_DO.TCP_OPT_TERMTYPE.TCP_IAC.TCP_SB.TCP_OPT_TERMTYPE.TCP_OPT_ECHO.TCP_IAC.TCP_SE); // Request Term Type
$client->send(CLS.COFF);
$client->send('Press a key...');
// Setup VARS
$timewarp = FALSE; // Is timewarp active.
@ -135,6 +136,7 @@ abstract class Server {
$action = ACTION_GOTO; // Initial action.
$control = FALSE; // Logic in control
$mode = FALSE; // Current mode.
$save = FALSE; //
$cmd = ''; // Current *command being typed in
$user = new User; // The logged in user
$method = collect(); // Method in control for CONTROL_METHOD
@ -405,7 +407,7 @@ abstract class Server {
// If a Control method was rejected, we can clear it
if ($control AND $method->count()) {
$method->pop();
$save = $method->pop();
if ($method->count()) {
$control = $method->last()->state['control'];
@ -701,8 +703,9 @@ abstract class Server {
$history->pop();
if ($control AND $method->count()) {
$method->pop();
$save = $method->pop();
// Do we still have more nested methods to complete
if ($method->count()) {
$control = $method->last()->state['control'];