ExtendedTerminal, IOSafeExtendedTerminal, IOSafeTerminal, Screen, Terminal, VirtualTerminalAbstractScreen, AbstractTerminal, ANSITerminal, AWTTerminal, AWTTerminalFrame, CygwinTerminal, DefaultVirtualTerminal, IOSafeTerminalAdapter, IOSafeTerminalAdapter.Extended, ScrollingAWTTerminal, ScrollingSwingTerminal, StreamBasedTerminal, SwingTerminal, SwingTerminalFrame, TelnetTerminal, TerminalScreen, UnixLikeTerminal, UnixLikeTTYTerminal, UnixTerminal, VirtualScreenpublic interface InputProvider
Key objects which can
 be read in a FIFO manner.| Modifier and Type | Method | Description | 
|---|---|---|
KeyStroke | 
pollInput() | 
 Returns the next  
Key off the input queue or null if there is no more input events available. | 
KeyStroke | 
readInput() | 
 Returns the next  
Key off the input queue or blocks until one is available. | 
KeyStroke pollInput() throws IOException
Key off the input queue or null if there is no more input events available. Note, this
 method call is not blocking, it returns null immediately if there is nothing on the input stream.IOException - Propagated error if the underlying stream gave errorsKeyStroke readInput() throws IOException
Key off the input queue or blocks until one is available. NOTE: In previous
 versions of Lanterna, this method was not blocking. From lanterna 3, it is blocking and you can call
 pollInput() for the non-blocking version.IOException - Propagated error if the underlying stream gave errorsCopyright © 2020. All rights reserved.