summaryrefslogtreecommitdiff
path: root/tests/interactive.lisp
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2019-11-21 12:57:59 +0100
committerTom Smeding <tom.smeding@gmail.com>2019-11-21 12:57:59 +0100
commit15ebcc764c30c18f41f179d589ad1ad5a45194f1 (patch)
treee83ebfbd8b2dc5e8524bf3fd647f55b9b8702941 /tests/interactive.lisp
parentd4c554f62b007df2763c73ba7fd2b13814c186bc (diff)
Better string and IO support
Diffstat (limited to 'tests/interactive.lisp')
-rw-r--r--tests/interactive.lisp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/interactive.lisp b/tests/interactive.lisp
new file mode 100644
index 0000000..d40758b
--- /dev/null
+++ b/tests/interactive.lisp
@@ -0,0 +1,6 @@
+#include "stdlib.lisp"
+
+(sys-put-string stdout "line: ")
+(sys-flush stdout)
+(define str (read-line stdin))
+(print str)