#include "spice.h"
#include "cpdefs.h"
#include "scedio.h"
#include <varargs.h>
#include "suffix.h"
Go to the source code of this file.
static int fbufputc |
( |
unsigned char |
c | ) |
|
|
static |
Definition at line 174 of file output.c.
static char staticbuf[BUFSIZ]
Definition at line 128 of file output.c.
void out_winsize(int *cols, int *rows)
void out_printf |
( |
va_alist |
| ) |
|
Definition at line 321 of file output.c.
329 fmt = va_arg(args,
char *);
330 (void) vsprintf(buf, fmt, args);
static char buf[MAXPROMPT]
void out_send(char *string)
void out_send |
( |
char * |
string | ) |
|
Definition at line 245 of file output.c.
int SCEDline(char *string)
static void promptreturn()
void out_winsize |
( |
int * |
cols, |
|
|
int * |
rows |
|
) |
| |
Definition at line 55 of file output.c.
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"))) {
Definition at line 341 of file output.c.
350 for (wl = wlc; wl; wl = wl->
wl_next) {
struct wordlist * wl_next
void out_send(char *string)
static void outbufputc |
( |
| ) |
|
|
static |
Definition at line 159 of file output.c.
161 if (
ourbuf.count != BUFSIZ) {
int bzero(char *ptr, int num)
static char staticbuf[BUFSIZ]
static void promptreturn |
( |
| ) |
|
|
static |
Definition at line 189 of file output.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)) {
static char buf[MAXPROMPT]
void cprint(int clr, char *buf)