Go to the documentation of this file.
19 #ifndef PROGRESS_BAR_H
20 #define PROGRESS_BAR_H
32 #ifndef PROGRESS_BAR_LENGTH
33 #define PROGRESS_BAR_LENGTH (25U)
39 #ifndef PROGRESS_BAR_FULL_CHARACTER
40 #define PROGRESS_BAR_FULL_CHARACTER "█"
46 #ifndef PROGRESS_BAR_EMPTY_CHARACTER
47 #define PROGRESS_BAR_EMPTY_CHARACTER " "
53 #ifndef PROGRESS_BAR_PREFIX_CHARACTER
54 #define PROGRESS_BAR_PREFIX_CHARACTER "|"
60 #ifndef PROGRESS_BAR_SUFFIX_CHARACTER
61 #define PROGRESS_BAR_SUFFIX_CHARACTER "|"
67 #ifndef PROGRESS_BAR_PREFIX_MAX_LENGTH
68 #define PROGRESS_BAR_PREFIX_MAX_LENGTH (32U)
74 #ifndef PROGRESS_BAR_SUFFIX_MAX_LENGTH
75 #define PROGRESS_BAR_SUFFIX_MAX_LENGTH (32U)
uint8_t value
Current value of the progress bar.
void progress_bar_update(progress_bar_t *progress_bar)
Update the progress bar display in the terminal.
#define PROGRESS_BAR_SUFFIX_MAX_LENGTH
Progress bar suffix max length.
void progress_bar_prepare_multi(uint8_t len)
Prepare the output for displaying multiple progress bars.
void progress_bar_print(char *prefix, char *suffix, uint8_t value)
Print a progress bar in the terminal.
void progress_bar_update_multi(progress_bar_t *progress_bar_list, uint8_t len)
Update all progress bar displays of the given progress bars list.
Adds include for missing inttype definitions.
#define PROGRESS_BAR_PREFIX_MAX_LENGTH
Progress bar prefix max length.