mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +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:
@ -736,7 +736,7 @@ window_choose_write_line(
|
||||
utf8flag = options_get_number(&wp->window->options, "utf8");
|
||||
memcpy(&gc, &grid_default_cell, sizeof gc);
|
||||
if (data->selected == data->top + py)
|
||||
window_mode_attrs(&gc, oo);
|
||||
style_apply(&gc, oo, "mode-style");
|
||||
|
||||
screen_write_cursormove(ctx, 0, py);
|
||||
if (data->top + py < ARRAY_LENGTH(&data->list)) {
|
||||
@ -763,7 +763,7 @@ window_choose_write_line(
|
||||
screen_write_putc(ctx, &gc, ' ');
|
||||
|
||||
if (data->input_type != WINDOW_CHOOSE_NORMAL) {
|
||||
window_mode_attrs(&gc, oo);
|
||||
style_apply(&gc, oo, "mode-style");
|
||||
|
||||
xoff = xsnprintf(hdr, sizeof hdr,
|
||||
"%s: %s", data->input_prompt, data->input_str);
|
||||
|
Reference in New Issue
Block a user