aboutsummaryrefslogtreecommitdiff
path: root/sixel.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-07-01 08:09:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-01 08:09:44 +0000
commit94b9014f95ea38ad1e488f9c9d2a1905c87d0f52 (patch)
treea5f59e8b7037537b6b2bc92e9ffb18314d5f9480 /sixel.c
parentMerge branch 'vs15-16' (diff)
parentreaadme: add styled and colored underlines to the feature list (diff)
Merge branch 'curly-underlines'
Closes #828
Diffstat (limited to 'sixel.c')
-rw-r--r--sixel.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sixel.c b/sixel.c
index 279aef05..161eaad5 100644
--- a/sixel.c
+++ b/sixel.c
@@ -420,6 +420,8 @@ sixel_scroll_up(struct terminal *term, int rows)
}
}
+ term->bits_affecting_ascii_printer.sixels =
+ tll_length(term->grid->sixel_images) > 0;
term_update_ascii_printer(term);
verify_sixels(term);
}
@@ -444,6 +446,8 @@ sixel_scroll_down(struct terminal *term, int rows)
break;
}
+ term->bits_affecting_ascii_printer.sixels =
+ tll_length(term->grid->sixel_images) > 0;
term_update_ascii_printer(term);
verify_sixels(term);
}
@@ -852,6 +856,8 @@ sixel_overwrite_by_rectangle(
} else
_sixel_overwrite_by_rectangle(term, start, col, height, width, NULL, NULL);
+ term->bits_affecting_ascii_printer.sixels =
+ tll_length(term->grid->sixel_images) > 0;
term_update_ascii_printer(term);
}
@@ -908,6 +914,8 @@ sixel_overwrite_by_row(struct terminal *term, int _row, int col, int width)
}
}
+ term->bits_affecting_ascii_printer.sixels =
+ tll_length(term->grid->sixel_images) > 0;
term_update_ascii_printer(term);
}
@@ -1387,6 +1395,9 @@ sixel_unhook(struct terminal *term)
LOG_DBG("you now have %zu sixels in current grid",
tll_length(term->grid->sixel_images));
+
+ term->bits_affecting_ascii_printer.sixels =
+ tll_length(term->grid->sixel_images) > 0;
term_update_ascii_printer(term);
render_refresh(term);
}