diff options
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: input.c,v 1.41 2007-11-27 23:01:27 nicm Exp $ */ +/* $Id: input.c,v 1.42 2007-11-27 23:28:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -913,6 +913,10 @@ input_handle_sequence_sm(struct input_ctx *ictx) s->mode |= MODE_CURSOR; input_write(ictx, TTY_CURSORON); break; + case 1000: + s->mode |= MODE_MOUSE; + input_write(ictx, TTY_MOUSEON); + break; default: log_debug("unknown SM [%hhu]: %u", ictx->private, n); break; @@ -954,6 +958,10 @@ input_handle_sequence_rm(struct input_ctx *ictx) s->mode &= ~MODE_CURSOR; input_write(ictx, TTY_CURSOROFF); break; + case 1000: + s->mode &= ~MODE_MOUSE; + input_write(ictx, TTY_MOUSEOFF); + break; default: log_debug("unknown RM [%hhu]: %u", ictx->private, n); break; |