diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-06-29 19:21:43 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-06-29 19:21:43 -0700 |
commit | 8bd3c2b5a83d9e8b97472311491010d66a7b7584 (patch) | |
tree | 02354322b48589ec70da06211433aa36c50d758b /apps/browse.mu | |
parent | 6c7f7abdb867084f1e7555105cfa140eae4f6372 (diff) | |
download | mu-8bd3c2b5a83d9e8b97472311491010d66a7b7584.tar.gz |
6601
Diffstat (limited to 'apps/browse.mu')
-rw-r--r-- | apps/browse.mu | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/browse.mu b/apps/browse.mu index 7b402e33..70c9ca86 100644 --- a/apps/browse.mu +++ b/apps/browse.mu @@ -65,7 +65,7 @@ fn render in: (addr buffered-file), nrows: int, ncols: int { var leftcol/edx: int <- copy 5 # page-margin var rightcol/ebx: int <- copy leftcol rightcol <- add 0x40 # page-width = 64 characters - start-color 0xec, 7 # 236 = darkish gray + start-color-on-screen 0xec, 7 # 236 = darkish gray { compare rightcol, ncols break-if->= @@ -86,7 +86,7 @@ $line-loop: { compare row, botrow break-if->= var col/edx: int <- copy leftcol - move-cursor row, col + move-cursor-on-screen row, col { compare col, rightcol break-if->= @@ -116,7 +116,7 @@ $update-attributes:check-state: { { break-if-!= # r->current-state == 0 && c == '*' - start-bold + start-bold-on-screen copy-to *state, 1 break $update-attributes:check-state } @@ -124,7 +124,7 @@ $update-attributes:check-state: { { break-if-!= # r->current-state == 0 && c == '_' - start-bold + start-bold-on-screen copy-to *state, 1 break $update-attributes:check-state } @@ -136,7 +136,7 @@ $update-attributes:check-state: { { break-if-!= # r->current-state == 1 && c == '*' - reset-formatting + reset-formatting-on-screen copy-to *state, 0 break $update-attributes:check-state } @@ -144,7 +144,7 @@ $update-attributes:check-state: { { break-if-!= # r->current-state == 1 && c == '_' - reset-formatting + reset-formatting-on-screen copy-to *state, 0 break $update-attributes:check-state } @@ -159,7 +159,7 @@ fn clear toprow: int, leftcol: int, botrow: int, rightcol: int { compare row, botrow break-if->= var col/edx: int <- copy leftcol - move-cursor row, col + move-cursor-on-screen row, col { compare col, rightcol break-if->= |