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
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. |
|
abstract fun setSize(width: Int, height: Int): Pty
Resize the terminal. |
|
abstract fun slave(): Tty |
|
abstract fun stdoutHandler(handler: Handler<String>): Pty
Set the standard out handler of the pseudo terminal. |
|
abstract fun write(data: String): Pty
Write data to the slave standard input of the pseudo terminal. |