RealTimeConsoleInput.integrateWithSimpleDisplayEventLoop

If you are using arsd.simpledisplay and want terminal interop too, you can call this function to add it to the sdpy event loop and get the callback called on new input.

Note that you will probably need to call terminal.flush() when you are doing doing output, as the sdpy event loop doesn't know to do that (yet). I will probably change that in a future version, but it doesn't hurt to call it twice anyway, so I recommend calling flush yourself in any code you write using this.

struct RealTimeConsoleInput
integrateWithSimpleDisplayEventLoop
()
()

Meta