00001 /* 00002 * Display 00003 */ 00004 00005 #ifndef __display_h__ 00006 #define __display_h__ 00007 00008 #include "headers.h" 00009 #include "types.h" 00010 #include "io.h" 00011 00012 struct _display { 00013 time_t start_time; 00014 time_t total_time; 00015 time_t current_time; 00016 time_t elapsed_time; 00017 float percent_complete; 00018 int display_interval; 00019 int overtime_flag; 00020 unsigned int k; 00021 char twiddle; 00022 int screen_width; 00023 int screen_width_minus_one; 00024 int manual_width; 00025 int screen_height; 00026 int screen_height_minus_one; 00027 int manual_height; 00028 int display_wait; 00029 int display_numeric; 00030 int display_twiddle; 00031 int display_title; 00032 int display_datacount; 00033 int display_throughput; 00034 int display_time; 00035 int display_elapsed_only; 00036 int display_percent; 00037 int display_bar; 00038 int display_summary; 00039 int display_ansi; 00040 int display_throughput_bits; 00041 int display_count_bits; 00042 char title[81]; 00043 char *space_bg_color; 00044 char *twiddle_fg_color; 00045 char *twiddle_bg_color; 00046 int twiddle_fg_bold; 00047 char *title_bg_color; 00048 char *title_fg_color; 00049 int title_fg_bold; 00050 char *datacount_fg_color; 00051 char *datacount_bg_color; 00052 int datacount_fg_bold; 00053 char *throughput_label_fg_color; 00054 char *throughput_label_bg_color; 00055 int throughput_label_fg_bold; 00056 char *throughput_fg_color; 00057 char *throughput_bg_color; 00058 int throughput_fg_bold; 00059 char *time_label_fg_color; 00060 char *time_label_bg_color; 00061 int time_label_fg_bold; 00062 char *time_fg_color; 00063 char *time_bg_color; 00064 int time_fg_bold; 00065 char *percent_fg_color; 00066 char *percent_bg_color; 00067 int percent_fg_bold; 00068 char *bar_fg_color; 00069 char *bar_bg_color; 00070 int bar_fg_bold; 00071 char *barbrace_fg_color; 00072 char *barbrace_bg_color; 00073 char bar_open_brace; 00074 char bar_close_brace; 00075 char bar_complete; 00076 char bar_incomplete; 00077 int barbrace_fg_bold; 00078 int total_display_percent; 00079 char *info_file; 00080 FILE *info_fin; 00081 int info_num; 00082 float info_percent_threshold; 00083 float info_percent_count; 00084 char info_line[256]; 00085 }; 00086 00087 typedef struct _display display; 00088 00089 extern display d; 00090 00091 int displayInit(void); 00092 int displayBegin(void); 00093 int displayUpdate(void); 00094 int displayEnd(void); 00095 00096 #endif