diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-02-23 08:58:43 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-02-23 08:58:43 -0800 |
commit | 7d34b82a59581dad6c81adc851461193d015695c (patch) | |
tree | 4fe7bfdf973fdd891c131077d9228b697c1f27b3 /baremetal | |
parent | 8cf66cb2a2b4bd74b5c6ee89710346ac5c634529 (diff) | |
download | mu-7d34b82a59581dad6c81adc851461193d015695c.tar.gz |
7796
Diffstat (limited to 'baremetal')
-rw-r--r-- | baremetal/shell/sandbox.mu | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/baremetal/shell/sandbox.mu b/baremetal/shell/sandbox.mu index 195df8a7..92e88fc8 100644 --- a/baremetal/shell/sandbox.mu +++ b/baremetal/shell/sandbox.mu @@ -67,6 +67,7 @@ fn render-sandbox screen: (addr screen), _self: (addr sandbox), xmin: int, ymin: var value-ah/eax: (addr handle stream byte) <- get self, value var _value/eax: (addr stream byte) <- lookup *value-ah var value/esi: (addr stream byte) <- copy _value + rewind-stream value var done?/eax: boolean <- stream-empty? value compare done?, 0/false break-if-!= @@ -131,7 +132,7 @@ fn edit-sandbox _self: (addr sandbox), key: byte { run data, value, trace return } - # arrow keys + # tab var cursor-in-trace?/eax: (addr boolean) <- get self, cursor-in-trace? { compare g, 9/tab @@ -245,7 +246,7 @@ fn test-run-move-cursor-into-trace { check-background-color-in-screen-row screen, 7/bg=cursor, 0/y, " ", "F - test-run-move-cursor-into-trace/trace-0/cursor" check-screen-row screen, 1/y, "... ", "F - test-run-move-cursor-into-trace/trace-1" check-background-color-in-screen-row screen, 7/bg=cursor, 1/y, "||| ", "F - test-run-move-cursor-into-trace/trace-1/cursor" - check-screen-row screen, 2/y, " ", "F - test-run-move-cursor-into-trace/trace-2" + check-screen-row screen, 2/y, "=> 12 ", "F - test-run-move-cursor-into-trace/trace-2" check-background-color-in-screen-row screen, 7/bg=cursor, 2/y, " ", "F - test-run-move-cursor-into-trace/trace-2/cursor" # move cursor into input edit-sandbox sandbox, 9/tab @@ -255,6 +256,6 @@ fn test-run-move-cursor-into-trace { check-background-color-in-screen-row screen, 7/bg=cursor, 0/y, " | ", "F - test-run-move-cursor-into-trace/input-0/cursor" check-screen-row screen, 1/y, "... ", "F - test-run-move-cursor-into-trace/input-1" check-background-color-in-screen-row screen, 7/bg=cursor, 1/y, " ", "F - test-run-move-cursor-into-trace/input-1/cursor" - check-screen-row screen, 2/y, " ", "F - test-run-move-cursor-into-trace/input-2" + check-screen-row screen, 2/y, "=> 12 ", "F - test-run-move-cursor-into-trace/input-2" check-background-color-in-screen-row screen, 7/bg=cursor, 2/y, " ", "F - test-run-move-cursor-into-trace/input-2/cursor" } |