about summary refs log tree commit diff stats
path: root/prototypes/browse/27
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-16 18:54:12 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-16 18:54:12 -0700
commite403d15732e62fc9f1940ef14dc3b46bb11f5201 (patch)
tree81e8d387fe26be18f986fece6766c69c8ad57a2e /prototypes/browse/27
parent797c93e054d210a6d595f0b57fd3d9adb9669d8c (diff)
downloadmu-e403d15732e62fc9f1940ef14dc3b46bb11f5201.tar.gz
6794 - cleaner interface for keyboard
So far I've been assuming that read-key only works for ascii, and that
I'd need to get more sophisticated both for multi-byte utf-8 and multi-byte
terminal escape codes like arrow keys. Rather to my surprise, both work
fine. We just need to adjust the types to reflect this fact.
Diffstat (limited to 'prototypes/browse/27')
-rw-r--r--prototypes/browse/27/main.mu2
1 files changed, 1 insertions, 1 deletions
diff --git a/prototypes/browse/27/main.mu b/prototypes/browse/27/main.mu
index c0d1dfd2..176c133e 100644
--- a/prototypes/browse/27/main.mu
+++ b/prototypes/browse/27/main.mu
@@ -14,7 +14,7 @@ fn main args: (addr array addr array byte) -> exit-status/ebx: int {
   normal-text
   {
     render fs, screen-position-state
-    var key/eax: byte <- read-key
+    var key/eax: grapheme <- read-key-from-real-keyboard
     compare key, 0x71  # 'q'
     loop-if-!=
   }
000 committer James Booth <boothj5@gmail.com> 2013-12-14 15:34:17 +0000 Added simple mock test, refactored roster' href='/danisanti/profani-tty/commit/src/xmpp/bookmark.h?id=107fdd355e487793e53799ce3ebed0659263a2f7'>107fdd35 ^
2837c405 ^
b9d29e9a ^

2837c405 ^


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