aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-06-27 13:29:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-06-27 13:29:47 +0000
commit186a07c364536dd482938ba9a0ce0a4d7e6d74c6 (patch)
tree80a271a9ac2e56302a0c4291555b35dada12fd94 /terminal.c
parentterm: erasing characters now splits sixels instead of deleting them (diff)
sixel: split -> overwrite
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/terminal.c b/terminal.c
index c41173a3..504dec57 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1599,7 +1599,7 @@ term_erase(struct terminal *term, const struct coord *start, const struct coord
if (start->row == end->row) {
struct row *row = grid_row(term->grid, start->row);
erase_cell_range(term, row, start->col, end->col);
- sixel_split_by_row(term, start->row, start->col, end->col - start->col + 1);
+ sixel_overwrite_by_row(term, start->row, start->col, end->col - start->col + 1);
return;
}
@@ -1607,14 +1607,15 @@ term_erase(struct terminal *term, const struct coord *start, const struct coord
erase_cell_range(
term, grid_row(term->grid, start->row), start->col, term->cols - 1);
- sixel_split_by_row(term, start->row, start->col, term->cols - start->col);
+ sixel_overwrite_by_row(term, start->row, start->col, term->cols - start->col);
for (int r = start->row + 1; r < end->row; r++)
erase_line(term, grid_row(term->grid, r));
- sixel_split_by_rectangle(term, start->row + 1, 0, end->row - start->row, term->cols);
+ sixel_overwrite_by_rectangle(
+ term, start->row + 1, 0, end->row - start->row, term->cols);
erase_cell_range(term, grid_row(term->grid, end->row), 0, end->col);
- sixel_split_by_row(term, end->row, 0, end->col + 1);
+ sixel_overwrite_by_row(term, end->row, 0, end->col + 1);
}
int
@@ -2383,7 +2384,7 @@ term_print(struct terminal *term, wchar_t wc, int width)
print_linewrap(term);
print_insert(term, width);
- sixel_split_at_cursor(term);
+ sixel_overwrite_at_cursor(term);
/* *Must* get current cell *after* linewrap+insert */
struct row *row = term->grid->cur_row;