about summary refs log tree commit diff stats
path: root/apps/tui.mu
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tui.mu')
-rw-r--r--apps/tui.mu4
1 files changed, 3 insertions, 1 deletions
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
 }
up.py?id=27eec7c6b53303acfd7713f7cc696ea50894a6b1'>27eec7c6 ^
d1a1173d ^







b3660b9a ^
d1a1173d ^
3b96a37f ^




4feb2e15 ^
3b96a37f ^


3b96a37f ^
8a5944e1 ^

3cd8a402 ^


d1a1173d ^








d1a1173d ^
e6b847b3 ^
225aa78f ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50