Lines Matching refs:screen
113 * The current screen text
117 private $screen;
120 * The current screen attributes
164 * Resets the screen as well
176 $this->screen = array_fill(0, $this->max_y + 1, '');
235 case "\x1B[J": // Clear screen from cursor down
236 $this->history = array_merge($this->history, array_slice(array_splice($this->screen, $this->y + 1), 0, $this->old_y));
237 $this->screen = array_merge($this->screen, array_fill($this->y, $this->max_y, ''));
247 case "\x1B[K": // Clear screen from cursor right
248 $this->screen[$this->y] = substr($this->screen[$this->y], 0, $this->x);
253 $this->screen[$this->y] = str_repeat(' ', $this->x);
270 case preg_match('#\x1B\[(\d+);(\d+)H#', $this->ansi, $match): // Move cursor to screen location v,h
367 $this->screen[$this->y] = substr_replace(
368 $this->screen[$this->y],
386 if ($this->x > strlen($this->screen[$this->y])) {
387 $this->screen[$this->y] = str_repeat(' ', $this->x);
389 $this->screen[$this->y] = substr_replace(
390 $this->screen[$this->y],
409 * Also update the $this->screen and $this->history buffers
419 $this->history = array_merge($this->history, [array_shift($this->screen)]);
420 $this->screen[] = '';
495 * Returns the current screen without preformating
506 $output .= $this->processCoordinate($last_attr, $cur_attr, isset($this->screen[$i][$j]) ? $this->screen[$i][$j] : '');
518 * Returns the current screen
528 * Returns the current screen and the x previous lines