+ screen->lines = talloc_array(screen, const char *,
+ screen->n_alloc_lines);
+}
+
+static void __text_screen_append_line(struct text_screen *screen,
+ const char *line)
+{
+ if (screen->n_lines == screen->n_alloc_lines) {
+ screen->n_alloc_lines *= 2;
+ screen->lines = talloc_realloc(screen, screen->lines,
+ const char *,
+ screen->n_alloc_lines);
+ }
+
+ screen->lines[screen->n_lines] = line;
+ screen->n_lines++;