Add feature for progress bar and pass to outside terminal, GitHu issue

4972 from Eric Dorland.
This commit is contained in:
nicm
2026-04-22 07:25:17 +00:00
parent 7a0cc03532
commit bc15723f7f
6 changed files with 50 additions and 2 deletions

7
tty.c
View File

@@ -2931,3 +2931,10 @@ tty_clipboard_query(struct tty *tty)
evtimer_add(&tty->clipboard_timer, &tv);
}
}
void
tty_set_progress_bar(struct tty *tty, struct progress_bar *pb)
{
if (tty_term_has(tty->term, TTYC_SPB))
tty_putcode_ii(tty, TTYC_SPB, pb->state, pb->progress);
}