xref: /original-bsd/usr.bin/window/cmd4.c (revision c3e32dec)
1 /*
2  * Copyright (c) 1983, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Edward Wang at The University of California, Berkeley.
7  *
8  * %sccs.include.redist.c%
9  */
10 
11 #ifndef lint
12 static char sccsid[] = "@(#)cmd4.c	8.1 (Berkeley) 06/06/93";
13 #endif /* not lint */
14 
15 #include "defs.h"
16 
17 c_colon()
18 {
19 	char oldterse = terse;
20 	char buf[512];
21 
22 	setterse(0);
23 	wwputc(':', cmdwin);
24 	wwgets(buf, wwncol - 3, cmdwin);
25 	wwputc('\n', cmdwin);
26 	wwcurtowin(cmdwin);
27 	setterse(oldterse);
28 	if (dolongcmd(buf, (struct value *)0, 0) < 0)
29 		error("Out of memory.");
30 }
31