public abstract class InputEnabledAbstractTerminal extends AbstractTerminal implements InputProvider
InputProvider
.Terminal.Color, Terminal.ResizeListener, Terminal.SGR
Constructor and Description |
---|
InputEnabledAbstractTerminal(InputDecoder inputDecoder) |
Modifier and Type | Method and Description |
---|---|
void |
addInputProfile(KeyMappingProfile profile)
Adds a KeyMappingProfile to be used when converting raw user input bytes
to
Key objects. |
Key |
readInput()
Returns the next
Key off the input queue or null if there is none
more input events available |
protected TerminalSize |
waitForTerminalSizeReport(int timeoutMs) |
addResizeListener, getLastKnownSize, onResized, removeResizeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyBackgroundColor, applyBackgroundColor, applyBackgroundColor, applyForegroundColor, applyForegroundColor, applyForegroundColor, applySGR, clearScreen, enterPrivateMode, exitPrivateMode, flush, getTerminalSize, moveCursor, putCharacter, queryTerminalSize, setCursorVisible
public InputEnabledAbstractTerminal(InputDecoder inputDecoder)
public void addInputProfile(KeyMappingProfile profile)
InputProvider
Key
objects.addInputProfile
in interface InputProvider
KeyMappingProfile
protected TerminalSize waitForTerminalSizeReport(int timeoutMs)
public Key readInput()
InputProvider
Key
off the input queue or null if there is none
more input events availablereadInput
in interface InputProvider
Key
off the input queue or null if there is noneCopyright © 2015. All Rights Reserved.