Struct RealTimeConsoleInput
Encapsulates the stream of input events received from the terminal input.
struct RealTimeConsoleInput
;
Constructors
Name | Description |
this
(terminal, flags)
|
To capture input, you need to provide a terminal and some flags.
|
Methods
Name | Description |
getch
(nonblocking)
|
Get one key press from the terminal, discarding other
events in the process. Returns dchar.init upon receiving end-of-file.
|
kbhit
()
|
Returns true if there iff getch() would not block.
|
nextEvent
()
|
Returns the next event.
|
timedCheckForInput
(milliseconds)
|
Check for input, waiting no longer than the number of milliseconds
|