3 * The Regents of the University of California. All rights reserved.
5 * %sccs.include.redist.c%
9 static char sccsid
[] = "$Id: v_screen.c,v 8.8 1993/11/28 18:31:30 bostic Exp $ (Berkeley) $Date: 1993/11/28 18:31:30 $";
12 #include <sys/types.h>
22 v_screen(sp
, ep
, vp
, fm
, tm
, rp
)
29 * Try for the next lower screen, or, go back to the first
30 * screen on the stack.
32 if (sp
->q
.cqe_next
!= (void *)&sp
->gp
->dq
)
33 sp
->nextdisp
= sp
->q
.cqe_next
;
34 else if (sp
->gp
->dq
.cqh_first
== sp
) {
35 msgq(sp
, M_ERR
, "No other screen to switch to.");
38 sp
->nextdisp
= sp
->gp
->dq
.cqh_first
;
41 * Display the old screen's status line so the user can
42 * find the screen they want.
44 (void)status(sp
, ep
, fm
->lno
, 0);
46 /* Save the old screen's cursor information. */
47 sp
->frp
->lno
= sp
->lno
;
48 sp
->frp
->cno
= sp
->cno
;
49 F_SET(sp
->frp
, FR_CURSORSET
);