get_key(X) problem on Windows

Bapst Frédéric <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Hello,

I face the following problem : on Windows, when I use the interpreter in non-interactive mode (i.e. not from a terminal),

- get_char(X) correctly works (blocks until a char is available from stdin)
- get_code(X) correctly works too, but
- get_key(X) succeeds immediately with X=-1 (as if stdin was closed)

As get_key is used within the original top-level, I bet this causes an infinite loop in case of multiple answers to a question :

Action (; for next solution, a for all solutions, RET to stop) ?
Action (; for next solution, a for all solutions, RET to stop) ?
Action (; for next solution, a for all solutions, RET to stop) ?
...

Do you think it is a bug ? Is it planned to fix it ?

Thanks in advance.

-----------------------------------------------------

Romandie Annonces : http://annonces.romandie.com

Petites annonces 100% gratuites entre romands

-----------------------------------------------------

_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.