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.
This commit is contained in:
parent
6ecece2e70
commit
e996502f01
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue