about summary refs log tree commit diff stats
path: root/baremetal/ex7.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-01-23 08:45:51 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-23 08:45:51 -0800
commit63be7b7d0d5bb6e728d9afbb68e238fcd3bda3a7 (patch)
tree7f26c1430c53e0aec3cbe889bf80e70078db8506 /baremetal/ex7.mu
parent0f73127ef1eba0a8ea814c26115523da3590ffe2 (diff)
downloadmu-63be7b7d0d5bb6e728d9afbb68e238fcd3bda3a7.tar.gz
7548 - baremetal: better cursor management
Diffstat (limited to 'baremetal/ex7.mu')
-rw-r--r--baremetal/ex7.mu3
1 files changed, 2 insertions, 1 deletions
diff --git a/baremetal/ex7.mu b/baremetal/ex7.mu
index d604c95a..e50099c4 100644
--- a/baremetal/ex7.mu
+++ b/baremetal/ex7.mu
@@ -12,8 +12,9 @@
 
 fn main {
   var space/eax: grapheme <- copy 0x20
-  set-cursor-position 0, 0, 0, space
+  set-cursor-position 0, 0, 0
   {
+    show-cursor 0, space
     var key/eax: byte <- read-key 0
     {
       compare key, 0x68  # 'h'