Skip to content

Commit

Permalink
Fix Windows input issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jun 2, 2021
1 parent 27ba1cb commit e58f22f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<Connection>() {
@Override
Expand Down

0 comments on commit e58f22f

Please sign in to comment.