Welcome to the CHICKEN Scheme pasting service

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)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the procedure to access a character in a string by index in R5RS?
Visually impaired? Let me spell it for you (wav file) download WAV