mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
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!
This commit is contained in:
6
colour.c
6
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 <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
|
||||
|
Reference in New Issue
Block a user