diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-12-14 22:29:34 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-12-14 22:29:34 -0800 |
commit | cbe8bfd87a4273993647ecdcd821e59521122c57 (patch) | |
tree | 3028c950b9ff0ea37455614aab5a3939b80210cf | |
parent | 8c2e580e0ff80cf30b807d3ce17076a9ac2c0c25 (diff) | |
download | mu-cbe8bfd87a4273993647ecdcd821e59521122c57.tar.gz |
7354 - tile: stop trying to center menu
-rw-r--r-- | apps/tile/environment.mu | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu index d1c198c3..3517e0ef 100644 --- a/apps/tile/environment.mu +++ b/apps/tile/environment.mu @@ -1934,11 +1934,7 @@ fn render-function-menu _env: (addr environment) { start-reverse-video screen print-string screen, " ctrl-q " reset-formatting screen - print-string screen, " quit " - var sep-col/ecx: (addr int) <- get env, code-separator-col - var menu-start/ebx: int <- copy *sep-col - menu-start <- subtract 0x30 # 48 = half the size of the menu - move-cursor screen, *nrows, menu-start + print-string screen, " quit " start-reverse-video screen print-string screen, " ctrl-a " reset-formatting screen @@ -1954,7 +1950,7 @@ fn render-function-menu _env: (addr environment) { start-reverse-video screen print-string screen, " ctrl-e " reset-formatting screen - print-string screen, " ⏭ " + print-string screen, " ⏭ " start-reverse-video screen print-string screen, " ctrl-g " reset-formatting screen @@ -1962,7 +1958,7 @@ fn render-function-menu _env: (addr environment) { start-reverse-video screen print-string screen, " tab " reset-formatting screen - print-string screen, " go to sandbox " + print-string screen, " go to sandbox" } fn render-sandbox-menu _env: (addr environment) { @@ -1975,11 +1971,7 @@ fn render-sandbox-menu _env: (addr environment) { start-reverse-video screen print-string screen, " ctrl-q " reset-formatting screen - print-string screen, " quit " - var sep-col/ecx: (addr int) <- get env, code-separator-col - var menu-start/ebx: int <- copy *sep-col - menu-start <- subtract 0x48 # 72 = half the size of the menu - move-cursor screen, *nrows, menu-start + print-string screen, " quit " start-reverse-video screen print-string screen, " ctrl-a " reset-formatting screen @@ -1995,11 +1987,11 @@ fn render-sandbox-menu _env: (addr environment) { start-reverse-video screen print-string screen, " ctrl-e " reset-formatting screen - print-string screen, " ⏭ " + print-string screen, " ⏭ " start-reverse-video screen print-string screen, " ctrl-g " reset-formatting screen - print-string screen, " go " + print-string screen, " go to function " start-reverse-video screen print-string screen, " ctrl-l " reset-formatting screen @@ -2015,7 +2007,7 @@ fn render-sandbox-menu _env: (addr environment) { start-reverse-video screen print-string screen, " ctrl-d " reset-formatting screen - print-string screen, " define function " + print-string screen, " define function" } fn clear-canvas _env: (addr environment) { |