xref: /original-bsd/lib/libcurses/idlok.c (revision 860e07fc)
1 /*
2  * Copyright (c) 1981 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)idlok.c	5.5 (Berkeley) 08/23/92";
10 #endif	/* not lint */
11 
12 #include <curses.h>
13 
14 /*
15  * idlok --
16  *	Turn on and off using insert/deleteln sequences for the
17  *	given window.
18  */
19 void
20 idlok(win, bf)
21 	WINDOW *win;
22 	int bf;
23 {
24 	if (bf)
25 		win->_flags |= _IDLINE;
26 	else
27 		win->_flags &= ~_IDLINE;
28 }
29