From e58f22fa6857948ab94c61ff6c068ac7a3a8dcb3 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Wed, 2 Jun 2021 16:54:06 +1000 Subject: [PATCH] Fix Windows input issue --- devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java index 23f33c90c7318..bd56abca08b19 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java @@ -86,6 +86,7 @@ import io.quarkus.maven.MavenDevModeLauncher.Builder; import io.quarkus.maven.components.MavenVersionEnforcer; import io.quarkus.maven.utilities.MojoUtils; +import io.quarkus.utilities.OS; /** * The dev mojo, that runs a quarkus app in a forked process. A background compilation process is launched and any changes are @@ -401,6 +402,12 @@ public void execute() throws MojoFailureException, MojoExecutionException { * messes everything up. This attempts to fix that by saving the state so it can be restored */ private void saveTerminalState() { + if (OS.determineOS() == OS.WINDOWS) { + //this does not work on windows + //jansi creates an input pump thread, that will steal + //input from the dev mode process + return; + } try { new TerminalConnection(new Consumer() { @Override