summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-03-18 01:48:04 +0000
committerTiago Cunha <tcunha@gmx.com>2012-03-18 01:48:04 +0000
commit3b990ef6b20a5273a1f0c555cfa812d65312ceae (patch)
tree8ef47dbc17c636c3477bc96b9a57c137a5d5fe5a /input.c
parente920fa3e36dd1d25cb5ac138514180c39328b623 (diff)
Sync OpenBSD patchset 1053:
Respond to secondary DA requests.
Diffstat (limited to 'input.c')
-rw-r--r--input.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/input.c b/input.c
index b5afe4a0..521039d8 100644
--- a/input.c
+++ b/input.c
@@ -127,6 +127,7 @@ enum input_csi_type {
INPUT_CSI_CUP,
INPUT_CSI_CUU,
INPUT_CSI_DA,
+ INPUT_CSI_DA_TWO,
INPUT_CSI_DCH,
INPUT_CSI_DECSCUSR,
INPUT_CSI_DECSTBM,
@@ -166,6 +167,7 @@ const struct input_table_entry input_csi_table[] = {
{ 'P', "", INPUT_CSI_DCH },
{ 'Z', "", INPUT_CSI_CBT },
{ 'c', "", INPUT_CSI_DA },
+ { 'c', ">", INPUT_CSI_DA_TWO },
{ 'd', "", INPUT_CSI_VPA },
{ 'f', "", INPUT_CSI_CUP },
{ 'g', "", INPUT_CSI_TBC },
@@ -1097,6 +1099,16 @@ input_csi_dispatch(struct input_ctx *ictx)
break;
}
break;
+ case INPUT_CSI_DA_TWO:
+ switch (input_get(ictx, 0, 0, 0)) {
+ case 0:
+ input_reply(ictx, "\033[>0;95;0c");
+ break;
+ default:
+ log_debug("%s: unknown '%c'", __func__, ictx->ch);
+ break;
+ }
+ break;
case INPUT_CSI_DCH:
screen_write_deletecharacter(sctx, input_get(ictx, 0, 1, 1));
break;