mirror of
https://github.com/tmux/tmux.git
synced 2025-11-05 18:36:10 +00:00
Allow replacing each of the many sets of separate foo-{fg,bg,attr}
options with a single foo-style option. For example:
set -g status-fg yellow
set -g status-bg red
set -g status-attr blink
Becomes:
set -g status-style fg=yellow,bg=red,blink
The -a flag to set can be used to add to rather than replace a style. So:
set -g status-bg red
Becomes:
set -ag status-style bg=red
Currently this is fully backwards compatible (all *-{fg,bg,attr} options
remain) but the plan is to deprecate them over time.
From Tiago Cunha.
This commit is contained in:
3
tty.c
3
tty.c
@@ -1354,8 +1354,7 @@ tty_attributes(struct tty *tty, const struct grid_cell *gc)
|
||||
tty_putcode(tty, TTYC_BOLD);
|
||||
if (changed & GRID_ATTR_DIM)
|
||||
tty_putcode(tty, TTYC_DIM);
|
||||
if (changed & GRID_ATTR_ITALICS)
|
||||
{
|
||||
if (changed & GRID_ATTR_ITALICS) {
|
||||
if (tty_term_has(tty->term, TTYC_SITM))
|
||||
tty_putcode(tty, TTYC_SITM);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user