Package org.apache.maven.jline
Class FastTerminal
java.lang.Object
org.apache.maven.jline.FastTerminal
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,org.jline.terminal.spi.TerminalExt
,org.jline.terminal.Terminal
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jline.terminal.Terminal
org.jline.terminal.Terminal.MouseTracking, org.jline.terminal.Terminal.Signal, org.jline.terminal.Terminal.SignalHandler
-
Field Summary
Fields inherited from interface org.jline.terminal.Terminal
TYPE_DUMB, TYPE_DUMB_COLOR
-
Constructor Summary
ConstructorDescriptionFastTerminal
(Callable<org.jline.terminal.Terminal> builder, Consumer<org.jline.terminal.Terminal> consumer) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
close()
boolean
echo()
boolean
echo
(boolean b) encoding()
org.jline.terminal.Attributes
void
flush()
org.jline.terminal.Attributes
boolean
getBooleanCapability
(org.jline.utils.InfoCmp.Capability capability) org.jline.terminal.Size
org.jline.terminal.Cursor
getCursorPosition
(IntConsumer intConsumer) int
getName()
getNumericCapability
(org.jline.utils.InfoCmp.Capability capability) org.jline.utils.ColorPalette
org.jline.terminal.spi.TerminalProvider
org.jline.terminal.Size
getSize()
getStringCapability
(org.jline.utils.InfoCmp.Capability capability) org.jline.terminal.spi.SystemStream
org.jline.terminal.spi.TerminalExt
getType()
int
getWidth()
org.jline.terminal.Terminal.SignalHandler
handle
(org.jline.terminal.Terminal.Signal signal, org.jline.terminal.Terminal.SignalHandler signalHandler) boolean
boolean
input()
output()
void
pause()
void
pause
(boolean b) boolean
paused()
boolean
void
raise
(org.jline.terminal.Terminal.Signal signal) org.jline.utils.NonBlockingReader
reader()
org.jline.terminal.MouseEvent
org.jline.terminal.MouseEvent
readMouseEvent
(IntSupplier intSupplier) void
resume()
void
setAttributes
(org.jline.terminal.Attributes attributes) void
setSize
(org.jline.terminal.Size size) boolean
trackFocus
(boolean b) boolean
trackMouse
(org.jline.terminal.Terminal.MouseTracking mouseTracking) writer()
-
Constructor Details
-
FastTerminal
-
-
Method Details
-
getTerminal
public org.jline.terminal.spi.TerminalExt getTerminal() -
getName
- Specified by:
getName
in interfaceorg.jline.terminal.Terminal
-
handle
public org.jline.terminal.Terminal.SignalHandler handle(org.jline.terminal.Terminal.Signal signal, org.jline.terminal.Terminal.SignalHandler signalHandler) - Specified by:
handle
in interfaceorg.jline.terminal.Terminal
-
raise
public void raise(org.jline.terminal.Terminal.Signal signal) - Specified by:
raise
in interfaceorg.jline.terminal.Terminal
-
reader
public org.jline.utils.NonBlockingReader reader()- Specified by:
reader
in interfaceorg.jline.terminal.Terminal
-
writer
- Specified by:
writer
in interfaceorg.jline.terminal.Terminal
-
encoding
- Specified by:
encoding
in interfaceorg.jline.terminal.Terminal
-
input
- Specified by:
input
in interfaceorg.jline.terminal.Terminal
-
output
- Specified by:
output
in interfaceorg.jline.terminal.Terminal
-
canPauseResume
public boolean canPauseResume()- Specified by:
canPauseResume
in interfaceorg.jline.terminal.Terminal
-
pause
public void pause()- Specified by:
pause
in interfaceorg.jline.terminal.Terminal
-
pause
- Specified by:
pause
in interfaceorg.jline.terminal.Terminal
- Throws:
InterruptedException
-
resume
public void resume()- Specified by:
resume
in interfaceorg.jline.terminal.Terminal
-
paused
public boolean paused()- Specified by:
paused
in interfaceorg.jline.terminal.Terminal
-
enterRawMode
public org.jline.terminal.Attributes enterRawMode()- Specified by:
enterRawMode
in interfaceorg.jline.terminal.Terminal
-
echo
public boolean echo()- Specified by:
echo
in interfaceorg.jline.terminal.Terminal
-
echo
public boolean echo(boolean b) - Specified by:
echo
in interfaceorg.jline.terminal.Terminal
-
getAttributes
public org.jline.terminal.Attributes getAttributes()- Specified by:
getAttributes
in interfaceorg.jline.terminal.Terminal
-
setAttributes
public void setAttributes(org.jline.terminal.Attributes attributes) - Specified by:
setAttributes
in interfaceorg.jline.terminal.Terminal
-
getSize
public org.jline.terminal.Size getSize()- Specified by:
getSize
in interfaceorg.jline.terminal.Terminal
-
setSize
public void setSize(org.jline.terminal.Size size) - Specified by:
setSize
in interfaceorg.jline.terminal.Terminal
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceorg.jline.terminal.Terminal
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceorg.jline.terminal.Terminal
-
getBufferSize
public org.jline.terminal.Size getBufferSize()- Specified by:
getBufferSize
in interfaceorg.jline.terminal.Terminal
-
flush
public void flush() -
getType
- Specified by:
getType
in interfaceorg.jline.terminal.Terminal
-
puts
- Specified by:
puts
in interfaceorg.jline.terminal.Terminal
-
getBooleanCapability
public boolean getBooleanCapability(org.jline.utils.InfoCmp.Capability capability) - Specified by:
getBooleanCapability
in interfaceorg.jline.terminal.Terminal
-
getNumericCapability
- Specified by:
getNumericCapability
in interfaceorg.jline.terminal.Terminal
-
getStringCapability
- Specified by:
getStringCapability
in interfaceorg.jline.terminal.Terminal
-
getCursorPosition
- Specified by:
getCursorPosition
in interfaceorg.jline.terminal.Terminal
-
hasMouseSupport
public boolean hasMouseSupport()- Specified by:
hasMouseSupport
in interfaceorg.jline.terminal.Terminal
-
trackMouse
public boolean trackMouse(org.jline.terminal.Terminal.MouseTracking mouseTracking) - Specified by:
trackMouse
in interfaceorg.jline.terminal.Terminal
-
readMouseEvent
public org.jline.terminal.MouseEvent readMouseEvent()- Specified by:
readMouseEvent
in interfaceorg.jline.terminal.Terminal
-
readMouseEvent
- Specified by:
readMouseEvent
in interfaceorg.jline.terminal.Terminal
-
hasFocusSupport
public boolean hasFocusSupport()- Specified by:
hasFocusSupport
in interfaceorg.jline.terminal.Terminal
-
trackFocus
public boolean trackFocus(boolean b) - Specified by:
trackFocus
in interfaceorg.jline.terminal.Terminal
-
getPalette
public org.jline.utils.ColorPalette getPalette()- Specified by:
getPalette
in interfaceorg.jline.terminal.Terminal
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getProvider
public org.jline.terminal.spi.TerminalProvider getProvider()- Specified by:
getProvider
in interfaceorg.jline.terminal.spi.TerminalExt
-
getSystemStream
public org.jline.terminal.spi.SystemStream getSystemStream()- Specified by:
getSystemStream
in interfaceorg.jline.terminal.spi.TerminalExt
-