Skip to content

Commit

Permalink
Merge pull request #17619 from stuartwdouglas/win-testing
Browse files Browse the repository at this point in the history
Fix Windows input issue
  • Loading branch information
stuartwdouglas authored Jun 8, 2021
2 parents a5d773f + e58f22f commit 96a1a52
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 96a1a52

Please sign in to comment.