diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-08-01 23:06:41 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-08-01 23:39:57 -0700 |
commit | 6b343a82f29b6dea219504504244591c3042df43 (patch) | |
tree | 91c63bd3d66d73aeb4e6714f1b6e5792620839b8 /prototypes/browse/17-file-state-broken/main.mu | |
parent | 59a2e363f5f818e3870a275efe375737a76009fa (diff) | |
download | mu-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 'prototypes/browse/17-file-state-broken/main.mu')
-rw-r--r-- | prototypes/browse/17-file-state-broken/main.mu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/prototypes/browse/17-file-state-broken/main.mu b/prototypes/browse/17-file-state-broken/main.mu index 44eccc2e..a273c0fe 100644 --- a/prototypes/browse/17-file-state-broken/main.mu +++ b/prototypes/browse/17-file-state-broken/main.mu @@ -10,7 +10,7 @@ fn main args: (addr array (addr array byte)) -> exit-status/ebx: int { # initialize screen state from screen size var nrows/eax: int <- copy 0 var ncols/ecx: int <- copy 0 - nrows, ncols <- screen-size + nrows, ncols <- screen-size 0 var screen-position-state-storage: screen-position-state var screen-position-state: (addr screen-position-state) init-screen-position-state screen-position-state, nrows, ncols @@ -44,8 +44,8 @@ fn render-normal fs: (addr file-state), state: (addr screen-position-state) { # if (c == EOF) break compare c, 0xffffffff # EOF marker break-if-= - # if (c == '*') start-bold-on-screen, render-until-asterisk(fs, state), reset - # else if (c == '_') start-bold-on-screen, render-until-underscore(fs, state), reset + # if (c == '*') start-bold 0,, render-until-asterisk(fs, state), reset + # else if (c == '_') start-bold 0,, render-until-underscore(fs, state), reset # else if (c == '#' and fs is at start of line) compute-color, start color, render-header-line(fs, state), reset # else add-char(state, c) } |