mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-10 08:20:59 -04:00
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.
This commit is contained in:
parent
d88bea5e22
commit
24f12c7b5e
2 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue