Package io.vertx.mutiny.ext.shell.term
Class Term
- java.lang.Object
 - 
- io.vertx.mutiny.ext.shell.term.Tty
 - 
- io.vertx.mutiny.ext.shell.term.Term
 
 
 
- 
public class Term extends Tty
The terminal. NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static TypeArg<Term>__TYPE_ARG 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()TermcloseHandler(Runnable handler)Termecho(String text)booleanequals(Object o)io.vertx.ext.shell.term.TermgetDelegate()inthashCode()TerminterruptHandler(SignalHandler handler)longlastAccessedTime()static TermnewInstance(io.vertx.ext.shell.term.Term arg)voidreadline(String prompt, io.vertx.core.Handler<String> lineHandler, Consumer<Completion> completionHandler)voidreadline(String prompt, Consumer<String> lineHandler)Termresizehandler(Runnable handler)TermsetSession(Session session)TermstdinHandler(Consumer<String> handler)TermsuspendHandler(SignalHandler handler)StringtoString()Termwrite(String data)- 
Methods inherited from class io.vertx.mutiny.ext.shell.term.Tty
height, newInstance, type, width 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
Term
public Term(io.vertx.ext.shell.term.Term delegate)
 
- 
Term
public Term(Object delegate)
 
 - 
 
- 
Method Detail
- 
getDelegate
public io.vertx.ext.shell.term.Term getDelegate()
- Overrides:
 getDelegatein classTty
 
- 
resizehandler
public Term resizehandler(Runnable handler)
- Overrides:
 resizehandlerin classTty- Parameters:
 handler- the resize handler- Returns:
 
 
- 
stdinHandler
public Term stdinHandler(Consumer<String> handler)
- Overrides:
 stdinHandlerin classTty- Parameters:
 handler- the standard input- Returns:
 
 
- 
lastAccessedTime
public long lastAccessedTime()
- Returns:
 - the last time this term received input
 
 
- 
echo
public Term echo(String text)
- Parameters:
 text- the text to echo- Returns:
 - a reference to this, so the API can be used fluently
 
 
- 
setSession
public Term setSession(Session session)
- Parameters:
 session- the session to set- Returns:
 - a reference to this, so the API can be used fluently
 
 
- 
interruptHandler
public Term interruptHandler(SignalHandler handler)
- Parameters:
 handler- the interrupt handler- Returns:
 - a reference to this, so the API can be used fluently
 
 
- 
suspendHandler
public Term suspendHandler(SignalHandler handler)
- Parameters:
 handler- the suspend handler- Returns:
 - a reference to this, so the API can be used fluently
 
 
- 
readline
public void readline(String prompt, Consumer<String> lineHandler)
- Parameters:
 prompt- the displayed promptlineHandler- the line handler called with the line
 
- 
readline
public void readline(String prompt, io.vertx.core.Handler<String> lineHandler, Consumer<Completion> completionHandler)
- Parameters:
 prompt- the displayed promptlineHandler- the line handler called with the linecompletionHandler- the completion handler
 
- 
close
public void close()
 
- 
newInstance
public static Term newInstance(io.vertx.ext.shell.term.Term arg)
 
 - 
 
 -