We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80a3799 commit 5f5f95cCopy full SHA for 5f5f95c
src/main/java/org/fusesource/jansi/AnsiConsole.java
@@ -508,8 +508,7 @@ public static PrintStream sysErr() {
508
* @see #systemUninstall()
509
*/
510
synchronized static public void systemInstall() {
511
- installed++;
512
- if (installed == 1) {
+ if (installed == 0) {
513
initStreams();
514
try {
515
((AnsiPrintStream) out).install();
@@ -520,6 +519,7 @@ synchronized static public void systemInstall() {
520
519
System.setOut(out);
521
System.setErr(err);
522
}
+ installed++;
523
524
525
/**
0 commit comments