From 3d1c4216ede8c628558c9fe700fb2be1aa08b473 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 2 Nov 2020 21:24:53 -0800 Subject: 7162 --- html/apps/tui.mu.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'html/apps/tui.mu.html') diff --git a/html/apps/tui.mu.html b/html/apps/tui.mu.html index f81ce1f8..b5fc6487 100644 --- a/html/apps/tui.mu.html +++ b/html/apps/tui.mu.html @@ -62,33 +62,33 @@ if ('onhashchange' in window) { 4 # $ ./translate_mu apps/tui.mu 5 # $ ./a.elf 6 - 7 fn main -> exit-status/ebx: int { + 7 fn main -> _/ebx: int { 8 var nrows/eax: int <- copy 0 9 var ncols/ecx: int <- copy 0 10 nrows, ncols <- screen-size 0 11 enable-screen-grid-mode -12 move-cursor 0, 5, 0x22 -13 start-color 0, 1, 0x7a -14 start-blinking 0 -15 print-string 0, "Hello world!" -16 reset-formatting 0 -17 move-cursor 0, 6, 0x22 -18 print-string 0, "tty dimensions: " -19 print-int32-hex 0, nrows -20 print-string 0, " rows, " -21 print-int32-hex 0, ncols -22 print-string 0, " rows\n" +12 move-cursor 0, 5, 0x22 +13 start-color 0, 1, 0x7a +14 start-blinking 0 +15 print-string 0, "Hello world!" +16 reset-formatting 0 +17 move-cursor 0, 6, 0x22 +18 print-string 0, "tty dimensions: " +19 print-int32-hex 0, nrows +20 print-string 0, " rows, " +21 print-int32-hex 0, ncols +22 print-string 0, " rows\n" 23 -24 print-string 0, "press a key to see its code: " +24 print-string 0, "press a key to see its code: " 25 enable-keyboard-immediate-mode 26 var x/eax: grapheme <- read-key-from-real-keyboard 27 enable-keyboard-type-mode 28 enable-screen-type-mode -29 print-string 0, "You pressed " +29 print-string 0, "You pressed " 30 var x-int/eax: int <- copy x -31 print-int32-hex 0, x-int -32 print-string 0, "\n" -33 exit-status <- copy 0 +31 print-int32-hex 0, x-int +32 print-string 0, "\n" +33 return 0 34 } -- cgit 1.4.1-2-gfad0