Added pause for videotex, and fix capturing returns
This commit is contained in:
parent
f2e6a250cc
commit
4f79a1a997
@ -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(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(CLS.COFF);
|
||||||
|
$client->send('Press a key...');
|
||||||
|
|
||||||
// Setup VARS
|
// Setup VARS
|
||||||
$timewarp = FALSE; // Is timewarp active.
|
$timewarp = FALSE; // Is timewarp active.
|
||||||
@ -135,6 +136,7 @@ abstract class Server {
|
|||||||
$action = ACTION_GOTO; // Initial action.
|
$action = ACTION_GOTO; // Initial action.
|
||||||
$control = FALSE; // Logic in control
|
$control = FALSE; // Logic in control
|
||||||
$mode = FALSE; // Current mode.
|
$mode = FALSE; // Current mode.
|
||||||
|
$save = FALSE; //
|
||||||
$cmd = ''; // Current *command being typed in
|
$cmd = ''; // Current *command being typed in
|
||||||
$user = new User; // The logged in user
|
$user = new User; // The logged in user
|
||||||
$method = collect(); // Method in control for CONTROL_METHOD
|
$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 a Control method was rejected, we can clear it
|
||||||
if ($control AND $method->count()) {
|
if ($control AND $method->count()) {
|
||||||
$method->pop();
|
$save = $method->pop();
|
||||||
|
|
||||||
if ($method->count()) {
|
if ($method->count()) {
|
||||||
$control = $method->last()->state['control'];
|
$control = $method->last()->state['control'];
|
||||||
@ -701,8 +703,9 @@ abstract class Server {
|
|||||||
$history->pop();
|
$history->pop();
|
||||||
|
|
||||||
if ($control AND $method->count()) {
|
if ($control AND $method->count()) {
|
||||||
$method->pop();
|
$save = $method->pop();
|
||||||
|
|
||||||
|
// Do we still have more nested methods to complete
|
||||||
if ($method->count()) {
|
if ($method->count()) {
|
||||||
$control = $method->last()->state['control'];
|
$control = $method->last()->state['control'];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user