aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index dd4c627c..3beffcf3 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2558,6 +2558,15 @@ term_cursor_home(struct terminal *term)
}
void
+term_cursor_col(struct terminal *term, int col)
+{
+ xassert(col < term->cols);
+
+ term->grid->cursor.lcf = false;
+ term->grid->cursor.point.col = col;
+}
+
+void
term_cursor_left(struct terminal *term, int count)
{
int move_amount = min(term->grid->cursor.point.col, count);