diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-06-29 19:14:19 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-06-29 19:14:19 -0700 |
commit | 222548962c9ed85c9d5057757287d0b0b069af02 (patch) | |
tree | 25f2d36f9fd1b175523e603685d2173c3e38171e /apps/tui.mu | |
parent | 12e2b93a4bec024f3000adafb013d9490c821ae8 (diff) | |
download | mu-222548962c9ed85c9d5057757287d0b0b069af02.tar.gz |
6599
Diffstat (limited to 'apps/tui.mu')
-rw-r--r-- | apps/tui.mu | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/tui.mu b/apps/tui.mu index 07d3147e..cde83b2b 100644 --- a/apps/tui.mu +++ b/apps/tui.mu @@ -12,22 +12,22 @@ fn main -> exit-status/ebx: int { move-cursor 5, 35 start-color 1, 0x7a start-blinking - print-string "Hello world!" + print-string-to-screen "Hello world!" reset-formatting move-cursor 6, 35 - print-string "tty dimensions: " + print-string-to-screen "tty dimensions: " print-int32-to-screen nrows - print-string " rows, " + print-string-to-screen " rows, " print-int32-to-screen ncols - print-string " rows\n" + print-string-to-screen " rows\n" - print-string "press a key to see its code: " + print-string-to-screen "press a key to see its code: " enable-keyboard-immediate-mode var x/eax: byte <- read-key enable-keyboard-type-mode enable-screen-type-mode - print-string "You pressed " + print-string-to-screen "You pressed " print-int32-to-screen x - print-string "\n" + print-string-to-screen "\n" exit-status <- copy 0 } |