From 4af4d124759b4648bded82482f4d043ad2b3bb79 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 14 May 2010 18:56:21 +0000 Subject: Accept (and document) "none" instead of "default" for attributes as it is clearer and avoids confusion with default colours. --- attributes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'attributes.c') diff --git a/attributes.c b/attributes.c index 0e42c787..81f29452 100644 --- a/attributes.c +++ b/attributes.c @@ -28,7 +28,7 @@ attributes_tostring(u_char attr) static char buf[128]; if (attr == 0) - return ("default"); + return ("none"); buf[0] = '\0'; if (attr & GRID_ATTR_BRIGHT) @@ -63,7 +63,7 @@ attributes_fromstring(const char *str) if (strchr(delimiters, str[strlen(str) - 1]) != NULL) return (-1); - if (strcasecmp(str, "default") == 0) + if (strcasecmp(str, "default") == 0 || strcasecmp(str, "none") == 0) return (0); attr = 0; -- cgit