Fix field detection in ANSI

This commit is contained in:
Deon George 2018-12-14 10:21:25 +11:00
parent 6cc793c47f
commit cb2d7936d0
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ class Videotex extends AbstractFrame
$this->output .= HOME.UP.$msg.HOME;
}
// @todo Change to use a Parser, like we do for ANSI
public function fields($startline=1)
{
$infield = FALSE; // In a field

View File

@ -115,7 +115,7 @@ class Ansi extends AbstractParser {
$c--; // Allow for the original ESC
$advance++;
$fieldtype = ord($nextbyte)%128; // @todo Do we need the %128 for ANSI?
$fieldlength = $this->findEOF(chr($fieldtype),$c+1)+1;
$fieldlength = $this->findEOF(chr($fieldtype),$c+2)+1;
$byte = '';