31 #define DEF_SCRHEIGHT 24 32 #define DEF_SCRWIDTH 80 73 (void) ioctl(fileno(stdout), TIOCGWINSZ, (
char *) &ws);
81 if ((s =
getenv(
"TERM")) && (tgetent(tbuf, s) != -1)) {
84 if ((x <= 0) || (y <= 0))
91 if ((s =
getenv(
"COLS"))) {
99 if ((s =
getenv(
"LINES"))) {
161 if (
ourbuf.count != BUFSIZ) {
169 #define bufputc(c) ( --ourbuf.count >= 0 ? ((int) \ 170 (*ourbuf.ptr++ = (unsigned)(c))) : fbufputc((unsigned) (c))) 193 char *xx =
" -- hit return for more, ? for help -- ";
195 "\nPossible responses:\n\ 196 q : Discard the rest of the output.\n\ 197 c : Continuously print the rest of the output.\n\ 198 h,? : Print this help message.\n\ 199 other : Print the next page of output.\n";
207 (void) fprintf(
cp_out,xx);
212 else if (!fgets(buf, 16,
cp_in)) {
310 (void) vsprintf(buf, fmt, args);
329 fmt = va_arg(args,
char *);
330 (void) vsprintf(buf, fmt, args);
350 for (wl = wlc; wl; wl = wl->
wl_next) {
static char buf[MAXPROMPT]
void out_wlprint(wordlist *wl)
void out_winsize(int *cols, int *rows)
int bzero(char *ptr, int num)
void out_printf(va_alist)
struct wordlist * wl_next
int SCEDline(char *string)
void out_send(char *string)
static void promptreturn()
static char staticbuf[BUFSIZ]
void cprint(int clr, char *buf)