Skip to content
Advertisement

Tag: alert

Python cmd module – Resume prompt after asynchronous event

I am maintaining an operator terminal based on cmd. The customer asked for an alerting behavior. e.g. a message shown onscreen when some asynchronous event occurs. I made a thread that periodically checks for alerts, and when it finds some, it just prints them to stdout. This seems to work OK, but it doesn’t seem very elegant, and it has

Advertisement