[armedbear-devel] Using print and read together.
Ted Kosan
ted.kosan at gmail.com
Mon Jun 13 13:46:13 UTC 2011
Hello,
I am currently working through the "Land of Lisp" book by Conrad
Barski and I am using ABCL to run all of the code in the book. In the
following code, the prompt that is printed by 'print' is not seen
until after 'read' returns:
(defun add-five()
(print "Pleaser enter a number:")
(let ((num (read)))
(print "When I add five I get")
(print (+ num 5))))
Is it possible to configure ABCL to have the output from 'print' be
visible immediately so that it can be used to prompt the user to input
some information?
Thanks in advance,
Ted
More information about the armedbear-devel
mailing list