<div class="gmail_quote">Hi All.<div><br></div><div>I'm having an issue with (read-line). Below is some output from running the attached rkt file on my system(Ubuntu 10.10, Racket 5.0.2). In the first instance the script runs, and as I expect I can enter a string such as "Hello". When I use the repl it does not work like I expect it to, and I don't get a chance to enter a string. Any ideas? I thought about flushing/discarding data from the input port before calling (read-line), but I only found a function for flushing an output port.</div>
<div><br></div><div>Thanks!</div><div><br></div><div><div><font face="'courier new', monospace">bash$ racket -l scheme -t "read-test.rkt" -e "(read-input)"</font></div>
<div><font face="'courier new', monospace">Enter a string: Hello</font></div><div><font face="'courier new', monospace">"Hello"</font></div><div>
<font face="'courier new', monospace">bash$ racket</font></div><div><font face="'courier new', monospace">Welcome to Racket v5.0.2.</font></div><div><font face="'courier new', monospace">> (require "read-test.rkt")</font></div>
<div><font face="'courier new', monospace">> (read-input)</font></div><div><font face="'courier new', monospace">Enter a string: ""</font></div>
<div><font face="'courier new', monospace">> </font></div></div><div><br></div><font color="#888888"><div>- Bill</div>
</font></div><br>