Commit | Line | Data |
---|---|---|
60de5df9 | 1 | /* |
46e9ea25 KB |
2 | * Copyright (c) 1983 Regents of the University of California. |
3 | * All rights reserved. | |
4 | * | |
3dd3a9e5 KB |
5 | * This code is derived from software contributed to Berkeley by |
6 | * Edward Wang at The University of California, Berkeley. | |
7 | * | |
87f529ec | 8 | * %sccs.include.redist.c% |
60de5df9 EW |
9 | */ |
10 | ||
46e9ea25 | 11 | #ifndef lint |
3dd3a9e5 | 12 | static char sccsid[] = "@(#)cmd4.c 3.18 (Berkeley) %G%"; |
46e9ea25 KB |
13 | #endif /* not lint */ |
14 | ||
ce28727e EW |
15 | #include "defs.h" |
16 | ||
85af59e4 | 17 | c_colon() |
101acab4 | 18 | { |
ffa20db4 | 19 | char oldterse = terse; |
101acab4 EW |
20 | char buf[512]; |
21 | ||
ffa20db4 | 22 | setterse(0); |
b1189050 | 23 | wwputc(':', cmdwin); |
8fa6d94c | 24 | wwgets(buf, wwncol - 3, cmdwin); |
bf3b96e9 | 25 | wwputc('\n', cmdwin); |
ffa20db4 EW |
26 | wwcurtowin(cmdwin); |
27 | setterse(oldterse); | |
bb4a0c0b | 28 | if (dolongcmd(buf, (struct value *)0, 0) < 0) |
25a495d2 | 29 | error("Out of memory."); |
101acab4 | 30 | } |