users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

get_key(X) problem on Windows


From: Bapst Frédéric
Subject: get_key(X) problem on Windows
Date: Thu, 07 Sep 2006 09:28:31 +0200

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
-----------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]