Use standalone flags to indicate whether we are tracking the last bytes output or the previous line written, so that the component array is not needed outside of display.c.

This commit is contained in:
Andrew Wood
2024-12-08 10:23:24 +00:00
parent 3d52919411
commit cfea00b200
11 changed files with 83 additions and 76 deletions
+2
View File
@@ -222,6 +222,8 @@ struct pvstate_s {
size_t format_segment_count; /* number of format string segments */
unsigned int prev_screen_width; /* screen width last time we were called */
bool tracking_last_output; /* set if displaying the last few bytes output */
bool tracking_previous_line; /* set if displaying the previously output line */
bool display_visible; /* set once anything written to terminal */
} display;