From ba322c4eff1664bc5a0b1e667fb4404ba6b078ac Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 22 Jul 2019 20:33:50 +0200 Subject: csi: implement \E[Z - back tab --- csi.c | 8 ++++++++ foot.info | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) 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, -- cgit v1.3