RealTimeConsoleInput

Encapsulates the stream of input events received from the terminal input.

Constructors

this
this()
Undocumented in source.
this
this(Terminal* terminal, ConsoleInputFlags flags)

To capture input, you need to provide a terminal and some flags.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Enums

InjectionPosition
enum InjectionPosition
Undocumented in source.

Functions

checkWindowSizeChanged
InputEvent checkWindowSizeChanged()
Undocumented in source. Be warned that the author may not have intended to support it.
eventListener
void eventListener(OsFileHandle fd)
Undocumented in source. Be warned that the author may not have intended to support it.
getch
dchar getch(bool nonblocking)

Get one key press from the terminal, discarding other events in the process. Returns dchar.init upon receiving end-of-file.

injectEvent
void injectEvent(InputEvent ev, InjectionPosition where)
Undocumented in source. Be warned that the author may not have intended to support it.
kbhit
bool kbhit()

Returns true if there iff getch() would not block.

nextChar
dchar nextChar(int starting)
Undocumented in source. Be warned that the author may not have intended to support it.
nextEvent
InputEvent nextEvent()

Returns the next event.

nextRaw
int nextRaw(bool interruptable)
Undocumented in source. Be warned that the author may not have intended to support it.
peekNextEvent
InputEvent* peekNextEvent()
Undocumented in source. Be warned that the author may not have intended to support it.
readNextEvents
InputEvent[] readNextEvents()
Undocumented in source. Be warned that the author may not have intended to support it.
readNextEvents
InputEvent[] readNextEvents()
Undocumented in source. Be warned that the author may not have intended to support it.
readNextEventsHelper
InputEvent[] readNextEventsHelper()
Undocumented in source. Be warned that the author may not have intended to support it.
signalFired
void signalFired(SignalFired )
Undocumented in source. Be warned that the author may not have intended to support it.
timedCheckForInput
bool timedCheckForInput(int milliseconds)

Check for input, waiting no longer than the number of milliseconds

Variables

hack
ubyte[128] hack;
Undocumented in source.
inputHandle
HANDLE inputHandle;
Undocumented in source.
inputPrefilter
int delegate(char) inputPrefilter;
Undocumented in source.
inputQueue
InputEvent[] inputQueue;
Undocumented in source.

Meta