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 *  $FreeBSD$
8 */
9
10#define TCputs(str)	tputs(str, 1, putchar)
11#define putcap(str)	(void)((str) != NULL ? TCputs(str) : 0)
12#define Move_to(x, y)	TCputs(tgoto(cursor_motion, x, y))
13
14extern char ch_erase;		/* set to the user's erase character */
15extern char ch_kill;		/* set to the user's kill  character */
16extern char smart_terminal;     /* set if the terminal has sufficient termcap
17				   capabilities for normal operation */
18
19/* These are some termcap strings for use outside of "screen.c" */
20extern char *cursor_motion;
21extern char *clear_line;
22extern char *clear_to_end;
23
24/* rows and columns on the screen according to termcap */
25extern int  screen_length;
26extern int  screen_width;
27
28int		clear_eol(int len);
29void	top_standout(const char *msg);
30void	top_clear(void);
31void	reinit_screen(void);
32void	get_screensize(void);
33void	init_termcap(bool interactive);
34void	end_screen(void);
35void	init_screen(void);
36
37