typedef struct Keyboardct Keyboardctl;
Channel*c; /* chan(Rune) */
Once the Keyboardctl is set up a message containing a Rune will be sent on the Channel Keyboardctl.c to report each character read from the device.
Ctlkeyboard is used to set the state of the interface, typically to turn raw mode on and off. It writes the string msg to the control file associated with the device, which is assumed to be the regular device file name with the string ctl appended.
Closekeyboard closes the file descriptors associated with the keyboard, kills the slave processes, and frees the Keyboardctl structure.
Because the interface delivers complete runes, there is no way to report lesser actions such as shift keys or even individual bytes.