summaryrefslogtreecommitdiffstats
path: root/attributes.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-04-23 07:15:17 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-04-23 07:15:17 +0100
commit1a612a59361904a2996c8ca8b84e8c76548512b6 (patch)
treeb60a3f878508f49e38da9cdafbbfaab8d275f7c7 /attributes.c
parent106e5d07beaacaa977372f8b6a0bcac5f981545b (diff)
Add an attribute for ACS.
Diffstat (limited to 'attributes.c')
-rw-r--r--attributes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/attributes.c b/attributes.c
index ca88a056..b839f06d 100644
--- a/attributes.c
+++ b/attributes.c
@@ -31,7 +31,8 @@ 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%s",
+ len = xsnprintf(buf, sizeof buf, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
+ (attr & GRID_ATTR_CHARSET) ? "acs," : "",
(attr & GRID_ATTR_BRIGHT) ? "bright," : "",
(attr & GRID_ATTR_DIM) ? "dim," : "",
(attr & GRID_ATTR_UNDERSCORE) ? "underscore," : "",
@@ -62,6 +63,7 @@ attributes_fromstring(const char *str)
const char *name;
int attr;
} table[] = {
+ { "acs", GRID_ATTR_CHARSET },
{ "bright", GRID_ATTR_BRIGHT },
{ "bold", GRID_ATTR_BRIGHT },
{ "dim", GRID_ATTR_DIM },