chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Re: Ending input reading without quit csi


From: Ivan Shmakov
Subject: [Chicken-users] Re: Ending input reading without quit csi
Date: Tue, 08 Jan 2008 18:32:32 +0600
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

>>>>> felix winkelmann <address@hidden> 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.

[...]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]