xref: /freebsd/usr.bin/top/display.h (revision b0d29bc47dba79f6f38e67eabadfb4b32ffd9390)
1 /* $FreeBSD$ */
2 /* constants needed for display.c */
3 
4 #define  MT_standout  1
5 #define  MT_delayed   2
6 
7 #include <sys/time.h>
8 struct statics;
9 
10 int		 display_updatecpus(struct statics *statics);
11 void	 clear_message(void);
12 int		 display_resize(void);
13 void	 i_header(const char *text);
14 void	 display_header(int t);
15 int		 display_init(struct statics *statics);
16 void	 i_arc(int *stats);
17 void	 i_battery(int nbat, int batt);
18 void	 i_carc(int *stats);
19 void	 i_cpustates(int *states);
20 void	 i_loadave(int mpid, double *avenrun);
21 void	 i_memory(int *stats);
22 void	 i_message(void);
23 void	 i_process(int line, char *thisline);
24 void	 i_procstates(int total, int *brkdn);
25 void	 i_swap(int *stats);
26 void	 i_timeofday(time_t *tod);
27 void	 i_uptime(struct timeval *bt, time_t *tod);
28 void	 new_message(int type, const char *msgfmt, ...);
29 int	 readline(char *buffer, int size, int numeric);
30 char	*trim_header(const char *text);
31 void	 u_arc(int *stats);
32 void	 u_carc(int *stats);
33 void	 u_cpustates(int *states);
34 void	 u_endscreen(int hi);
35 void	 u_header(const char *text);
36 void	 u_loadave(int mpid, double *avenrun);
37 void	 u_memory(int *stats);
38 void	 u_message(void);
39 void	 u_process(int line, char *newline);
40 void	 u_procstates(int total, int *brkdn);
41 void	 u_swap(int *stats);
42 void	 z_cpustates(void);
43