aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-05-18 23:45:03 -0400
committerRuss Cox <rsc@swtch.com>2020-05-18 23:45:03 -0400
commitd25d0ca1a3682d97df67f62789767562aa5bf1b3 (patch)
tree95e736b3189ffd5dbb74fb74c41eb8ac450de8f5 /include
parentb4cc38f94321c71e8d19fbbd4691e72f7c0d817b (diff)
downloadplan9port-d25d0ca1a3682d97df67f62789767562aa5bf1b3.tar.gz
plan9port-d25d0ca1a3682d97df67f62789767562aa5bf1b3.tar.bz2
plan9port-d25d0ca1a3682d97df67f62789767562aa5bf1b3.zip
devdraw, libdraw: handle keyboard runes > U+FFFF
Runes in Plan 9 were limited to the 16-bit BMP when I drew up the RPC protocol between graphical programs and devdraw a long time ago. Now that they can be 32-bit, use a 32-bit wire encoding too. A new message number to avoid problems with other clients (like 9fans.net/go). Add keyboard shortcut alt : , for U+1F602, face with tears of joy, to test that it all works.
Diffstat (limited to 'include')
-rw-r--r--include/drawfcall.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/drawfcall.h b/include/drawfcall.h
index 8b9656d5..b8535fb6 100644
--- a/include/drawfcall.h
+++ b/include/drawfcall.h
@@ -22,8 +22,11 @@ tag[1] Rbouncemouse
tag[1] Trdkbd
tag[1] Rrdkbd rune[2]
+tag[1] Trdkbd4
+tag[1] Rrdkbd4 rune[4]
+
tag[1] Tlabel label[s]
-tag[1] Rlabel
+tag[1] Rlabel
tag[1] Tctxt wsysid[s]
tag[1] Rctxt
@@ -31,7 +34,7 @@ tag[1] Rctxt
tag[1] Tinit winsize[s] label[s] font[s]
tag[1] Rinit
-tag[1] Trdsnarf
+tag[1] Trdsnarf
tag[1] Rrdsnarf snarf[s]
tag[1] Twrsnarf snarf[s]
@@ -47,7 +50,7 @@ tag[1] Ttop
tag[1] Rtop
tag[1] Tresize rect[4*4]
-tag[1] Rresize
+tag[1] Rresize
*/
@@ -99,6 +102,8 @@ enum {
Rcursor2,
Tctxt = 30,
Rctxt,
+ Trdkbd4 = 32,
+ Rrdkbd4,
Tmax,
};