[mercury-users] waiting for an enter

Fergus Henderson fjh at cs.mu.OZ.AU
Wed May 28 12:54:55 AEST 2003

On 27-May-2003, Tom Wouters <tom.wouters1 at student.kuleuven.ac.be> wrote:
> i was trying to write an interactive application which requires the 
> mercury program to wait for an enter on stdin a few times.
> i tried
> io__read_line(_R1),
> ...
> io__read_line(_R2),
> ...

That should work fine.
It certainly works fine for me (I just tested it).
What OS are you using?

> but the program only seems to wait for the first read_line, and skips 
> the others.

Odd... you're not calling io__set_input_stream, are you?

If you can't figure out what is causing the problem, I suggest posting
a complete program that exhibits the problem to
mercury-bugs at cs.mu.oz.au, together with information about exactly
which versions of Mercury, gcc, and the OS you are using.

Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe

More information about the users mailing list