Pty

A pseudo terminal used for controlling a @see \io\vertx\jphp\ext\shell\term\Tty. This interface acts as a pseudo terminal master, @see \io\vertx\jphp\ext\shell\term\Pty::slave returns the assocated slave pseudo terminal.

package

Default

Methods

__construct

__construct() 

Create a new pseudo terminal with no terminal type.

create( $arg0 = null) : \io\vertx\jphp\ext\shell\term\Pty
static

create()

Create a new pseudo terminal.

param $terminalType [string] the terminal type, for instance {@literal vt100} create($terminalType)

Arguments

$arg0

string

Response

\io\vertx\jphp\ext\shell\term\Pty

Resize the terminal.

setSize( $arg0,  $arg1) : $this

Arguments

$arg0

integer

$arg1

integer

Response

$this

this current object

slave

slave() : \io\vertx\jphp\ext\shell\term\Tty

Response

\io\vertx\jphp\ext\shell\term\Tty

the pseudo terminal slave

Set the standard out handler of the pseudo terminal.

stdoutHandler( $arg0) : $this

Arguments

$arg0

callable

Response

$this

this current object

Write data to the slave standard input of the pseudo terminal.

write( $arg0) : $this

Arguments

$arg0

string

Response

$this

this current object