[racket] REPL and read-line

From: Jos Koot (jos.koot at telefonica.net)
Date: Thu Jan 6 13:42:20 EST 2011

I do not see this problem on version (in windows 7)
If the current-input-port parameter has not been altered, read-line shows a
bar in the repl in which you can enter your line followed by any newline
char. The bar also shows the option to return an eof.

> -----Original Message-----
> From: users-bounces at racket-lang.org 
> [mailto:users-bounces at racket-lang.org] On Behalf Of Alexandre Moreira
> Sent: 06 January 2011 19:10
> To: users at racket-lang.org
> Subject: [racket] REPL and read-line
> Hello, everyone. I'm trying to use the (read-line) function 
> in racket's REPL  and I'm having a weird problem. Whenever I type
> (read-line) in the REPL prompt it returns the empty string. 
> It's as if it is receiving the linefeed character I use to 
> enter the command on the REPL.
> Is this a known limitation or a bug or some stupidity on my 
> part? If it's something with racket, do you guys know of any 
> workaround? I plan on making a read-line wrapper that checks 
> to see if the first attempt is an empty line and if so, calls 
> read-line again taking whatever it's result is, but I'd 
> rather live without those hacks if at all possible.
> Am I missing some sort of configuration for the REPL?
> Thanks,
> Alexandre Moreira.
> --
> "Bad programming is easy. Idiots can learn it in 21 days, 
> even if they are dummies."
> - As seen in 'How to Design Programs'
> _________________________________________________
>   For list-related administrative tasks:
>   http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.