stub maven support
[fanfix.git] / src / jexer / io / ECMA48Screen.java
index 77d48461fe7039469d1c68c9ea396e7c49676654..9daf6de2064428c063aa0da556b7a0664ef6fd30 100644 (file)
@@ -40,7 +40,7 @@ public final class ECMA48Screen extends Screen {
     /**
      * Emit debugging to stderr.
      */
-    private boolean debugToStderr;
+    private boolean debugToStderr = false;
 
     /**
      * We call terminal.cursor() so need the instance.
@@ -53,8 +53,6 @@ public final class ECMA48Screen extends Screen {
      * @param terminal ECMA48Terminal to use
      */
     public ECMA48Screen(final ECMA48Terminal terminal) {
-        debugToStderr = false;
-
         this.terminal = terminal;
 
         // Query the screen size
@@ -137,8 +135,8 @@ public final class ECMA48Screen extends Screen {
                     && (lCell.isBlink() == lastAttr.isBlink())
                 ) {
                     // Both colors changed, attributes the same
-                    sb.append(terminal.color(lCell.getForeColor(),
-                            lCell.getBackColor()));
+                    sb.append(terminal.color(lCell.isBold(),
+                            lCell.getForeColor(), lCell.getBackColor()));
 
                     if (debugToStderr) {
                         System.err.printf("1 Change only fore/back colors\n");
@@ -169,7 +167,8 @@ public final class ECMA48Screen extends Screen {
                 ) {
 
                     // Attributes same, foreColor different
-                    sb.append(terminal.color(lCell.getForeColor(), true));
+                    sb.append(terminal.color(lCell.isBold(),
+                            lCell.getForeColor(), true));
 
                     if (debugToStderr) {
                         System.err.printf("3 Change foreColor\n");
@@ -182,7 +181,8 @@ public final class ECMA48Screen extends Screen {
                     && (lCell.isBlink() == lastAttr.isBlink())
                 ) {
                     // Attributes same, backColor different
-                    sb.append(terminal.color(lCell.getBackColor(), false));
+                    sb.append(terminal.color(lCell.isBold(),
+                            lCell.getBackColor(), false));
 
                     if (debugToStderr) {
                         System.err.printf("4 Change backColor\n");