aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-03 12:47:01 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-03 12:47:01 +0000
commit92f0d642795f3aa5dbe644f2fed0bd532418eba1 (patch)
treeac54ec164a9fc68ee26aa1d2136ff3c3f3658b56 /csi.c
parentcsi: scroll region changes are now logged as debug again, rather than info (diff)
csi: add untested implementation of "horizontal index"
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/csi.c b/csi.c
index c849ed0d..56a4a83d 100644
--- a/csi.c
+++ b/csi.c
@@ -473,6 +473,17 @@ csi_dispatch(struct terminal *term, uint8_t final)
break;
}
+ case 'l': {
+ /* Horizontal index */
+ assert(false && "untested");
+ int param = param_get(term, 0, 1);
+ int col = term->cursor.col;
+
+ col = (col + param * 8) / 8 * 8;
+ term_cursor_right(term, col - term->cursor.col);
+ break;
+ }
+
case 'r': {
int start = param_get(term, 0, 1);
int end = param_get(term, 1, term->rows);