From b22e6ebfe2b4bd3533495a71b39a14c5ed8eb831 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 17 Jul 2021 00:23:52 -0700 Subject: . --- shell/global.mu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/global.mu b/shell/global.mu index 8c44537b..196f2090 100644 --- a/shell/global.mu +++ b/shell/global.mu @@ -37,13 +37,13 @@ fn load-globals in: (addr handle cell), self: (addr global-table) { var _curr/eax: (addr cell) <- lookup *curr-ah var curr/ecx: (addr cell) <- copy _curr remaining-ah <- get remaining, right - draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, " ", 2/fg 0/bg var name-ah/eax: (addr handle cell) <- get curr, left var name/eax: (addr cell) <- lookup *name-ah var name-data-ah/eax: (addr handle stream byte) <- get name, text-data var _name-data/eax: (addr stream byte) <- lookup *name-data-ah var name-data/edx: (addr stream byte) <- copy _name-data rewind-stream name-data + draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, " ", 3/fg 0/bg draw-stream-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, name-data, 3/fg, 0/bg var value-ah/eax: (addr handle cell) <- get curr, right var value/eax: (addr cell) <- lookup *value-ah @@ -113,7 +113,7 @@ fn write-globals out: (addr stream byte), _self: (addr global-table) { write out, " ))\n" } -# globals layout: 1 char padding, 41 code, 1 padding, 41 code, 1 padding = 85 chars +# globals layout: 1 char padding, 41 code, 1 padding, 41 code, 1 padding = 85 chars fn render-globals screen: (addr screen), _self: (addr global-table), show-cursor?: boolean { clear-rect screen, 0/xmin, 0/ymin, 0x55/xmax, 0x2f/ymax=screen-height-without-menu, 0xdc/bg=green-bg var self/esi: (addr global-table) <- copy _self -- cgit 1.4.1-2-gfad0