diff options
author | joerg <joerg@FreeBSD.org> | 1997-03-23 18:51:21 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-03-23 18:51:21 +0000 |
commit | c1a738a3bedc8182878c8f04311d72237fc15d4b (patch) | |
tree | 8b24c51ef0531ab64a41a4daec79701f26666c39 /contrib/top/screen.h | |
parent | 11933497bf01333f6eb1082c6e45c221b90035d1 (diff) | |
parent | 1b9d0472b72177a604d3c5dd26d25eec00049bd2 (diff) | |
download | FreeBSD-src-c1a738a3bedc8182878c8f04311d72237fc15d4b.zip FreeBSD-src-c1a738a3bedc8182878c8f04311d72237fc15d4b.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r24139,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/top/screen.h')
-rw-r--r-- | contrib/top/screen.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/top/screen.h b/contrib/top/screen.h new file mode 100644 index 0000000..50105e4 --- /dev/null +++ b/contrib/top/screen.h @@ -0,0 +1,31 @@ +/* + * top - a top users display for Unix 4.2 + * + * This file contains all the definitions necessary to use the hand-written + * screen package in "screen.c" + */ + +#define TCputs(str) tputs(str, 1, putstdout) +#define putcap(str) (void)((str) != NULL ? TCputs(str) : 0) +#define Move_to(x, y) TCputs(tgoto(cursor_motion, x, y)) + +/* declare return values for termcap functions */ +char *tgetstr(); +char *tgoto(); + +extern char ch_erase; /* set to the user's erase character */ +extern char ch_kill; /* set to the user's kill character */ +extern char smart_terminal; /* set if the terminal has sufficient termcap + capabilities for normal operation */ + +/* These are some termcap strings for use outside of "screen.c" */ +extern char *cursor_motion; +extern char *clear_line; +extern char *clear_to_end; + +/* rows and columns on the screen according to termcap */ +extern int screen_length; +extern int screen_width; + +/* a function that puts a single character on stdout */ +int putstdout(); |