From: W. Trevor King Date: Mon, 14 Mar 2011 20:07:59 +0000 (-0400) Subject: Add curses_check_for_keypress post. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05df58cb5ce3701fcf8b4ec8c47aef22a805185e;p=mw2txt.git Add curses_check_for_keypress post. --- diff --git a/posts/Gentoo_overlay.mdwn b/posts/Gentoo_overlay.mdwn index d933f06..bdc7403 100644 --- a/posts/Gentoo_overlay.mdwn +++ b/posts/Gentoo_overlay.mdwn @@ -11,6 +11,8 @@ personal `layman.xml`). The overlay is a fairly strange mix: - app-misc/lifelines ([Gentoo 42103](http://bugs.gentoo.org/42103)) +- dev-python/curses-check-for-keypress + (my [[curses_check_for_keypress]] package) - dev-python/splittable-kwargs (my [[splittable_kwargs]] package) - dev-tex/draftmark diff --git a/posts/curses_check_for_keypress.mdwn b/posts/curses_check_for_keypress.mdwn new file mode 100644 index 0000000..473f833 --- /dev/null +++ b/posts/curses_check_for_keypress.mdwn @@ -0,0 +1,14 @@ +[[!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]]