diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-08-11 06:45:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-08-11 06:45:33 +0000 |
commit | a3dec6becef3295e8bd376d5e5b017c538fb10fc (patch) | |
tree | 62d68c9d54a7ec8ff59f14f3245214423234b83c /window.c | |
parent | ff4097e02cf35709e4b34aa62d227a54c5d7ddb5 (diff) | |
download | rtmux-a3dec6becef3295e8bd376d5e5b017c538fb10fc.tar.gz rtmux-a3dec6becef3295e8bd376d5e5b017c538fb10fc.tar.bz2 rtmux-a3dec6becef3295e8bd376d5e5b017c538fb10fc.zip |
Instead of numbering choose mode items 0-9a-z and then nothing, number
them all and if there are more than 10 use a prompt when 0-9 is
pressed. From Thomas Adam.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1183,3 +1183,13 @@ 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"); +} |