aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2014-01-28 23:07:09 +0000
committernicm <nicm>2014-01-28 23:07:09 +0000
commit945339b443affdaaca260605e15b5a3b9a3c6e16 (patch)
treed04a4ccbdb9d83ded880cda1277911f6cf436197 /window.c
parentc930fd5ff696f5a60e93ed503f0ff57e0bbf6e4d (diff)
downloadrtmux-945339b443affdaaca260605e15b5a3b9a3c6e16.tar.gz
rtmux-945339b443affdaaca260605e15b5a3b9a3c6e16.tar.bz2
rtmux-945339b443affdaaca260605e15b5a3b9a3c6e16.zip
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.
Diffstat (limited to 'window.c')
-rw-r--r--window.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/window.c b/window.c
index dcb2a5f1..1e11cace 100644
--- a/window.c
+++ b/window.c
@@ -1315,13 +1315,3 @@ winlink_clear_flags(struct winlink *wl)
}
}
}
-
-/* Set the grid_cell with fg/bg/attr information when window is in a mode. */
-void
-window_mode_attrs(struct grid_cell *gc, struct options *oo)
-{
- memcpy(gc, &grid_default_cell, sizeof *gc);
- colour_set_fg(gc, options_get_number(oo, "mode-fg"));
- colour_set_bg(gc, options_get_number(oo, "mode-bg"));
- gc->attr |= options_get_number(oo, "mode-attr");
-}