[ 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: 577 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()
  _getScreen()
  getScreen()
  getHistory()


Class: ANSI  - X-Ref

Pure-PHP ANSI Decoder

__construct()   X-Ref
Default Constructor.

return: \phpseclib\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 $x
param: int $y

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($last_attr, $cur_attr, $char)   X-Ref
Returns the current coordinate without preformating

return: string

_getScreen()   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