2 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
15 #pragma ident "%Z%%M% %I% %E% SMI"
19 static char ahead
[1024];
20 static int peeked
= 0;
21 static char *noteof
= (char *)1;
33 return (fgets(s
, 1000, in
));
41 noteof
= input(ahead
);
47 addch(char *s
, char c
)