diff options
author | nicm <nicm> | 2019-03-14 06:33:43 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-03-14 06:33:43 +0000 |
commit | 2fbd491ff0a6154ead554ae80fac647f7f8cd4f7 (patch) | |
tree | 9db12854d78a3a34d5b2e13045ca324bfe36851b /input.c | |
parent | 5755bfc619d9d638e82b53afc91cf06096f4dfd9 (diff) | |
download | rtmux-2fbd491ff0a6154ead554ae80fac647f7f8cd4f7.tar.gz rtmux-2fbd491ff0a6154ead554ae80fac647f7f8cd4f7.tar.bz2 rtmux-2fbd491ff0a6154ead554ae80fac647f7f8cd4f7.zip |
Add actual HPA (\033[`), the existing one is CHA. From Marc Reisner.
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -272,6 +272,7 @@ static const struct input_table_entry input_csi_table[] = { { 'S', "", INPUT_CSI_SU }, { 'X', "", INPUT_CSI_ECH }, { 'Z', "", INPUT_CSI_CBT }, + { '`', "", INPUT_CSI_HPA }, { 'b', "", INPUT_CSI_REP }, { 'c', "", INPUT_CSI_DA }, { 'c', ">", INPUT_CSI_DA_TWO }, @@ -1471,7 +1472,7 @@ input_csi_dispatch(struct input_ctx *ictx) case INPUT_CSI_HPA: n = input_get(ictx, 0, 1, 1); if (n != -1) - screen_write_cursormove(sctx, n - 1, -1, 0); + screen_write_cursormove(sctx, n - 1, -1, 1); break; case INPUT_CSI_ICH: n = input_get(ictx, 0, 1, 1); @@ -1540,7 +1541,7 @@ input_csi_dispatch(struct input_ctx *ictx) case INPUT_CSI_VPA: n = input_get(ictx, 0, 1, 1); if (n != -1) - screen_write_cursormove(sctx, -1, n - 1, 0); + screen_write_cursormove(sctx, -1, n - 1, 1); break; case INPUT_CSI_DECSCUSR: n = input_get(ictx, 0, 0, 0); |