From c6bd9e20635e4acbf8a65409aa9189edaf3cbc89 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 27 Jan 2009 20:22:33 +0000 Subject: Allow status, mode and message attributes to be changed by three new options: status-attr, mode-attr, message-attr. A comma-separataed list is accepted containing: bright, dim, underscore, blink, reverse, hidden, italics, for example: set -g status-attr bright,blink From Josh Elsasser, thanks! --- colour.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'colour.c') diff --git a/colour.c b/colour.c index f1f841d5..497f157b 100644 --- a/colour.c +++ b/colour.c @@ -1,4 +1,4 @@ -/* $Id: colour.c,v 1.3 2009-01-10 01:51:21 nicm Exp $ */ +/* $Id: colour.c,v 1.4 2009-01-27 20:22:33 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -49,7 +49,7 @@ colour_tostring(u_char c) } /* String to colour. */ -u_char +int colour_fromstring(const char *s) { if (strcasecmp(s, "black") == 0 || (s[0] == '0' && s[1] == '\0')) @@ -70,7 +70,7 @@ colour_fromstring(const char *s) return (7); if (strcasecmp(s, "default") == 0 || (s[0] == '8' && s[1] == '\0')) return (8); - return (255); + return (-1); } u_char -- cgit