public interface Pty
Tty
. This interface acts as a pseudo
terminal master, slave()
returns the assocated slave pseudo terminal.Modifier and Type | Method and Description |
---|---|
static Pty |
create()
Create a new pseudo terminal with no terminal type.
|
static Pty |
create(String terminalType)
Create a new pseudo terminal.
|
Pty |
setSize(int width,
int height)
Resize the terminal.
|
Tty |
slave() |
Pty |
stdoutHandler(Handler<String> handler)
Set the standard out handler of the pseudo terminal.
|
Pty |
write(String data)
Write data to the slave standard input of the pseudo terminal.
|
static Pty create()
create(String)
static Pty create(String terminalType)
terminalType
- the terminal type, for instance vt100Pty stdoutHandler(Handler<String> handler)
handler
- the standard outputPty write(String data)
data
- the data to writePty setSize(int width, int height)
Tty slave()
Copyright © 2024 Eclipse. All rights reserved.