(read-line)
Reads the next line from stream that is the current value of *in* .
user=> (read-line)
line to be read ;Type text into console
"line to be read"
; (flush) is needed for displaying the prompt. Print stays in a buffer otherwise.
user=> (do (print "What's your name? ") (flush) (read-line))
What's your name? Clojure
"Clojure"
(println "Enter something> ")
(def x (read-line))
(println (str "You typed \\"" x "\\""))