Class: Pty

vertx-shell-js/pty~ Pty

new Pty()

Source:

Methods

setSize(width, height) → {Pty}

Resize the terminal.
Parameters:
Name Type Description
width number
height number
Source:
Returns:
this current object
Type
Pty

slave() → {Tty}

Source:
Returns:
  • the pseudo terminal slave
  • Type
    Tty

stdoutHandler(handler) → {Pty}

Set the standard out handler of the pseudo terminal.
Parameters:
Name Type Description
handler function the standard output
Source:
Returns:
this current object
Type
Pty

write(data) → {Pty}

Write data to the slave standard input of the pseudo terminal.
Parameters:
Name Type Description
data string the data to write
Source:
Returns:
this current object
Type
Pty