{ void mouse_report(struct tty_struct *tty, int butt, int mrx, int mry) char buf[8]; sprintf(buf, "\033[M%c%c%c", (char)(' ' + butt), (char)('!' + mrx), (char)('!' + mry)); respond_string(buf, tty); } Register(#27 '\[M[ -/][!-~][!-~]', MouseClicked); // [#27 '[' 'M' (range " " "/") (range "!" "~") (range "!" "~")]