diff --git a/jansi/src/main/java/org/fusesource/jansi/WindowsAnsiOutputStream.java b/jansi/src/main/java/org/fusesource/jansi/WindowsAnsiOutputStream.java index e0c4fd2a..e96ff4d9 100644 --- a/jansi/src/main/java/org/fusesource/jansi/WindowsAnsiOutputStream.java +++ b/jansi/src/main/java/org/fusesource/jansi/WindowsAnsiOutputStream.java @@ -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);