aboutsummaryrefslogtreecommitdiff
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
parentcsi: *sigh* looks like e.g. neovim doesn't respect Se (diff)
csi: implement \E[Z - back tab
-rw-r--r--csi.c8
-rw-r--r--foot.info3
2 files changed, 10 insertions, 1 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");
diff --git a/foot.info b/foot.info
index 4388df77..05224182 100644
--- a/foot.info
+++ b/foot.info
@@ -27,7 +27,8 @@ foot+base|foot base fragment,
acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
bel=^G,
blink=\E[5m,
- bold=\e[1m,
+ bold=\E[1m,
+ cbt=\E[Z,
civis=\E[?25l,
clear=\E[H\E[2J,
cnorm=\E[?12l\E[?25h,