From e996502f013f7b7060156b54feae5d9850aaf048 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 14 Nov 2020 20:27:43 -0800 Subject: 7237 Minor tweaks to get Mu shell running nicely on a Linux console atop Qemu. We also need to switch a few 256-color codes to 8-color mode. I'm not sure whether/how to patch the repo for those. --- 304screen.subx | 3 +++ apps/tile/value.mu | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/304screen.subx b/304screen.subx index e8bfc2a6..8a8df8f9 100644 --- a/304screen.subx +++ b/304screen.subx @@ -455,3 +455,6 @@ Esc: # (addr array byte) Terminal-filename: # (addr kernel-string) # "/dev/tty" 2f/slash 64/d 65/e 76/v 2f/slash 74/t 74/t 79/y 0/nul + # on Linux console +#? # "/dev/console" +#? 2f/slash 64/d 65/e 76/v 2f/slash 63/c 6f/o 6e/n 73/s 6f/o 6c/l 65/e 0/nul diff --git a/apps/tile/value.mu b/apps/tile/value.mu index cd3e1594..b866d5c5 100644 --- a/apps/tile/value.mu +++ b/apps/tile/value.mu @@ -127,7 +127,6 @@ fn render-array-at screen: (addr screen), row: int, col: int, _a: (addr array va fn render-screen screen: (addr screen), row: int, col: int, _target-screen: (addr screen) { reset-formatting screen - start-color screen, 0xf2, 7 move-cursor screen, row, col var target-screen/esi: (addr screen) <- copy _target-screen var ncols-a/ecx: (addr int) <- get target-screen, num-cols @@ -154,7 +153,6 @@ fn render-screen screen: (addr screen), row: int, col: int, _target-screen: (add } increment row # mutate arg move-cursor screen, row, col - start-color screen, 0xf2, 7 print-lower-border screen, *ncols-a } -- cgit 1.4.1-2-gfad0