Fix field detection in ANSI
This commit is contained in:
parent
6cc793c47f
commit
cb2d7936d0
@ -28,6 +28,7 @@ class Videotex extends AbstractFrame
|
|||||||
$this->output .= HOME.UP.$msg.HOME;
|
$this->output .= HOME.UP.$msg.HOME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @todo Change to use a Parser, like we do for ANSI
|
||||||
public function fields($startline=1)
|
public function fields($startline=1)
|
||||||
{
|
{
|
||||||
$infield = FALSE; // In a field
|
$infield = FALSE; // In a field
|
||||||
|
@ -115,7 +115,7 @@ class Ansi extends AbstractParser {
|
|||||||
$c--; // Allow for the original ESC
|
$c--; // Allow for the original ESC
|
||||||
$advance++;
|
$advance++;
|
||||||
$fieldtype = ord($nextbyte)%128; // @todo Do we need the %128 for ANSI?
|
$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 = '';
|
$byte = '';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user