diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-05-13 23:02:26 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-05-13 23:02:26 +0100 |
commit | 1eefbd28e83d6031a50b7afe44e77b391ad215eb (patch) | |
tree | a19aa5ed6cd51ec50803d790abcdff5c51501dab /attributes.c | |
parent | b5b5d35eee1890daa7627556425ed32b5e4491fa (diff) | |
parent | 1ee944a19def82cb62abf6ab92c17eb30df77a41 (diff) | |
download | rtmux-1eefbd28e83d6031a50b7afe44e77b391ad215eb.tar.gz rtmux-1eefbd28e83d6031a50b7afe44e77b391ad215eb.tar.bz2 rtmux-1eefbd28e83d6031a50b7afe44e77b391ad215eb.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'attributes.c')
-rw-r--r-- | attributes.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/attributes.c b/attributes.c index 1b831733..5849af2b 100644 --- a/attributes.c +++ b/attributes.c @@ -31,7 +31,7 @@ attributes_tostring(int attr) if (attr == 0) return ("none"); - len = xsnprintf(buf, sizeof buf, "%s%s%s%s%s%s%s%s%s%s%s%s", + len = xsnprintf(buf, sizeof buf, "%s%s%s%s%s%s%s%s%s%s%s%s%s", (attr & GRID_ATTR_BRIGHT) ? "bright," : "", (attr & GRID_ATTR_DIM) ? "dim," : "", (attr & GRID_ATTR_UNDERSCORE) ? "underscore," : "", @@ -43,7 +43,8 @@ attributes_tostring(int attr) (attr & GRID_ATTR_UNDERSCORE_2) ? "double-underscore," : "", (attr & GRID_ATTR_UNDERSCORE_3) ? "curly-underscore," : "", (attr & GRID_ATTR_UNDERSCORE_4) ? "dotted-underscore," : "", - (attr & GRID_ATTR_UNDERSCORE_5) ? "dashed-underscore," : ""); + (attr & GRID_ATTR_UNDERSCORE_5) ? "dashed-underscore," : "", + (attr & GRID_ATTR_OVERLINE) ? "overline," : ""); if (len > 0) buf[len - 1] = '\0'; @@ -73,7 +74,8 @@ attributes_fromstring(const char *str) { "double-underscore", GRID_ATTR_UNDERSCORE_2 }, { "curly-underscore", GRID_ATTR_UNDERSCORE_3 }, { "dotted-underscore", GRID_ATTR_UNDERSCORE_4 }, - { "dashed-underscore", GRID_ATTR_UNDERSCORE_5 } + { "dashed-underscore", GRID_ATTR_UNDERSCORE_5 }, + { "overline", GRID_ATTR_OVERLINE } }; if (*str == '\0' || strcspn(str, delimiters) == 0) |