diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-03 12:47:01 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-03 12:47:01 +0000 |
| commit | 92f0d642795f3aa5dbe644f2fed0bd532418eba1 (patch) | |
| tree | ac54ec164a9fc68ee26aa1d2136ff3c3f3658b56 | |
| parent | csi: scroll region changes are now logged as debug again, rather than info (diff) | |
csi: add untested implementation of "horizontal index"
| -rw-r--r-- | csi.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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); |
