mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 16:43:11 +01:00
Permit attributes to be turned off in #[] by prefixing with "no", for example
"noblink".
This commit is contained in:
parent
762459954f
commit
33ae063cae
@ -347,6 +347,10 @@ screen_write_parsestyle(
|
|||||||
bg = defgc->bg;
|
bg = defgc->bg;
|
||||||
} else
|
} else
|
||||||
return;
|
return;
|
||||||
|
} else if (end > 2 && strncasecmp(tmp, "no", 2) == 0) {
|
||||||
|
if ((val = attributes_fromstring(tmp + 2)) == -1)
|
||||||
|
return;
|
||||||
|
attr &= ~val;
|
||||||
} else {
|
} else {
|
||||||
if ((val = attributes_fromstring(tmp)) == -1)
|
if ((val = attributes_fromstring(tmp)) == -1)
|
||||||
return;
|
return;
|
||||||
|
12
tmux.1
12
tmux.1
@ -1470,22 +1470,26 @@ the
|
|||||||
.Ic status-interval
|
.Ic status-interval
|
||||||
option: if the status line is redrawn in the meantime, the previous result is
|
option: if the status line is redrawn in the meantime, the previous result is
|
||||||
used.
|
used.
|
||||||
|
.Pp
|
||||||
#[attributes] allows a comma-separated list of attributes to be specified,
|
#[attributes] allows a comma-separated list of attributes to be specified,
|
||||||
these may be
|
these may be
|
||||||
.Ql fg=colour
|
.Ql fg=colour
|
||||||
to set the foreground colour,
|
to set the foreground colour,
|
||||||
.Ql bg=colour
|
.Ql bg=colour
|
||||||
to set the background colour, or one of the attributes described under the
|
to set the background colour, the name of one of the attributes (listed under the
|
||||||
.Ic message-attr
|
.Ic message-attr
|
||||||
option.
|
option) to turn an attribute on, or an attribute prefixed with
|
||||||
|
.Ql no
|
||||||
|
to turn one off, for example
|
||||||
|
.Ic nobright .
|
||||||
Examples are:
|
Examples are:
|
||||||
.Bd -literal -offset indent
|
.Bd -literal -offset indent
|
||||||
#(sysctl vm.loadavg)
|
#(sysctl vm.loadavg)
|
||||||
#[fg=yellow,bold]#(apm -l)%%#[default] [#S]
|
#[fg=yellow,bold]#(apm -l)%%#[default] [#S]
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Where appropriate, these may be prefixed with a number to specify the maximum
|
Where appropriate, special character sequences may be prefixed with a number to
|
||||||
length, for example
|
specify the maximum length, for example
|
||||||
.Ql #24T .
|
.Ql #24T .
|
||||||
.Pp
|
.Pp
|
||||||
By default, UTF-8 in
|
By default, UTF-8 in
|
||||||
|
Loading…
Reference in New Issue
Block a user