screen.h revision 24139
124139Sjoerg/*
224139Sjoerg *  top - a top users display for Unix 4.2
324139Sjoerg *
424139Sjoerg *  This file contains all the definitions necessary to use the hand-written
524139Sjoerg *  screen package in "screen.c"
624139Sjoerg */
724139Sjoerg
824139Sjoerg#define TCputs(str)	tputs(str, 1, putstdout)
924139Sjoerg#define putcap(str)	(void)((str) != NULL ? TCputs(str) : 0)
1024139Sjoerg#define Move_to(x, y)	TCputs(tgoto(cursor_motion, x, y))
1124139Sjoerg
1224139Sjoerg/* declare return values for termcap functions */
1324139Sjoergchar *tgetstr();
1424139Sjoergchar *tgoto();
1524139Sjoerg
1624139Sjoergextern char ch_erase;		/* set to the user's erase character */
1724139Sjoergextern char ch_kill;		/* set to the user's kill  character */
1824139Sjoergextern char smart_terminal;     /* set if the terminal has sufficient termcap
1924139Sjoerg				   capabilities for normal operation */
2024139Sjoerg
2124139Sjoerg/* These are some termcap strings for use outside of "screen.c" */
2224139Sjoergextern char *cursor_motion;
2324139Sjoergextern char *clear_line;
2424139Sjoergextern char *clear_to_end;
2524139Sjoerg
2624139Sjoerg/* rows and columns on the screen according to termcap */
2724139Sjoergextern int  screen_length;
2824139Sjoergextern int  screen_width;
2924139Sjoerg
3024139Sjoerg/* a function that puts a single character on stdout */
3124139Sjoergint putstdout();
32