Initial work on Frame Edit
This commit is contained in:
@@ -27,6 +27,7 @@ class Ansi extends AbstractServer {
|
||||
define('SPACE', ' '); // Space (for compatibility with Videotex)
|
||||
|
||||
// NOTE: This consts are effective output
|
||||
define('RESET', ESC.'[0;39;49m');
|
||||
define('RED', ESC.'[0;31m');
|
||||
define('GREEN', ESC.'[0;32m');
|
||||
define('YELLOW', ESC.'[1;33m');
|
||||
@@ -64,7 +65,7 @@ class Ansi extends AbstractServer {
|
||||
|
||||
// Abstract function
|
||||
public function sendBaseline($client,$text,$reposition=FALSE) {
|
||||
$client->send(CSAVE.ESC.'[24;0f'.$text.
|
||||
$client->send(CSAVE.ESC.'[24;0f'.RESET.$text.
|
||||
($this->blp > $this->fo->strlenv($text)
|
||||
? str_repeat(' ',$this->blp-$this->fo->strlenv($text)).
|
||||
($reposition ? ESC.'[24;0f'.str_repeat(RIGHT,$this->fo->strlenv($text)) : CRESTORE)
|
||||
|
@@ -26,6 +26,7 @@ class Videotex extends AbstractServer {
|
||||
define('SPACE', ''); // Space
|
||||
|
||||
// NOTE: This consts are effective output
|
||||
define('RESET', '');
|
||||
define('RED', ESC.'A');
|
||||
define('GREEN', ESC.'B');
|
||||
define('YELLOW', ESC.'C');
|
||||
|
Reference in New Issue
Block a user