summaryrefslogtreecommitdiffstats
path: root/style.c
AgeCommit message (Collapse)Author
2024-01-22Increase buffer size to avoid truncating styles, GitHub issue 3809 fromnicm
Ricardo Bittencourt.
2023-08-17Add a session, pane and user mouse range types for the status line andnicm
add format variables for mouse_status_line and mouse_status_range so they can be associated with different commands in the key bindings. GitHub issue 3652.
2023-06-26Add "us" to styles for underscore colour, GitHub issue 3589.nicm
2022-06-30Add support for OSC 8 hyperlinks (a VTE extension now supported by othernicm
terminals such as iTerm2). Originally written by me then extended and completed by first Will Noble and later Jeff Chiang. GitHub issues 911, 2621, 2890, 3240.
2021-08-12Make newline a style delimiter as well so they can cross multiple linesnicm
for readability.
2021-03-11Add an "absolute-centre" alignment to use the centre of the total spacenicm
instead of only the available space. From Magnus Gross in GitHub issue 2578.
2020-05-16Add a customize mode where keys and options may be browsed and changed,nicm
includes adding a brief description of each option. Bound to "C" by default.
2020-05-16Drop having a separate type for style options and make them all strings,nicm
which allows formats to be expanded. Any styles without a '#{' are still validated when they are set but any with a '#{' are not. Formats are not expanded usefully in many cases yet, that will be changed later. To make this work, a few other changes: - set-option -a with a style option automatically appends a ",". - OSC 10 and 11 don't set the window-style option anymore, instead the fg and bg are stored in the pane struct and act as the defaults that can be overridden by window-style. - status-fg and -bg now override status-style instead of trying to keep them in sync.
2020-05-16Use a grid cell not a style for the pane style.nicm
2020-05-16Add an attribute for ACS.nicm
2019-09-15Add push-default and pop-default in styles to change the default coloursnicm
and attributes and use them to restore the previous behaviour of window-status-style being the default for window-status-format in the status line. From John Drouhard in GitHub issue 1912.
2019-07-06Correctly clear underscore colour in grid_get_cell1, also fix structnicm
grid_cell to avoid padding. Fixes increased memory use reported by Suraj N Kurapati.
2019-07-01Add a "fill" style attribute to clear the entire format drawing area innicm
a colour, GitHub issue 1815.
2019-06-27Add support for underscore colours with Setulc capability, mostly fromnicm
Kai Moschcau.
2019-05-12Fix some indentation and dead assignments.nicm
2019-04-05Fix some warnings, from Thomas Adam.nicm
2019-03-18Extend the #[] style syntax and use that together with previous formatnicm
changes to allow the status line to be entirely configured with a single option. Now that it is possible to configure their content, enable the existing code that lets the status line be multiple lines in height. The status option can now take a value of 2, 3, 4 or 5 (as well as the previous on or off) to configure more than one line. The new status-format array option configures the format of each line, the default just references the existing status-* options, although some of the more obscure status options may be eliminated in time. Additions to the #[] syntax are: "align" to specify alignment (left, centre, right), "list" for the window list and "range" to configure ranges of text for the mouse bindings. The "align" keyword can also be used to specify alignment of entries in tree mode and the pane status lines.
2019-03-14Remove some unnecessary temporary variables and be much less strictnicm
about spacing in style_parse.
2019-03-14A little tidying in style_parse.nicm
2019-03-14Add a wrapper (struct style) around styles rather than using thenicm
grid_cell directly. There will be some non-cell members soon.
2017-03-22Add support for the strikethrough attribute (SGR 9), using the new smxxnicm
terminfo capability. This means there are now nine attribute bits, so anything above 0xff uses an extended cell.
2017-01-15Major tidy up and rework of options tree and set-option/show-optionsnicm
commands this pushes more of the code into options.c and ties it more closely to the options table rather than having an unnecessary split. Also add support for array options (will be used later). Only (intentional) user visible change is that show-options output is now passed through vis(3) with VIS_DQ so quotes are escaped.
2017-01-13options_get_style return const too.nicm
2017-01-12Simplify appending to string options.nicm
2016-07-15Instead of representing colours in several different forms with variousnicm
cell flags, convert to use an int with flags marking 256 or RGB colours in the top byte (except in cells, which we don't want to make any bigger). From Brad Town.
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-09-14When the active pane changes, redraw panes if the style hasnicm
changed. From Cam Hutchison.
2015-05-07Style spacing nits.nicm
2015-04-15Fix setting old-style window -fg/-bg/-attr options that aren't global.nicm
2015-02-18When given an invalid style, don't set the option to the default. Fixnicm
from J Raynor. Also make style_parse not alter the grid_cell when it fails.
2014-10-20Tidy up some includes.nicm
2014-05-08Handle colour 8 properly in the 256 colour palette, from Timothy Allen.nicm
2014-02-22Fix -fg/-bg/-style with 256 colour terminals.nicm
2014-01-28Allow replacing each of the many sets of separate foo-{fg,bg,attr}nicm
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.