diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-27 20:22:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-27 20:22:33 +0000 |
commit | c6bd9e20635e4acbf8a65409aa9189edaf3cbc89 (patch) | |
tree | b879376b210ca58c82e3d9af88134c0b2c3343f1 /colour.c | |
parent | d697090fa451e9d78b31fdfff89f333d827ddd0a (diff) |
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!
Diffstat (limited to 'colour.c')
-rw-r--r-- | colour.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 <nicm@users.sourceforge.net> @@ -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 |