Why do I have to press enter here? pasted by C-Keen on Fri Jul 1 10:58:14 2011

(use posix srfi-1)
(set-buffering-mode! (current-input-port) #:none)
(set-buffering-mode! (current-output-port) #:none)
(printf "~s~%~!"  (map (lambda (_) (read-char)) (iota 3)))
;; press left arrow
;; press enter
(#\esc #\[ #\C)

;; without enter I don't get the result

The solution thanks to DerGuteMoritz added by C-Keen on Fri Jul 1 12:10:41 2011

(use srfi-1 stty)
(stty '(not icanon))
(printf "~s~%~!"  (map (lambda (_) (read-char)) (iota 3)))
;; press left arrow
=> (#\esc #\[ #\C)