mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
csi: add untested implementation of "horizontal index"
This commit is contained in:
parent
2fad8138e1
commit
92f0d64279
1 changed files with 11 additions and 0 deletions
11
csi.c
11
csi.c
|
|
@ -473,6 +473,17 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
break;
|
||||
}
|
||||
|
||||
case 'l': {
|
||||
/* Horizontal index */
|
||||
assert(false && "untested");
|
||||
int param = param_get(term, 0, 1);
|
||||
int col = term->cursor.col;
|
||||
|
||||
col = (col + param * 8) / 8 * 8;
|
||||
term_cursor_right(term, col - term->cursor.col);
|
||||
break;
|
||||
}
|
||||
|
||||
case 'r': {
|
||||
int start = param_get(term, 0, 1);
|
||||
int end = param_get(term, 1, term->rows);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue