The console module provides the ability to retrieve input from the user through the console.
The ConsoleInput class provides the ability to receive input from a user through the console. This class runs as a separate thread which monitors the console for input and notifies a callback method in the event that keyboard input is received.
The callback method must take one argument which is the character that was read as input. This class also provides the ability to register a callback function to be called in the event that an exception occurs during the processing of the thread.
This class implements the pyamp.processes.Thread, and the amp.logging.Loggable interfaces.
callback – The function called when input is received
continue waiting for input
exceptionFn – The functionc called when an exception is encountered
logger – The logger object
Called during each cycle of the Thread.