The terminal.
| Constructor and description |
|---|
Term
(java.lang.Object delegate) |
| Type | Name and description |
|---|---|
void |
close()Close the connection to terminal. |
Term |
closeHandler(io.vertx.core.Handler<java.lang.Void> handler)Set a handler that will be called when the terminal is closed. |
Term |
echo(java.lang.String text)Echo some text in the terminal, escaped if necessary. |
java.lang.Object |
getDelegate() |
Term |
interruptHandler(SignalHandler handler)Set an interrupt signal handler on the term. |
long |
lastAccessedTime()@return
|
void |
readline(java.lang.String prompt, io.vertx.core.Handler<java.lang.String> lineHandler)Prompt the user a line of text. |
void |
readline(java.lang.String prompt, io.vertx.core.Handler<java.lang.String> lineHandler, io.vertx.core.Handler<Completion> completionHandler)Prompt the user a line of text, providing a completion handler to handle user's completion. |
Term |
resizehandler(io.vertx.core.Handler<java.lang.Void> handler) |
Term |
setSession(Session session)Associate the term with a session. |
Term |
stdinHandler(io.vertx.core.Handler<java.lang.String> handler) |
Term |
suspendHandler(SignalHandler handler)Set a suspend signal handler on the term. |
Term |
write(java.lang.String data) |
| Methods inherited from class | Name |
|---|---|
class Tty |
getDelegate, height, resizehandler, stdinHandler, type, width, write |
Close the connection to terminal.
Set a handler that will be called when the terminal is closed.
handler - the handlerEcho some text in the terminal, escaped if necessary.
text - the text to echoSet an interrupt signal handler on the term.
handler - the interrupt handler
Prompt the user a line of text.
prompt - the displayed promptlineHandler - the line handler called with the linePrompt the user a line of text, providing a completion handler to handle user's completion.
prompt - the displayed promptlineHandler - the line handler called with the linecompletionHandler - the completion handlerAssociate the term with a session.
session - the session to setSet a suspend signal handler on the term.
handler - the suspend handler