send(ESC.'[24;0f'.$text. ($this->blp > $this->strlenv($text) ? str_repeat(' ',$this->blp-$this->strlenv($text)). ($reposition ? ESC.'[24;0f'.str_repeat(RIGHT,$this->strlenv($text)) : '') : '') ); $this->blp = $this->strlenv($text); } // Abstract function public function strlenv($text):int { return strlen($text ? preg_replace('/'.ESC.'\[[0-9;?]+[a-zA-Z]/','',$text) : $text); } // Abstract function public function testFrame() { return \App\Classes\Frame\Ansi::testFrame($this); } }