vertx / io.vertx.ext.shell.term / Pty

Pty

interface Pty

A pseudo terminal used for controlling a Tty. This interface acts as a pseudo terminal master, #slave() returns the assocated slave pseudo terminal.

Author
Julien Viet

Functions

create

open static fun create(): Pty

Create a new pseudo terminal with no terminal type.

open static fun create(terminalType: String): Pty

Create a new pseudo terminal.

setSize

abstract fun setSize(width: Int, height: Int): Pty

Resize the terminal.

slave

abstract fun slave(): Tty

stdoutHandler

abstract fun stdoutHandler(handler: Handler<String>): Pty

Set the standard out handler of the pseudo terminal.

write

abstract fun write(data: String): Pty

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