aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vt.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/vt.c b/vt.c
index 564c14e3..73bc6262 100644
--- a/vt.c
+++ b/vt.c
@@ -617,6 +617,17 @@ esc_dispatch(struct terminal *term, uint8_t final)
term_cursor_left(term, term->cursor.col);
break;
+ case 'H':
+ tll_foreach(term->tab_stops, it) {
+ if (it->item >= term->cursor.col) {
+ tll_insert_before(term->tab_stops, it, term->cursor.col);
+ break;
+ }
+ }
+
+ tll_push_back(term->tab_stops, term->cursor.col);
+ break;
+
case 'M':
term_reverse_index(term);
break;