public interface Term extends Tty
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Close the connection to terminal. 
 | 
Term | 
closeHandler(Handler<Void> handler)
Set a handler that will be called when the terminal is closed. 
 | 
Term | 
echo(String text)
Echo some text in the terminal, escaped if necessary. 
 | 
Term | 
interruptHandler(SignalHandler handler)
Set an interrupt signal handler on the term. 
 | 
long | 
lastAccessedTime()  | 
void | 
readline(String prompt,
        Handler<String> lineHandler)
Prompt the user a line of text. 
 | 
void | 
readline(String prompt,
        Handler<String> lineHandler,
        Handler<Completion> completionHandler)
Prompt the user a line of text, providing a completion handler to handle user's completion. 
 | 
Term | 
resizehandler(Handler<Void> handler)
Set a resize handler, the handler is called when the tty size changes. 
 | 
Term | 
setSession(Session session)
Associate the term with a session. 
 | 
Term | 
stdinHandler(Handler<String> handler)
Set a stream handler on the standard input to read the data. 
 | 
Term | 
suspendHandler(SignalHandler handler)
Set a suspend signal handler on the term. 
 | 
Term | 
write(String data)
Write data to the standard output. 
 | 
Term resizehandler(Handler<Void> handler)
Ttyresizehandler in interface Ttyhandler - the resize handlerTerm stdinHandler(Handler<String> handler)
TtystdinHandler in interface Ttyhandler - the standard inputTerm write(String data)
Ttylong lastAccessedTime()
Term echo(String text)
text - the text to echoTerm setSession(Session session)
session - the session to setTerm interruptHandler(SignalHandler handler)
handler - the interrupt handlerTerm suspendHandler(SignalHandler handler)
handler - the suspend handlervoid readline(String prompt, Handler<String> lineHandler)
prompt - the displayed promptlineHandler - the line handler called with the linevoid readline(String prompt, Handler<String> lineHandler, Handler<Completion> completionHandler)
prompt - the displayed promptlineHandler - the line handler called with the linecompletionHandler - the completion handlerTerm closeHandler(Handler<Void> handler)
handler - the handlervoid close()
Copyright © 2020 Eclipse. All rights reserved.