version 1.48, 2015/11/14 11:45:43 |
version 1.49, 2015/11/16 22:57:51 |
|
|
* if necessary. If it is a UTF-8 key, split it and send it. |
* if necessary. If it is a UTF-8 key, split it and send it. |
*/ |
*/ |
justkey = (key & ~KEYC_ESCAPE); |
justkey = (key & ~KEYC_ESCAPE); |
if (key != KEYC_NONE && justkey < 0x7f) { |
if (key != KEYC_NONE && justkey <= 0x7f) { |
if (key & KEYC_ESCAPE) |
if (key & KEYC_ESCAPE) |
bufferevent_write(wp->event, "\033", 1); |
bufferevent_write(wp->event, "\033", 1); |
ud.data[0] = justkey; |
ud.data[0] = justkey; |