diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-05-10 16:13:25 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-05-10 16:13:25 -0700 |
commit | 45bcfcfe10e6a2fbc8aa4a84f60ca7d39af14031 (patch) | |
tree | 5e3a328980c671a7f7c6fb119841be2142237293 /080display.cc | |
parent | a97a00df51316a9246a13f6efb17a8a8f97bbd51 (diff) | |
download | mu-45bcfcfe10e6a2fbc8aa4a84f60ca7d39af14031.tar.gz |
3849
Diffstat (limited to '080display.cc')
-rw-r--r-- | 080display.cc | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/080display.cc b/080display.cc index eb9cf0a9..691b6a00 100644 --- a/080display.cc +++ b/080display.cc @@ -84,25 +84,6 @@ case CLEAR_DISPLAY: { } :(before "End Primitive Recipe Declarations") -CLEAR_LINE_ON_DISPLAY, -:(before "End Primitive Recipe Numbers") -put(Recipe_ordinal, "clear-line-on-display", CLEAR_LINE_ON_DISPLAY); -:(before "End Primitive Recipe Checks") -case CLEAR_LINE_ON_DISPLAY: { - break; -} -:(before "End Primitive Recipe Implementations") -case CLEAR_LINE_ON_DISPLAY: { - CHECK_SCREEN; - int width = tb_width(); - for (int x = Display_column; x < width; ++x) { - tb_change_cell(x, Display_row, ' ', TB_WHITE, TB_BLACK); - } - tb_set_cursor(Display_column, Display_row); - break; -} - -:(before "End Primitive Recipe Declarations") PRINT_CHARACTER_TO_DISPLAY, :(before "End Primitive Recipe Numbers") put(Recipe_ordinal, "print-character-to-display", PRINT_CHARACTER_TO_DISPLAY); @@ -442,7 +423,26 @@ case INTERACTIONS_LEFT: { break; } -//: hack to make text-mode apps more responsive under Unix +//: hacks to make text-mode apps more responsive under Unix + +:(before "End Primitive Recipe Declarations") +CLEAR_LINE_ON_DISPLAY, +:(before "End Primitive Recipe Numbers") +put(Recipe_ordinal, "clear-line-on-display", CLEAR_LINE_ON_DISPLAY); +:(before "End Primitive Recipe Checks") +case CLEAR_LINE_ON_DISPLAY: { + break; +} +:(before "End Primitive Recipe Implementations") +case CLEAR_LINE_ON_DISPLAY: { + CHECK_SCREEN; + int width = tb_width(); + for (int x = Display_column; x < width; ++x) { + tb_change_cell(x, Display_row, ' ', TB_WHITE, TB_BLACK); + } + tb_set_cursor(Display_column, Display_row); + break; +} :(before "End Primitive Recipe Declarations") CLEAR_DISPLAY_FROM, |