From 852d9b4393658d7a2e234e020f8fa0a4d8c16705 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 19 May 2017 00:56:51 -0700 Subject: 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.) --- 080display.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '080display.cc') 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; -- cgit 1.4.1-2-gfad0