summaryrefslogtreecommitdiffstats
path: root/sys/teken
diff options
context:
space:
mode:
Diffstat (limited to 'sys/teken')
-rw-r--r--sys/teken/teken.h1
-rw-r--r--sys/teken/teken_subr.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/sys/teken/teken.h b/sys/teken/teken.h
index aab037f..22b5745 100644
--- a/sys/teken/teken.h
+++ b/sys/teken/teken.h
@@ -97,6 +97,7 @@ typedef void tf_param_t(void *, int, unsigned int);
#define TP_SETBELLPD 6
#define TP_SETBELLPD_PITCH(pd) ((pd) >> 16)
#define TP_SETBELLPD_DURATION(pd) ((pd) & 0xffff)
+#define TP_MOUSE 7
typedef void tf_respond_t(void *, const void *, size_t);
typedef struct {
diff --git a/sys/teken/teken_subr.h b/sys/teken/teken_subr.h
index 32cae4d..b8ebcdc 100644
--- a/sys/teken/teken_subr.h
+++ b/sys/teken/teken_subr.h
@@ -932,6 +932,9 @@ teken_subr_reset_dec_mode(teken_t *t, unsigned int cmd)
case 47: /* Switch to alternate buffer. */
teken_printf("Switch to alternate buffer\n");
break;
+ case 1000: /* Mouse input. */
+ teken_funcs_param(t, TP_MOUSE, 0);
+ break;
default:
teken_printf("Unknown DECRST: %u\n", cmd);
}
@@ -1078,6 +1081,9 @@ teken_subr_set_dec_mode(teken_t *t, unsigned int cmd)
case 47: /* Switch to alternate buffer. */
teken_printf("Switch away from alternate buffer\n");
break;
+ case 1000: /* Mouse input. */
+ teken_funcs_param(t, TP_MOUSE, 1);
+ break;
default:
teken_printf("Unknown DECSET: %u\n", cmd);
}
OpenPOWER on IntegriCloud