tcsh: fix warning to keep compiling with WARNS=2
[dragonfly.git] / contrib / top / screen.h
blobce39c339304bea892fd26ec8b2a2979b5fcafd7d
1 /*
2 * top - a top users display for Unix 4.2
4 * This file contains all the definitions necessary to use the hand-written
5 * screen package in "screen.c"
6 */
8 #define TCputs(str) tputs(str, 1, putstdout)
9 #define putcap(str) (void)((str) != NULL ? TCputs(str) : 0)
10 #define Move_to(x, y) TCputs(tgoto(cursor_motion, x, y))
12 /* declare return values for termcap functions */
14 extern char ch_erase; /* set to the user's erase character */
15 extern char ch_kill; /* set to the user's kill character */
16 extern char smart_terminal; /* set if the terminal has sufficient termcap
17 capabilities for normal operation */
19 /* These are some termcap strings for use outside of "screen.c" */
20 extern char *cursor_motion;
21 extern char *clear_line;
22 extern char *clear_to_end;
24 /* rows and columns on the screen according to termcap */
25 extern int screen_length;
26 extern int screen_width;
28 /* a function that puts a single character on stdout */
29 int putstdout(int ch);
30 void init_termcap(int interactive);
31 void get_screensize(void);
32 void init_screen(void);
33 void reinit_screen(void);
34 void end_screen(void);
35 void clear_myscreen(void);
36 int clear_eol(int len);
37 void go_home(void);
38 void dostandout(const char *msg);