Add curses_check_for_keypress post.
authorW. Trevor King <wking@drexel.edu>
Mon, 14 Mar 2011 20:07:59 +0000 (16:07 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 14 Mar 2011 20:10:27 +0000 (16:10 -0400)
posts/Gentoo_overlay.mdwn
posts/curses_check_for_keypress.mdwn [new file with mode: 0644]

index d933f063a7164210052e79c740447ddfbdc4a79c..bdc7403f672477e23348f43b90f6674a9a186ea0 100644 (file)
@@ -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 (file)
index 0000000..473f833
--- /dev/null
@@ -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]]