3 * Keith Bostic. All rights reserved.
5 * See the LICENSE file for redistribution information.
11 static const char sccsid
[] = "@(#)ip_screen.c 8.2 (Berkeley) 10/13/96";
14 #include <sys/types.h>
15 #include <sys/queue.h>
17 #include <bitstring.h>
20 #include "../common/common.h"
25 * Initialize/shutdown the IP screen.
27 * PUBLIC: int ip_screen __P((SCR *, u_int32_t));
40 /* See if the current information is incorrect. */
41 if (F_ISSET(gp
, G_SRESTART
)) {
44 F_CLR(gp
, G_SRESTART
);
47 /* See if we're already in the right mode. */
48 if (LF_ISSET(SC_VI
) && F_ISSET(ipp
, IP_SCR_VI_INIT
))
51 /* Ex isn't possible. */
55 /* Initialize terminal based information. */
59 /* Put up the first file name. */
63 F_SET(ipp
, IP_SCR_VI_INIT
);
69 * Shutdown the screens.
71 * PUBLIC: int ip_quit __P((GS *));
80 /* Clean up the terminal mappings. */
81 rval
= ip_term_end(gp
);
84 F_CLR(ipp
, IP_SCR_VI_INIT
);