Interface Tty
- All Known Subinterfaces:
CommandProcess, Term
-
Method Summary
Modifier and TypeMethodDescriptionintheight()resizehandler(Handler<Void> handler) Set a resize handler, the handler is called when the tty size changes.stdinHandler(Handler<String> handler) Set a stream handler on the standard input to read the data.type()intwidth()Write data to the standard output.
-
Method Details
-
type
String type()- Returns:
- the declared tty type, for instance vt100, xterm-256, etc... it can be null when the tty does not have declared its type.
-
width
int width()- Returns:
- the current width, i.e the number of rows or -1 if unknown
-
height
int height()- Returns:
- the current height, i.e the number of columns or -1 if unknown
-
stdinHandler
-
write
-
resizehandler
-