summaryrefslogtreecommitdiffstats
path: root/src/shared/pretty-print.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-02-26 15:46:50 +0100
committerLennart Poettering <lennart@poettering.net>2024-03-01 22:25:42 +0100
commit71cb203a6ea6de409c6b9c042feda2ff655101e9 (patch)
treee2a59a6309ea53a5fa47fe77acb21c8c0d067749 /src/shared/pretty-print.h
parentmachinectl: chainload importctl for relevant verbs (diff)
downloadsystemd-71cb203a6ea6de409c6b9c042feda2ff655101e9.tar.xz
systemd-71cb203a6ea6de409c6b9c042feda2ff655101e9.zip
importctl: draw a pretty progress bar while downloading
Everybody loves pretty terminal progress bar.
Diffstat (limited to 'src/shared/pretty-print.h')
-rw-r--r--src/shared/pretty-print.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/pretty-print.h b/src/shared/pretty-print.h
index 6069318be7..940d34775b 100644
--- a/src/shared/pretty-print.h
+++ b/src/shared/pretty-print.h
@@ -49,3 +49,6 @@ static inline const char *green_check_mark_internal(char buffer[static GREEN_CHE
#define COLOR_MARK_BOOL(b) ((b) ? GREEN_CHECK_MARK() : RED_CROSS_MARK())
int terminal_tint_color(double hue, char **ret);
+
+void draw_progress_bar(const char *prefix, double percentage);
+void clear_progress_bar(const char *prefix);