Skip to content

Commit

Permalink
Update TerminalBuilder.java
Browse files Browse the repository at this point in the history
#519 : do not allow dumb terminal by default on windows, unless explicitely requested
  • Loading branch information
gnodet committed Mar 22, 2020
1 parent 9b7842b commit f71d2c0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ private Terminal doBuild() throws IOException {
exception.addSuppressed(t);
}
}
if (terminal == null && !jna && !jansi && (dumb == null || !dumb)) {
throw new IllegalStateException("Unable to create a system terminal. On windows, either "
+ "JNA or JANSI library is required. Make sure to add one of those in the classpath.");
}
} else {
if (terminal == null && jna) {
try {
Expand Down

0 comments on commit f71d2c0

Please sign in to comment.