diff --git a/src/main/java/com/sparrowwallet/sparrow/terminal/SparrowTerminal.java b/src/main/java/com/sparrowwallet/sparrow/terminal/SparrowTerminal.java index ab94f63e..1199e344 100644 --- a/src/main/java/com/sparrowwallet/sparrow/terminal/SparrowTerminal.java +++ b/src/main/java/com/sparrowwallet/sparrow/terminal/SparrowTerminal.java @@ -52,6 +52,9 @@ public class SparrowTerminal extends Application { AppServices.initialize(this, new TerminalInteractionServices()); + //Restore pre Java 22 behaviour, see https://www.oracle.com/java/technologies/javase/22-relnote-issues.html#JDK-8308591 + System.setProperty("jdk.console", "java.base"); + this.terminal = new DefaultTerminalFactory().createTerminal(); this.screen = new TerminalScreen(terminal); this.gui = new SparrowTextGui(this, screen, new DefaultWindowManager(), new EmptySpace(TextColor.ANSI.BLUE));