summaryrefslogtreecommitdiff
path: root/src/scripts/input.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/input.py')
-rw-r--r--src/scripts/input.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/scripts/input.py b/src/scripts/input.py
new file mode 100644
index 0000000..7bac375
--- /dev/null
+++ b/src/scripts/input.py
@@ -0,0 +1,9 @@
+import screen
+
+def input_cb(str):
+ f = open("/tmp/debug/py", "ab")
+ f.write("%s\n" % str)
+ f.close()
+
+screen.input("Test:", input_cb, "123")
+