My goal is a function that collects info from the user.
So far I have this:
(defun prompt-read (prompt)
(format *query-io* "~a: " prompt)
(force-output *query-io*)
(read-line *query-io*))
Witch outputs:
CG-USER(27): (prompt-read "cenas")
cenas: lol
"l"
T
There are 2 things I dont understand here:
1 - Why is read-line only getting the first character?
2 - Why do I have to press ENTER twice after writing the string "lol" for the function to work?
I'm using Allegro CL Free Express Edition 9.0 and windows 8 - 64 bits.
EDIT: After trying this in a linux machine the output was what I expected and only one ENTER was required, however I would still like to understand this behavior on the windows environment.