summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-27 23:28:51 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-27 23:28:51 +0000
commit043514a834a2605b2635f9121071a5e53951915d (patch)
tree0848bee4f6b75f4cf9bb3ccaf8c47018e352a112 /tty.c
parentf47ab8f13fd76cb1761c74d1384ce7695ebbea44 (diff)
Preliminary mouse support.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index c3e8850e..e0f0249e 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.6 2007-11-27 23:01:27 nicm Exp $ */
+/* $Id: tty.c,v 1.7 2007-11-27 23:28:51 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -324,7 +324,15 @@ tty_vwrite(struct tty *tty, int cmd, va_list ap)
case TTY_KKEYPADON:
if (keypad_xmit != NULL)
tty_puts(tty, keypad_xmit);
+ break;
#endif
+ case TTY_MOUSEOFF:
+ if (key_mouse != NULL)
+ tty_puts(tty, "\e[?1000l");
+ break;
+ case TTY_MOUSEON:
+ if (key_mouse != NULL)
+ tty_puts(tty, "\e[?1000h");
break;
case TTY_TITLE:
break;