diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-04-23 19:05:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-04-23 19:06:39 +0200 |
commit | 6b01f1d3911bd7c7eadbb8a3b4375bd3ac05c98f (patch) | |
tree | aa572a33491cc0b57a7c04377c4def14408df3b4 /src/shared/util.h | |
parent | b91a3b02f3be899dd8a2ae22df5be8de78f5a175 (diff) |
delta: draw arrows with draw_special_char()
Let's unify generation of unicode chars at one place.
Also, don't add an extra space into chars we print, except for the tree
chars where this is really necessary.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index 5b060ef74f..d584a65979 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -681,14 +681,16 @@ void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size, bool is_locale_utf8(void); typedef enum DrawSpecialChar { - DRAW_TREE_VERT, + DRAW_TREE_VERTICAL, DRAW_TREE_BRANCH, DRAW_TREE_RIGHT, DRAW_TREE_SPACE, DRAW_TRIANGULAR_BULLET, DRAW_BLACK_CIRCLE, + DRAW_ARROW, _DRAW_SPECIAL_CHAR_MAX } DrawSpecialChar; + const char *draw_special_char(DrawSpecialChar ch); char *strreplace(const char *text, const char *old_string, const char *new_string); |