about summary refs log tree commit diff stats
path: root/080display.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-05-19 00:56:51 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-05-19 00:56:51 -0700
commit852d9b4393658d7a2e234e020f8fa0a4d8c16705 (patch)
tree917e4121ee09202fd843fa186d7300e563b50b44 /080display.cc
parent34171bdac5602dbbda862c5ad2e247a8dd5bf3a3 (diff)
downloadmu-852d9b4393658d7a2e234e020f8fa0a4d8c16705.tar.gz
3864
Being able to `cout` directly in raw mode isn't going to be more than a
neat gimmick; we need to maintain control over colors. (The sandbox/ app
was getting messed up because it just so happened that the next thing being
printed to screen after the `Run` button was clear-display-from, which
used `cout` with the same colors as the button.)
Diffstat (limited to '080display.cc')
-rw-r--r--080display.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/080display.cc b/080display.cc
index 9f808a0c..b17fc974 100644
--- a/080display.cc
+++ b/080display.cc
@@ -435,7 +435,7 @@ case CLEAR_LINE_ON_DISPLAY: {
   CHECK_SCREEN;
   int width = tb_width();
   for (int x = Display_column;  x < width;  ++x)
-    cout << ' ';
+    tb_print(' ', TB_WHITE, TB_BLACK);
   tb_set_cursor(Display_column, Display_row);
   break;
 }
@@ -460,7 +460,7 @@ case CLEAR_DISPLAY_FROM: {
   for (/*nada*/;  row < height;  ++row, column=left) {  // start column from left in every inner loop except first
     tb_set_cursor(column, row);
     for (/*nada*/;  column <= right;  ++column)
-      cout << ' ';
+      tb_print(' ', TB_WHITE, TB_BLACK);
   }
   tb_set_cursor(Display_column, Display_row);
   break;