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 theoriginal
non 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 void
close()
Term
closeHandler(Runnable handler)
Term
echo(String text)
boolean
equals(Object o)
io.vertx.ext.shell.term.Term
getDelegate()
int
hashCode()
Term
interruptHandler(SignalHandler handler)
long
lastAccessedTime()
static Term
newInstance(io.vertx.ext.shell.term.Term arg)
void
readline(String prompt, io.vertx.core.Handler<String> lineHandler, Consumer<Completion> completionHandler)
void
readline(String prompt, Consumer<String> lineHandler)
Term
resizehandler(Runnable handler)
Term
setSession(Session session)
Term
stdinHandler(Consumer<String> handler)
Term
suspendHandler(SignalHandler handler)
String
toString()
Term
write(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:
getDelegate
in classTty
-
resizehandler
public Term resizehandler(Runnable handler)
- Overrides:
resizehandler
in classTty
- Parameters:
handler
- the resize handler- Returns:
-
stdinHandler
public Term stdinHandler(Consumer<String> handler)
- Overrides:
stdinHandler
in 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)
-
-