3 * Keith Bostic. All rights reserved.
5 * See the LICENSE file for redistribution information.
11 static const char sccsid
[] = "$Id: ip_screen.c,v 8.4 1996/12/18 10:28:03 bostic Exp $ (Berkeley) $Date: 1996/12/18 10:28:03 $";
14 #include <sys/types.h>
15 #include <sys/queue.h>
17 #include <bitstring.h>
20 #include "../common/common.h"
21 #include "../ipc/ip.h"
26 * Initialize/shutdown the IP screen.
28 * PUBLIC: int ip_screen __P((SCR *, u_int32_t));
41 /* See if the current information is incorrect. */
42 if (F_ISSET(gp
, G_SRESTART
)) {
45 F_CLR(gp
, G_SRESTART
);
48 /* See if we're already in the right mode. */
49 if (LF_ISSET(SC_VI
) && F_ISSET(ipp
, IP_SCR_VI_INIT
))
52 /* Ex isn't possible. */
56 /* Initialize terminal based information. */
60 F_SET(ipp
, IP_SCR_VI_INIT
);
66 * Shutdown the screens.
68 * PUBLIC: int ip_quit __P((GS *));
77 /* Clean up the terminal mappings. */
78 rval
= ip_term_end(gp
);
81 F_CLR(ipp
, IP_SCR_VI_INIT
);