about summary refs log tree commit diff stats
path: root/prototypes/browse/11.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-06-29 19:21:43 -0700
committerKartik Agaram <vc@akkartik.com>2020-06-29 19:21:43 -0700
commit8bd3c2b5a83d9e8b97472311491010d66a7b7584 (patch)
tree02354322b48589ec70da06211433aa36c50d758b /prototypes/browse/11.mu
parent6c7f7abdb867084f1e7555105cfa140eae4f6372 (diff)
downloadmu-8bd3c2b5a83d9e8b97472311491010d66a7b7584.tar.gz
6601
Diffstat (limited to 'prototypes/browse/11.mu')
-rw-r--r--prototypes/browse/11.mu18
1 files changed, 9 insertions, 9 deletions
diff --git a/prototypes/browse/11.mu b/prototypes/browse/11.mu
index ab7585b0..b4fa36ce 100644
--- a/prototypes/browse/11.mu
+++ b/prototypes/browse/11.mu
@@ -42,7 +42,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->=
@@ -64,7 +64,7 @@ $line-loop: {
     compare row, botrow
     break-if->=
     var col/edx: int <- copy leftcol
-    move-cursor row, col
+    move-cursor-on-screen row, col
 $char-loop: {
       compare col, rightcol
       break-if->=
@@ -79,7 +79,7 @@ $update-attributes:check-state: {
           {
             break-if-!=
             # r->current-state == 0 && c == '*' => bold text
-            start-bold
+            start-bold-on-screen
             copy-to *state, 1
             break $update-attributes:check-state
           }
@@ -87,7 +87,7 @@ $update-attributes:check-state: {
           {
             break-if-!=
             # r->current-state == 0 && c == '_' => bold text
-            start-bold
+            start-bold-on-screen
             copy-to *state, 1
             break $update-attributes:check-state
           }
@@ -99,8 +99,8 @@ $update-attributes:check-state: {
           {
             break-if-!=
             # r->current-state == 1 && c == '*' => normal text
-            reset-formatting
-            start-color 0xec, 7  # 236 = darkish gray
+            reset-formatting-on-screen
+            start-color-on-screen 0xec, 7  # 236 = darkish gray
             copy-to *state, 0
             break $update-attributes:check-state
           }
@@ -108,8 +108,8 @@ $update-attributes:check-state: {
           {
             break-if-!=
             # r->current-state == 1 && c == '_' => normal text
-            reset-formatting
-            start-color 0xec, 7  # 236 = darkish gray
+            reset-formatting-on-screen
+            start-color-on-screen 0xec, 7  # 236 = darkish gray
             copy-to *state, 0
             break $update-attributes:check-state
           }
@@ -134,7 +134,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->=