aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-16 14:33:15 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-06-20 12:55:32 +0000
commit24f12c7b5e753a5152eac44da9024954d43250e9 (patch)
treec9a67157b139dcb33aa5ffcdb21d3947dc7f2114 /terminal.h
parentvt: split up action_param() to three separate functions (diff)
term: add term_cursor_col()
Set cursor column, absolute. term_cursor_to() needs to reload the current row pointer, and is thus not very effective when we only need to modify the column.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index abedf44d..ec0db44b 100644
--- a/terminal.h
+++ b/terminal.h
@@ -743,6 +743,7 @@ void term_erase_scrollback(struct terminal *term);
int term_row_rel_to_abs(const struct terminal *term, int row);
void term_cursor_home(struct terminal *term);
void term_cursor_to(struct terminal *term, int row, int col);
+void term_cursor_col(struct terminal *term, int col);
void term_cursor_left(struct terminal *term, int count);
void term_cursor_right(struct terminal *term, int count);
void term_cursor_up(struct terminal *term, int count);