Skip to content

Commit

Permalink
implemented missing functions to set the default text and background …
Browse files Browse the repository at this point in the history
…colors on Windows
  • Loading branch information
ghquant committed Jan 22, 2014
1 parent 9bab505 commit 682f9c3
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 682f9c3

Please sign in to comment.