File: display.h

package info (click to toggle)
bar 1.11.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 928 kB
  • sloc: ansic: 4,381; sh: 3,334; makefile: 264
file content (96 lines) | stat: -rw-r--r-- 1,965 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
 * Display
 */

#ifndef __display_h__
#define __display_h__

#include "headers.h"
#include "types.h"
#include "io.h"

struct _display {
	time_t start_time;
	time_t total_time;
	time_t current_time;
	time_t elapsed_time;
	float percent_complete;
	int display_interval;
	int overtime_flag;
	unsigned int k;
	char twiddle;
	int screen_width;
	int screen_width_minus_one;
	int manual_width;
	int screen_height;
	int screen_height_minus_one;
	int manual_height;
	int display_wait;
	int display_numeric;
	int display_twiddle;
	int display_title;
	int display_datacount;
	int display_throughput;
	int display_time;
	int display_elapsed_only;
	int display_percent;
	int display_bar;
	int display_summary;
	int display_ansi;
	int display_throughput_bits;
	int display_count_bits;
	char title[81];
	char *space_bg_color;
	char *twiddle_fg_color;
	char *twiddle_bg_color;
	int twiddle_fg_bold;
	char *title_bg_color;
	char *title_fg_color;
	int title_fg_bold;
	char *datacount_fg_color;
	char *datacount_bg_color;
	int datacount_fg_bold;
	char *throughput_label_fg_color;
	char *throughput_label_bg_color;
	int throughput_label_fg_bold;
	char *throughput_fg_color;
	char *throughput_bg_color;
	int throughput_fg_bold;
	char *time_label_fg_color;
	char *time_label_bg_color;
	int time_label_fg_bold;
	char *time_fg_color;
	char *time_bg_color;
	int time_fg_bold;
	char *percent_fg_color;
	char *percent_bg_color;
	int percent_fg_bold;
	char *bar_fg_color;
	char *bar_bg_color;
	int bar_fg_bold;
	char *barbrace_fg_color;
	char *barbrace_bg_color;
	char bar_open_brace;
	char bar_close_brace;
	char bar_complete;
	char bar_incomplete;
	int barbrace_fg_bold;
	int total_display_percent;
	char *info_file;
	FILE *info_fin;
	int info_num;
	float info_percent_threshold;
	float info_percent_count;
	char info_line[256];
};

typedef struct _display display;

extern display d;

int displayInit(void);
int displayBegin(void);
int displayUpdate(void);
int displayEnd(void);

#endif