diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-27 23:28:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-27 23:28:51 +0000 |
commit | 043514a834a2605b2635f9121071a5e53951915d (patch) | |
tree | 0848bee4f6b75f4cf9bb3ccaf8c47018e352a112 /tty.c | |
parent | f47ab8f13fd76cb1761c74d1384ce7695ebbea44 (diff) |
Preliminary mouse support.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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; |