Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2026-04-03 11:04:15 +01:00
6 changed files with 127 additions and 2 deletions

View File

@@ -131,6 +131,7 @@ screen_reinit(struct screen *s)
image_free_all(s);
#endif
screen_set_progress_bar(s, PROGRESS_BAR_HIDDEN, 0);
screen_reset_hyperlinks(s);
}
@@ -296,6 +297,19 @@ screen_pop_title(struct screen *s)
}
}
/*
* Set the progress bar state and progress. The progress will not be updated
* if p is negative.
*/
void
screen_set_progress_bar(struct screen *s, enum progress_bar_state pbs, int p)
{
s->progress_bar.state = pbs;
if (p >= 0 && pbs != PROGRESS_BAR_INDETERMINATE)
s->progress_bar.progress = p;
}
/* Resize screen with options. */
void
screen_resize_cursor(struct screen *s, u_int sx, u_int sy, int reflow,