Interface Pty
public 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic Ptycreate()Create a new pseudo terminal with no terminal type.static PtyCreate a new pseudo terminal.setSize(int width, int height) Resize the terminal.slave()stdoutHandler(Handler<String> handler) Set the standard out handler of the pseudo terminal.Write data to the slave standard input of the pseudo terminal.
-
Method Details
-
create
-
create
-
stdoutHandler
-
write
-
setSize
-
slave
Tty slave()- Returns:
- the pseudo terminal slave
-