Annotation of src/usr.bin/top/screen.h, Revision 1.2
1.2 ! downsj 1: /* $OpenBSD: screen.h,v 1.1 1997/08/14 14:00:24 downsj Exp $ */
1.1 downsj 2:
3: /*
4: * top - a top users display for Unix 4.2
5: *
6: * This file contains all the definitions necessary to use the hand-written
7: * screen package in "screen.c"
8: */
9:
10: #define TCputs(str) tputs(str, 1, putstdout)
11: #define putcap(str) (void)((str) != NULL ? TCputs(str) : 0)
12: #define Move_to(x, y) TCputs(tgoto(cursor_motion, x, y))
13:
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 */
18:
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;
23:
24: /* rows and columns on the screen according to termcap */
25: extern int screen_length;
26: extern int screen_width;
27:
1.2 ! downsj 28: /* prototypes from screen.c */
! 29: extern void init_termcap __P((int));
! 30: extern void init_screen __P((void));
! 31: extern void end_screen __P((void));
! 32: extern void reinit_screen __P((void));
! 33: extern void get_screensize __P((void));
! 34: extern void standout __P((char *));
! 35: extern void clear __P((void));
! 36: extern int clear_eol __P((int));
! 37: extern void go_home __P((void));
! 38: extern int putstdout __P((int));