[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/phpseclib/phpseclib/phpseclib/File/ -> ANSI.php (summary)

Pure-PHP ANSI Decoder PHP version 5

Author: Jim Wigginton
Copyright: 2012 Jim Wigginton
License: http://www.opensource.org/licenses/mit-license.html MIT License
Link: http://phpseclib.sourceforge.net
File Size: 551 lines (20 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ANSI:: (10 methods):
  __construct()
  setDimensions()
  setHistory()
  loadString()
  appendString()
  newLine()
  processCoordinate()
  getScreenHelper()
  getScreen()
  getHistory()


Class: ANSI  - X-Ref

Pure-PHP ANSI Decoder

__construct()   X-Ref
Default Constructor.

return: \phpseclib3\File\ANSI

setDimensions($x, $y)   X-Ref
Set terminal width and height

Resets the screen as well

param: int $x
param: int $y

setHistory($history)   X-Ref
Set the number of lines that should be logged past the terminal height

param: int $history

loadString($source)   X-Ref
Load a string

param: string $source

appendString($source)   X-Ref
Appdend a string

param: string $source

newLine()   X-Ref
Add a new line

Also update the $this->screen and $this->history buffers


processCoordinate(\stdClass $last_attr, \stdClass $cur_attr, $char)   X-Ref
Returns the current coordinate without preformating

return: string
param: \stdClass $last_attr
param: \stdClass $cur_attr
param: string $char

getScreenHelper()   X-Ref
Returns the current screen without preformating

return: string

getScreen()   X-Ref
Returns the current screen

return: string

getHistory()   X-Ref
Returns the current screen and the x previous lines

return: string