mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
glyph-util: add 'full block' glyph
This commit is contained in:
parent
4cdef9f08c
commit
24aeaf4e7f
|
@ -52,6 +52,7 @@ const char *special_glyph_full(SpecialGlyph code, bool force_utf) {
|
|||
[SPECIAL_GLYPH_CROSS_MARK] = "-",
|
||||
[SPECIAL_GLYPH_LIGHT_SHADE] = "-",
|
||||
[SPECIAL_GLYPH_DARK_SHADE] = "X",
|
||||
[SPECIAL_GLYPH_FULL_BLOCK] = "#",
|
||||
[SPECIAL_GLYPH_SIGMA] = "S",
|
||||
[SPECIAL_GLYPH_ARROW_UP] = "^",
|
||||
[SPECIAL_GLYPH_ARROW_DOWN] = "v",
|
||||
|
@ -97,6 +98,7 @@ const char *special_glyph_full(SpecialGlyph code, bool force_utf) {
|
|||
[SPECIAL_GLYPH_CROSS_MARK] = u8"✗", /* actually called: BALLOT X */
|
||||
[SPECIAL_GLYPH_LIGHT_SHADE] = u8"░",
|
||||
[SPECIAL_GLYPH_DARK_SHADE] = u8"▒",
|
||||
[SPECIAL_GLYPH_FULL_BLOCK] = u8"█",
|
||||
[SPECIAL_GLYPH_SIGMA] = u8"Σ",
|
||||
[SPECIAL_GLYPH_ARROW_UP] = u8"↑", /* actually called: UPWARDS ARROW */
|
||||
[SPECIAL_GLYPH_ARROW_DOWN] = u8"↓", /* actually called: DOWNWARDS ARROW */
|
||||
|
|
|
@ -24,6 +24,7 @@ typedef enum SpecialGlyph {
|
|||
SPECIAL_GLYPH_CROSS_MARK,
|
||||
SPECIAL_GLYPH_LIGHT_SHADE,
|
||||
SPECIAL_GLYPH_DARK_SHADE,
|
||||
SPECIAL_GLYPH_FULL_BLOCK,
|
||||
SPECIAL_GLYPH_SIGMA,
|
||||
SPECIAL_GLYPH_ARROW_UP,
|
||||
SPECIAL_GLYPH_ARROW_DOWN,
|
||||
|
|
|
@ -103,6 +103,7 @@ TEST(dump_special_glyphs) {
|
|||
dump_glyph(SPECIAL_GLYPH_CROSS_MARK);
|
||||
dump_glyph(SPECIAL_GLYPH_LIGHT_SHADE);
|
||||
dump_glyph(SPECIAL_GLYPH_DARK_SHADE);
|
||||
dump_glyph(SPECIAL_GLYPH_FULL_BLOCK);
|
||||
dump_glyph(SPECIAL_GLYPH_SIGMA);
|
||||
dump_glyph(SPECIAL_GLYPH_ARROW_UP);
|
||||
dump_glyph(SPECIAL_GLYPH_ARROW_DOWN);
|
||||
|
|
Loading…
Reference in a new issue