mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 12:26:45 +00:00
terminal: restore pre java 22 behaviour for system.console call
This commit is contained in:
parent
1adeef04db
commit
fad960c192
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ public class SparrowTerminal extends Application {
|
||||||
|
|
||||||
AppServices.initialize(this, new TerminalInteractionServices());
|
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.terminal = new DefaultTerminalFactory().createTerminal();
|
||||||
this.screen = new TerminalScreen(terminal);
|
this.screen = new TerminalScreen(terminal);
|
||||||
this.gui = new SparrowTextGui(this, screen, new DefaultWindowManager(), new EmptySpace(TextColor.ANSI.BLUE));
|
this.gui = new SparrowTextGui(this, screen, new DefaultWindowManager(), new EmptySpace(TextColor.ANSI.BLUE));
|
||||||
|
|
Loading…
Reference in a new issue