Skip to content
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

Fix Windows input issue #17619

Merged
merged 1 commit into from
Jun 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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