aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-03 19:16:41 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-03 19:16:41 +0000
commit90dadfcc228d890fb95cc7c210b24cd024f096ac (patch)
treefd3929dbf7e6fb9393125abf10d7a07e221bb52f /csi.c
parentlogging: disable debug logging by default (diff)
vt: implement (untested!) insert mode
\E4l is not horizontal index, but disable INSERT mode
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/csi.c b/csi.c
index 4be35c60..6fca2c24 100644
--- a/csi.c
+++ b/csi.c
@@ -484,16 +484,16 @@ csi_dispatch(struct terminal *term, uint8_t final)
break;
}
- case 'l': {
- /* Horizontal index */
+ case 'h':
+ /* smir - insert mode enable */
assert(false && "untested");
- int param = param_get(term, 0, 1);
- int col = term->cursor.col;
+ term->insert_mode = true;
+ break;
- col = (col + param * 8) / 8 * 8;
- term_cursor_right(term, col - term->cursor.col);
+ case 'l':
+ /* rmir - insert mode disable */
+ term->insert_mode = false;
break;
- }
case 'r': {
int start = param_get(term, 0, 1);