Skip to content

Commit

Permalink
Fix compatibility with jansi 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Oct 14, 2015
1 parent bc4e70a commit 704633f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions jansi/src/main/java/org/fusesource/jansi/AnsiOutputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ private boolean processEscapeCommand(ArrayList<Object> options, int command) thr
count++;
int value = ((Integer)next).intValue();
if( 30 <= value && value <= 37 ) {
processSetForegroundColor(value-30, false);
processSetForegroundColor(value-30);
} else if( 40 <= value && value <= 47 ) {
processSetBackgroundColor(value-40, false);
processSetBackgroundColor(value-40);
} else if ( 90 <= value && value <= 97 ) {
processSetForegroundColor(value-90, true);
} else if ( 100 <= value && value <= 107 ) {
Expand Down Expand Up @@ -405,9 +405,17 @@ protected void processSetAttribute(int attribute) throws IOException {
protected static final int CYAN = 6;
protected static final int WHITE = 7;

protected void processSetForegroundColor(int color) throws IOException {
processSetForegroundColor(color, false);
}

protected void processSetForegroundColor(int color, boolean bright) throws IOException {
}

protected void processSetBackgroundColor(int color) throws IOException {
processSetBackgroundColor(color, false);
}

protected void processSetBackgroundColor(int color, boolean bright) throws IOException {
}

Expand Down

0 comments on commit 704633f

Please sign in to comment.