Fix mouse mode 1005 support

This commit is contained in:
Přemysl Eric Janouch 2016-10-04 13:16:09 +02:00
parent 4282f3715c
commit e13db07eac
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 2 deletions

View File

@ -1130,8 +1130,7 @@ peekkey_mouse (termo_t *tk, termo_key_t *key, size_t *nbytep)
{
uint32_t b, x, y;
// TODO: Add some API to switch on 1005 mode support
if (false)
if (tk->mouse_proto == TERMO_MOUSE_PROTO_UTF8)
{
const unsigned char *buff = tk->buffer + tk->buffstart;
size_t len = tk->buffcount;