1 #pragma src "/sys/src/libdraw"
2 #pragma lib "libdraw.a"
4 typedef struct Keyboardctl Keyboardctl;
5 typedef struct Channel Channel;
9 Channel *c; /* chan(Rune)[20] */
12 int consfd; /* to cons file */
13 int ctlfd; /* to ctl file */
14 int pid; /* of slave proc */
18 extern Keyboardctl* initkeyboard(char*);
19 extern int ctlkeyboard(Keyboardctl*, char*);
20 extern void closekeyboard(Keyboardctl*);
23 KF= 0xF000, /* Rune: beginning of private Unicode space */
25 PF= Spec|0x20, /* num pad function key */
26 Kview= Spec|0x00, /* view (shift window up) */
27 /* KF|1, KF|2, ..., KF|0xC is F1, F2, ..., F12 */
44 Kscrolloneup= KF|0x20,
45 Kscrollonedown= KF|0x21,