diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-06-04 21:21:37 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-06-04 21:47:53 -0700 |
commit | 1f05bdcc3458c314c5bcbb390feca50b1c08832a (patch) | |
tree | 931c49e237a0df88d9c001355236f9c0bad1d79d /shell/environment.mu | |
parent | d40dfea3eda6b7679d7d6584e6ddf5ae7bd85736 (diff) | |
download | mu-1f05bdcc3458c314c5bcbb390feca50b1c08832a.tar.gz |
conditionally display cursor in sandbox
Diffstat (limited to 'shell/environment.mu')
-rw-r--r-- | shell/environment.mu | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/environment.mu b/shell/environment.mu index 9b2f015a..b63b33f1 100644 --- a/shell/environment.mu +++ b/shell/environment.mu @@ -23,10 +23,14 @@ fn render-environment screen: (addr screen), _self: (addr environment) { # sandbox layout: 1 padding, 41 code, 1 padding = 43 # total = 128 chars var self/esi: (addr environment) <- copy _self + var cursor-in-globals-a/eax: (addr boolean) <- get self, cursor-in-globals? + var cursor-in-globals?/eax: boolean <- copy *cursor-in-globals-a var globals/ecx: (addr global-table) <- get self, globals render-globals screen, globals var sandbox/edx: (addr sandbox) <- get self, sandbox - render-sandbox screen, sandbox, 0x55/sandbox-left-margin, 0/sandbox-top-margin, 0x80/screen-width, 0x2f/screen-height-without-menu + var cursor-in-sandbox?/ebx: boolean <- copy 1/true + cursor-in-sandbox? <- subtract cursor-in-globals? + render-sandbox screen, sandbox, 0x55/sandbox-left-margin, 0/sandbox-top-margin, 0x80/screen-width, 0x2f/screen-height-without-menu, cursor-in-sandbox? # modal if necessary { var cursor-in-function-modal-a/eax: (addr boolean) <- get self, cursor-in-function-modal? |