diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-05-29 15:59:24 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-05-29 15:59:24 -0700 |
commit | 05fa1791c5ca74ec2c7b7bb3af25b06844676b46 (patch) | |
tree | d83ff4e3ea46ed4b0372c0bbf7fd9af62237ab8c | |
parent | ff2ee758185781080490851ae7d9e87ec17d851e (diff) | |
download | mu-05fa1791c5ca74ec2c7b7bb3af25b06844676b46.tar.gz |
6434
-rw-r--r-- | apps/browse.mu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/browse.mu b/apps/browse.mu index 222ac5cd..271d08d8 100644 --- a/apps/browse.mu +++ b/apps/browse.mu @@ -2,13 +2,13 @@ fn main args: (addr array (addr array byte)) -> exit-status/ebx: int { var filename/eax: (addr array byte) <- first-arg args - var file-contents/eax: (addr buffered-file) <- load-file filename -#? dump file-contents + var file/eax: (addr buffered-file) <- load-file filename +#? dump file #? flush-stdout enable-screen-grid-mode enable-keyboard-immediate-mode { - render file-contents, 5, 5, 30, 30 + render file, 5, 5, 30, 30 var key/eax: byte <- read-key compare key, 0x71 # 'q' loop-if-!= |