diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-05-30 01:13:04 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-05-30 01:13:04 -0700 |
commit | 7bdd25fa397219c0952878fcd6f9bfb1e4f194ce (patch) | |
tree | b1482659f1eb10ed57b218bfbe52d327f1ac0bd8 /apps | |
parent | 1bfee0954cb703d92c44ae9f098f5d7c738c8a30 (diff) | |
download | mu-7bdd25fa397219c0952878fcd6f9bfb1e4f194ce.tar.gz |
6446
Diffstat (limited to 'apps')
-rw-r--r-- | apps/browse.mu | 7 | ||||
-rwxr-xr-x | apps/print-file | bin | 48625 -> 0 bytes |
2 files changed, 1 insertions, 6 deletions
diff --git a/apps/browse.mu b/apps/browse.mu index 0f90aa13..5a490848 100644 --- a/apps/browse.mu +++ b/apps/browse.mu @@ -21,7 +21,7 @@ fn main args: (addr array (addr array byte)) -> exit-status/ebx: int { # decide how to lay out pages on screen fn render in: (addr buffered-file), nrows: int, ncols: int { - # Fit n pages on screen on separate columns, each wide enough to read + # Fit multiple pages on screen on separate columns, each wide enough to read # comfortably. # Pages are separated horizontally by a 'page margin'. Among other reasons, # this allows the odd line to bleed out on the right if necessary. @@ -30,7 +30,6 @@ fn render in: (addr buffered-file), nrows: int, ncols: int { # top-margin # page-margin # text-width - var npages/eax: int <- num-pages ncols, 0x40, 5 # text-width, page-margin var toprow/eax: int <- copy 2 # top-margin var botrow/ecx: int <- copy nrows var leftcol/edx: int <- copy 5 # page-margin @@ -48,10 +47,6 @@ fn render in: (addr buffered-file), nrows: int, ncols: int { } } -fn num-pages ncols: int, text-width: int, page-margin: int -> result/eax: int { - result <- copy 3 -} - fn render-page in: (addr buffered-file), toprow: int, leftcol: int, botrow: int, rightcol: int { clear toprow, leftcol, botrow, rightcol # render screen rows diff --git a/apps/print-file b/apps/print-file deleted file mode 100755 index c9719a45..00000000 --- a/apps/print-file +++ /dev/null Binary files differ |