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 manual_width; 00024 int screen_width_minus_one; 00025 int display_twiddle; 00026 int display_title; 00027 int display_datacount; 00028 int display_throughput; 00029 int display_time; 00030 int display_elapsed_only; 00031 int display_percent; 00032 int display_bar; 00033 int display_summary; 00034 int display_ansi; 00035 int display_throughput_bits; 00036 int display_count_bits; 00037 char title[81]; 00038 char *space_bg_color; 00039 char *twiddle_fg_color; 00040 char *twiddle_bg_color; 00041 int twiddle_fg_bold; 00042 char *title_bg_color; 00043 char *title_fg_color; 00044 int title_fg_bold; 00045 char *datacount_fg_color; 00046 char *datacount_bg_color; 00047 int datacount_fg_bold; 00048 char *throughput_label_fg_color; 00049 char *throughput_label_bg_color; 00050 int throughput_label_fg_bold; 00051 char *throughput_fg_color; 00052 char *throughput_bg_color; 00053 int throughput_fg_bold; 00054 char *time_label_fg_color; 00055 char *time_label_bg_color; 00056 int time_label_fg_bold; 00057 char *time_fg_color; 00058 char *time_bg_color; 00059 int time_fg_bold; 00060 char *percent_fg_color; 00061 char *percent_bg_color; 00062 int percent_fg_bold; 00063 char *bar_fg_color; 00064 char *bar_bg_color; 00065 int bar_fg_bold; 00066 char *barbrace_fg_color; 00067 char *barbrace_bg_color; 00068 int barbrace_fg_bold; 00069 int total_display_percent; 00070 }; 00071 00072 typedef struct _display display; 00073 00074 extern display d; 00075 00076 int displayInit(void); 00077 int displayBegin(void); 00078 int displayUpdate(void); 00079 int displayEnd(void); 00080 00081 #endif