added "more" command
[unix-history] / usr / src / usr.bin / window / cmd4.c
CommitLineData
ce28727e 1#ifndef lint
60de5df9 2static char sccsid[] = "@(#)cmd4.c 3.14 %G%";
ce28727e
EW
3#endif
4
60de5df9
EW
5/*
6 * Copyright (c) 1983 Regents of the University of California,
7 * All rights reserved. Redistribution permitted subject to
8 * the terms of the Berkeley Software License Agreement.
9 */
10
ce28727e
EW
11#include "defs.h"
12
85af59e4 13c_colon()
101acab4 14{
ffa20db4 15 char oldterse = terse;
101acab4
EW
16 char buf[512];
17
ffa20db4 18 setterse(0);
b1189050 19 wwputc(':', cmdwin);
8fa6d94c 20 wwgets(buf, wwncol - 3, cmdwin);
bf3b96e9 21 wwputc('\n', cmdwin);
ffa20db4
EW
22 wwcurtowin(cmdwin);
23 setterse(oldterse);
bb4a0c0b 24 if (dolongcmd(buf, (struct value *)0, 0) < 0)
25a495d2 25 error("Out of memory.");
101acab4 26}