RealTimeConsoleInput.injectEvent

Injects a custom event into the terminal input queue.

struct RealTimeConsoleInput
shared
void
injectEvent
(
CustomEvent ce
)

Bugs

Unless using TerminalDirectToEmulator, this will not wake up the event loop if it is already blocking until normal terminal input arrives anyway, then the event will be processed before the new event.

I might change this later.

Meta

History

shared overload added November 24, 2021 (dub v10.4)