about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--070display.cc1
-rw-r--r--074keyboard.mu1
2 files changed, 2 insertions, 0 deletions
diff --git a/070display.cc b/070display.cc
index f0e96f02..d420d2f8 100644
--- a/070display.cc
+++ b/070display.cc
@@ -190,6 +190,7 @@ case READ_KEY_FROM_KEYBOARD: {
   long long int found = false;
 //?   cerr << event_type << '\n'; //? 1
   if (event_type == TB_EVENT_KEY) {
+    if (event.key == TB_KEY_CTRL_C) tb_shutdown(), exit(1);
     result = event.key ? event.key : event.ch;
     found = true;
   }
diff --git a/074keyboard.mu b/074keyboard.mu
index 13068c12..7149a290 100644
--- a/074keyboard.mu
+++ b/074keyboard.mu
@@ -62,6 +62,7 @@ recipe send-keys-to-channel [
   {
     c:character, found?:boolean <- read-key keyboard:address
     loop-unless found?:boolean
+#?     print-integer screen:address, c:character #? 1
     print-character screen:address, c:character
     chan:address:channel <- write chan:address:channel, c:character
     # todo: eof
iv>
775f77c3 ^
3350c34a ^
775f77c3 ^

3350c34a ^
775f77c3 ^
































3350c34a ^
775f77c3 ^





3350c34a ^
775f77c3 ^


3350c34a ^
775f77c3 ^








3350c34a ^
775f77c3 ^


3350c34a ^
775f77c3 ^






3350c34a ^
775f77c3 ^


3350c34a ^
775f77c3 ^






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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101