Simplify Mod1 logic in kpress(), eliminating locals and a memcpy.
Avoid buffer overrun in kpress() and remove limit on shortcut strings.
New ttysend() function calls ttywrite() and techo(). Honor MODE_ECHO when pasting in selnotify().
Avoid buffer overrun in bpress()

Use correct type for Mousekey.b (XButtonEvent.button).
Merge branch 'master' into workspace