1/*
2 *  top - a top users display for Unix 4.2
3 *
4 *  This file contains all the definitions necessary to use the hand-written
5 *  screen package in "screen.c"
6 */
7
8#define TCputs(str)	tputs(str, 1, putchar)
9#define putcap(str)	(void)((str) != NULL ? TCputs(str) : 0)
10#define Move_to(x, y)	TCputs(tgoto(cursor_motion, x, y))
11
12extern char ch_erase;		/* set to the user's erase character */
13extern char ch_kill;		/* set to the user's kill  character */
14extern char smart_terminal;     /* set if the terminal has sufficient termcap
15				   capabilities for normal operation */
16
17/* These are some termcap strings for use outside of "screen.c" */
18extern char *cursor_motion;
19extern char *clear_line;
20extern char *clear_to_end;
21
22/* rows and columns on the screen according to termcap */
23extern int  screen_length;
24extern int  screen_width;
25
26int		clear_eol(int len);
27void	top_standout(const char *msg);
28void	top_clear(void);
29void	reinit_screen(void);
30void	get_screensize(void);
31void	init_termcap(bool interactive);
32void	end_screen(void);
33void	init_screen(void);
34
35