I've attached a patch which implements this. The 't' group of escape
sequences are described as being for "window manipulation" in some
documentation, so that's why I picked WMN in the INPUT_CSI_WMN
identifier.
diff --git a/input.c b/input.c
index 259fad1..e27ecbb 100644
--- a/input.c
+++ b/input.c
@@ -154,6 +154,7 @@ enum input_csi_type {
INPUT_CSI_SM_PRIVATE,
INPUT_CSI_TBC,
INPUT_CSI_VPA,
+ INPUT_CSI_WMN,
};
/* Control (CSI) command table. */
@@ -188,6 +189,7 @@ const struct input_table_entry input_csi_table[] = {
{ 'q', " ", INPUT_CSI_DECSCUSR },
{ 'r', "", INPUT_CSI_DECSTBM },
{ 's', "", INPUT_CSI_SCP },
+ { 't', "", INPUT_CSI_WMN },
{ 'u', "", INPUT_CSI_RCP },
};
@@ -1117,6 +1119,13 @@ input_csi_dispatch(struct input_ctx *ictx)
m = input_get(ictx, 1, 1, 1);
screen_write_cursormove(sctx, m - 1, n - 1);
break;
+ case INPUT_CSI_WMN:
+ m = 0;
+ while ((n = input_get(ictx, m++, 0, -1)) != -1) {
+ if (n == 18)
+ input_reply(ictx, "\033[8;%d;%d", ictx->wp->sy,
ictx->wp->sx);
+ }
+ break;
case INPUT_CSI_CUU:
screen_write_cursorup(sctx, input_get(ictx, 0, 1, 1));
break;
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users