Skip to content

Commit

Permalink
Merge pull request #26 from ghquant/fix-Ansi-DefaultColors-Windows
Browse files Browse the repository at this point in the history
missing functions for default text and background colors on Windows
  • Loading branch information
chirino committed Apr 7, 2014
2 parents 5f202de + 682f9c3 commit c3b76bc
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,18 @@ protected void processSetBackgroundColor(int color) throws IOException {
applyAttribute();
}

@Override
protected void processDefaultTextColor() throws IOException {
info.attributes = (short)((info.attributes & ~0x000F ) | (originalColors & 0xF));
applyAttribute();
}

@Override
protected void processDefaultBackgroundColor() throws IOException {
info.attributes = (short)((info.attributes & ~0x00F0 ) | (originalColors & 0xF0));
applyAttribute();
}

@Override
protected void processAttributeRest() throws IOException {
info.attributes = (short)((info.attributes & ~0x00FF ) | originalColors);
Expand Down

0 comments on commit c3b76bc

Please sign in to comment.