From 4f79a1a9972b863b3aaa6921ef258f87bc907b9f Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 24 Jan 2019 11:16:45 +1100 Subject: [PATCH] Added pause for videotex, and fix capturing returns --- app/Classes/Server.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Classes/Server.php b/app/Classes/Server.php index ab36449..9234fce 100644 --- a/app/Classes/Server.php +++ b/app/Classes/Server.php @@ -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'];