[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Re: Ending input reading without quit csi
From: |
minh thu |
Subject: |
Re: [Chicken-users] Re: Ending input reading without quit csi |
Date: |
Tue, 8 Jan 2008 14:01:17 +0100 |
...
> > 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.
Your example works the same way here when I don't use the readline
extension in my .csirc. But I prefer to use the readline extension.
Cheers,
thu