about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/tile/main.mu1
-rw-r--r--apps/tui.mu4
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/tile/main.mu b/apps/tile/main.mu
index 7c7065fc..a9d62bb4 100644
--- a/apps/tile/main.mu
+++ b/apps/tile/main.mu
@@ -75,4 +75,5 @@ fn render screen: (addr screen), buf: (addr gap-buffer) {
   move-cursor screen, start-row, start-col
   #
   render-gap-buffer screen, buf
+  flush-stdout
 }
diff --git a/apps/tui.mu b/apps/tui.mu
index a02d8fb0..4af4d405 100644
--- a/apps/tui.mu
+++ b/apps/tui.mu
@@ -14,6 +14,7 @@ fn main -> exit-status/ebx: int {
   start-blinking 0
   print-string 0, "Hello world!"
   reset-formatting 0
+  flush-stdout
   move-cursor 0, 6, 0x22
   print-string 0, "tty dimensions: "
   print-int32-hex 0, nrows
@@ -28,7 +29,8 @@ fn main -> exit-status/ebx: int {
   enable-screen-type-mode
   print-string 0, "You pressed "
   var x-int/eax: int <- copy x
-  print-int32-hex 0, x-int
+  print-int32-hex-to-real-screen x-int
   print-string 0, "\n"
+  flush-stdout
   exit-status <- copy 0
 }