Prepare collapsible OSC 133 output for review

Use the parent output-range implementation and preserve source rows and columns when output is folded or wrapped. Clear stale exit-status presence on repeated D markers. Apply the requested coding style and add regressions for folded output selections and prompt properties.
This commit is contained in:
Michael Grant
2026-10-08 17:17:30 +02:00
parent 303ff3be8e
commit 0d65a0f60c
6 changed files with 680 additions and 334 deletions

View File

@@ -2084,8 +2084,10 @@ screen_write_clearendofscreen(struct screen_write_ctx *ctx, u_int bg)
ttyctx.bg = bg;
/* Erasing to the end clears the whole screen at 0,0. */
if (s->cx == 0 && s->cy == 0)
osc133 = input_osc_133_save_marker(ctx->owner, s);
if (s->cx == 0) {
if (s->cy == 0)
osc133 = input_osc_133_save_marker(ctx->owner, s);
}
/* Scroll into history if it is enabled and clearing entire screen. */
if (s->cx == 0 &&