Lines Matching refs:display

1 /*	$NetBSD: display.c,v 1.1.1.1 2016/01/14 00:11:29 christos Exp $	*/
3 /* display.c -- How to display Info windows.
4 Id: display.c,v 1.7 2004/04/11 17:56:45 karl Exp
25 #include "display.h"
29 static void free_display (DISPLAY_LINE **display);
36 /* An array of display lines which tell us what is currently visible on
37 the display. */
54 display_clear_display (DISPLAY_LINE **display)
58 for (i = 0; display[i]; i++)
60 display[i]->text[0] = '\0';
61 display[i]->textlen = 0;
62 display[i]->inverse = 0;
78 /* For every window in the list, check contents against the display. */
81 /* Only re-display visible windows which need updating. */
127 register char *nodetext; /* Current character to display. */
135 DISPLAY_LINE **display = the_display;
137 /* If display is inhibited, that counts as an interrupted display. */
141 /* If the window has no height, or display is inhibited, quit now. */
153 check the contents of that buffer against the display. If they
154 differ, update the display. */
297 entry = display[line_index + win->first_row];
340 /* Update the display text buffer. */
363 now, instead of continuing with the display. */
404 DISPLAY_LINE *entry = display[line_index + win->first_row];
418 Check the window's modeline against the one in the display, and update
425 /* This display line must both be in inverse, and have the same
427 if ((!display[line_index]->inverse) ||
428 (strcmp (display[line_index]->text, win->modeline) != 0))
434 strcpy (display[line_index]->text, win->modeline);
435 display[line_index]->inverse = 1;
436 display[line_index]->textlen = strlen (win->modeline);
474 /* Now do it in the display buffer so our contents match the screen. */
618 DISPLAY_LINE **display;
620 display = (DISPLAY_LINE **)xmalloc ((1 + height) * sizeof (DISPLAY_LINE *));
624 display[i] = (DISPLAY_LINE *)xmalloc (sizeof (DISPLAY_LINE));
625 display[i]->text = (char *)xmalloc (1 + width);
626 display[i]->textlen = 0;
627 display[i]->inverse = 0;
629 display[i] = (DISPLAY_LINE *)NULL;
630 return (display);
635 free_display (DISPLAY_LINE **display)
640 if (!display)
643 for (i = 0; (display_line = display[i]); i++)
648 free (display);