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.
This commit is contained in:
parent
b4cc38f943
commit
d25d0ca1a3
7 changed files with 34 additions and 8 deletions
|
|
@ -284,7 +284,7 @@ extract(int canblock)
|
|||
}
|
||||
}else if(i == Skeyboard){
|
||||
if(eslave[i].rpc == nil)
|
||||
eslave[i].rpc = startrpc(Trdkbd);
|
||||
eslave[i].rpc = startrpc(Trdkbd4);
|
||||
if(eslave[i].rpc){
|
||||
/* if ready, don't block in select */
|
||||
if(eslave[i].rpc->p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue