[[!meta title="curses_check_for_keypress"]] [[!template id=gitrepo repo=curses-check-for-keypress]] There are some points in my experiment control code where the program does something for an arbitrary length of time (e.g, waits while the operator manually adjusts a laser's alignment). For these situations, I wanted to be able to loop until the user pressed a key. This is a simple enough idea, but the implementation turned out to be complicated enough for me to spin it out as a stand-alone module. [[!tag tags/code]] [[!tag tags/linux]] [[!tag tags/programming]] [[!tag tags/python]]