(standard-input)
Posted: Fri Jul 29, 2005 12:33 pm
I tried to write a UNIX filter (read from stdin, write to stdout) in OpenLisp, but (standard-input) doesn't seem to work the way I expected from reading the ISLISP spec. The following code:
doesn't wait for input and just prints "Read". Is OpenLisp supposed to work this way?
- Code: Select all
(defun main ()
(let ((x (read-line (standard-input))))
(format (standard-output) "Read ~A~%" x)))
doesn't wait for input and just prints "Read". Is OpenLisp supposed to work this way?