>>>>> felix winkelmann <[EMAIL PROTECTED]> writes:

 >> Say I write in csi somethign like (for-each-line (lambda (line)
 >> (display line))) which will read from current-input-port,

 > Correct.

 >>  how can I end the input (if I use ctrl-d, it stops csi too) ?

 > You will have to handle it yourself.

        Oh, I'm not so sure:

$ csi 
CHICKEN
Version 2.739 - linux-unix-gnu-x86      [ manyargs dload ptables applyhook ]
(c)2000-2007 Felix L. Winkelmann        compiled 2008-01-07 on debian (Linux)

#;1> (use utils)
; loading library utils ...
#;2> (for-each-line (lambda (line) (display line) (newline)))
hello, world
hello, world
; ^D here
#;3> 

        And moreover:

#;3> (read-char)
; ^D here
#!eof
#;4> 

        This is POSIX-compliant behaviour to allow for multiple EOFs to
        occur on reading from a terminal.

[...]



_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to