diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2008-09-28 10:13:11 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2008-09-28 10:13:11 +0000 |
commit | c1dc0a1745ca8959fc4ce61ce026e2a83984c13e (patch) | |
tree | 786fa1fbb17c69aa06408624ed3ee94be63be396 /screen.h | |
parent | 3e0c556084482bdb8cc32d03a1b57ecd45eb8947 (diff) | |
download | src-c1dc0a1745ca8959fc4ce61ce026e2a83984c13e.tar.gz src-c1dc0a1745ca8959fc4ce61ce026e2a83984c13e.zip |
Flatten the dist tree.
Notes
Notes:
svn path=/vendor/top/dist/; revision=183432
Diffstat (limited to 'screen.h')
-rw-r--r-- | screen.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/screen.h b/screen.h new file mode 100644 index 000000000000..50105e4390ad --- /dev/null +++ b/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(); |