about summary refs log tree commit diff stats
path: root/apps/print-file.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-08-01 23:06:41 -0700
committerKartik Agaram <vc@akkartik.com>2020-08-01 23:39:57 -0700
commit6b343a82f29b6dea219504504244591c3042df43 (patch)
tree91c63bd3d66d73aeb4e6714f1b6e5792620839b8 /apps/print-file.mu
parent59a2e363f5f818e3870a275efe375737a76009fa (diff)
downloadmu-6b343a82f29b6dea219504504244591c3042df43.tar.gz
6699 - start building out fake screen
We now have all existing apps and prototypes going through the dependency-injected
wrapper, even though it doesn't actually implement the fake screen yet.
Diffstat (limited to 'apps/print-file.mu')
-rw-r--r--apps/print-file.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/print-file.mu b/apps/print-file.mu
index 0fb21132..aed4579d 100644
--- a/apps/print-file.mu
+++ b/apps/print-file.mu
@@ -14,7 +14,7 @@ $main-body: {
     compare n, 1
     {
       break-if->
-      print-string-to-screen "usage: cat <filename>\n"
+      print-string 0, "usage: cat <filename>\n"
       break $main-body
     }
     {
@@ -31,7 +31,7 @@ $main-body: {
         var c/eax: byte <- read-byte-buffered in-addr
         compare c, 0xffffffff  # EOF marker
         break-if-=
-        print-byte-to-screen c
+        print-byte 0, c
         loop
       }
     }