iblrig.net.read_stdin

async iblrig.net.read_stdin(loop=None)[source]

Asynchronously reads lines from standard input.

Allows asynchronous reading of user keyboard input. Currently there is no cross-platform way to listen to keypresses, but this function comes close.

Parameters:

loop (asyncio.AbstractEventLoop) – An optional event loop to use.

Yields:

str – A line of text from the standard input, if available.