-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: no choice on printing more answers #2672
Comments
I can reproduce with ?- use_module(library(charsio)).
true.
?- char_type('a', X).
X = alnum
; ... .
?- (X = 1; X = 2).
X = 1
; ... . This doesn't happen in |
Ok, I checked and this still happens even before #2527, which would be the obvious culprit here. |
I printed some stuff:
Where the The
I don't know much of the interactions here, but it seems to me like rustyline is pushing a |
Maybe this is a |
No, I found the issue. Windows sends use rustyline::error::ReadlineError;
use rustyline::{DefaultEditor, Result};
use crossterm::terminal::*;
use crossterm::event::*;
fn main() -> Result<()> {
...
loop {
let readline = rl.readline(">> ");
enable_raw_mode();
let key = read();
disable_raw_mode();
println!("Key: {:?}", key);
...
}
...
} I found that on Windows I get:
and on Linux (even WSL) it blocks because there is no next key event:
|
Bingo:
|
I built scryer-prolog from very close to
master
in--release
mode, both with Clang and GCC toolchains and in both cases the repl does not wait for user input on listing more answers. As I press Enter on the query, the, ... .
is printed instantly:My environment is Windows 11, using MSYS2 CLANG64/MINGW64.
The text was updated successfully, but these errors were encountered: