public interface TerminalReader
Modifier and Type | Method and Description |
---|---|
void |
closeTerminal()
Classes must provide an implementation that closes sockets, restores
console, etc.
|
void |
getEvents(java.util.List<TInputEvent> queue)
Classes must provide an implementation to get keyboard, mouse, and
screen resize events.
|
boolean |
hasEvents()
Check if there are events in the queue.
|
void |
reloadOptions()
Reload options from System properties.
|
void |
setListener(java.lang.Object listener)
Set listener to a different Object.
|
boolean hasEvents()
void getEvents(java.util.List<TInputEvent> queue)
queue
- list to append new events tovoid closeTerminal()
void setListener(java.lang.Object listener)
listener
- the new listening object that run() wakes up on new
inputvoid reloadOptions()
Copyright © 2019 Kevin Lamonte. Licensed MIT.