diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-03-15 10:05:50 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-03-15 10:05:50 +0000 |
commit | a3f0c81b3a8284fa1de1ddf06712d5642d285fbb (patch) | |
tree | 15a9690f3e09998abcd947b37d810a3116a9cb9b /usr.bin/tmux | |
parent | 7cd943bf4276dbfdadcfea1cdee5e678bcb3bd93 (diff) |
Respond to secondary DA requests.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/input.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index 6954dcd599a..bf0eb618855 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.49 2012/03/03 09:43:22 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.50 2012/03/15 10:05:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |