1997-03-23 18:51:21 +00:00
|
|
|
/*
|
|
|
|
* 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"
|
2018-05-21 00:53:42 +00:00
|
|
|
*
|
|
|
|
* $FreeBSD$
|
1997-03-23 18:51:21 +00:00
|
|
|
*/
|
|
|
|
|
2018-06-02 07:44:53 +00:00
|
|
|
#define TCputs(str) tputs(str, 1, putchar)
|
1997-03-23 18:51:21 +00:00
|
|
|
#define putcap(str) (void)((str) != NULL ? TCputs(str) : 0)
|
|
|
|
#define Move_to(x, y) TCputs(tgoto(cursor_motion, x, y))
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2016-05-22 04:17:00 +00:00
|
|
|
int clear_eol(int len);
|
2018-06-02 21:40:45 +00:00
|
|
|
void top_standout(const char *msg);
|
2018-04-18 13:17:14 +00:00
|
|
|
void top_clear(void);
|
2016-05-22 04:17:00 +00:00
|
|
|
void reinit_screen(void);
|
|
|
|
void get_screensize(void);
|
2018-06-22 09:45:18 +00:00
|
|
|
void init_termcap(bool interactive);
|
2016-05-22 04:17:00 +00:00
|
|
|
void end_screen(void);
|
|
|
|
void init_screen(void);
|
|
|
|
|