aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-22 18:33:50 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-22 18:33:50 +0000
commitba322c4eff1664bc5a0b1e667fb4404ba6b078ac (patch)
tree4e02085ea02243bc7e00921068bef39d2c1d67b8 /csi.c
parentcsi: *sigh* looks like e.g. neovim doesn't respect Se (diff)
csi: implement \E[Z - back tab
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/csi.c b/csi.c
index 19c0e8b3..4a4d321a 100644
--- a/csi.c
+++ b/csi.c
@@ -541,6 +541,14 @@ csi_dispatch(struct terminal *term, uint8_t final)
break;
}
+ case 'Z': {
+ /* Back tab */
+ int col = term->cursor.col;
+ col = (col - 8 + 7) / 8 * 8;
+ term_cursor_right(term, col - term->cursor.col);
+ break;
+ }
+
case 'h':
/* smir - insert mode enable */
assert(false && "untested");