Skip to content

Commit 9477b53

Browse files
committed
Expose a isInstalled() method
1 parent 8be96cc commit 9477b53

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/fusesource/jansi/AnsiConsole.java

+7
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,13 @@ synchronized static public void systemReinstall() {
285285
}
286286
}
287287

288+
/**
289+
* check if the streams have been installed or not
290+
*/
291+
synchronized public static boolean isInstalled() {
292+
return installed > 0;
293+
}
294+
288295
/**
289296
* undo a previous {@link #systemInstall()}. If {@link #systemInstall()} was called
290297
* multiple times, {@link #systemUninstall()} must be called the same number of times before

0 commit comments

Comments
 (0)