Skip to content

Commit

Permalink
TerminalBuilder now logs a warning for ignored attributes, fixes #29
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 4, 2016
1 parent 6285fdd commit 066491e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/jline/terminal/TerminalBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ private Terminal doBuild() throws IOException {
type = System.getenv("TERM");
}
if ((system != null && system) || (system == null && in == null && out == null)) {
if (attributes != null || size != null) {
Log.warn("Attributes and size fields are ignored when creating a system terminal");
}
//
// Cygwin support
//
Expand Down

0 comments on commit 066491e

Please sign in to comment.