OpenBSD CVS

CVS log for src/usr.bin/tmux/style.c


[BACK] Up to [local] / src / usr.bin / tmux

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34 / (download) - annotate - [select for diffs], Mon Jan 22 16:34:46 2024 UTC (3 months, 3 weeks ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Increase buffer size to avoid truncating styles, GitHub issue 3809 from
Ricardo Bittencourt.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Aug 17 14:10:28 2023 UTC (9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.32: +59 -7 lines
Diff to previous 1.32 (colored)

Add a session, pane and user mouse range types for the status line and
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.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jun 26 07:17:40 2023 UTC (10 months, 3 weeks ago) by nicm
Branch: MAIN
Changes since 1.31: +16 -1 lines
Diff to previous 1.31 (colored)

Add "us" to styles for underscore colour, GitHub issue 3589.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jun 30 09:55:53 2022 UTC (22 months, 2 weeks ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Add support for OSC 8 hyperlinks (a VTE extension now supported by other
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.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Aug 12 20:46:30 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Make newline a style delimiter as well so they can cross multiple lines
for readability.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 11 06:41:04 2021 UTC (3 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.28: +5 -1 lines
Diff to previous 1.28 (colored)

Add an "absolute-centre" alignment to use the centre of the total space
instead of only the available space. From Magnus Gross in GitHub issue 2578.

Revision 1.28 / (download) - annotate - [select for diffs], Sat May 16 16:02:24 2020 UTC (4 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.27: +7 -2 lines
Diff to previous 1.27 (colored)

Add a customize mode where keys and options may be browsed and changed,
includes adding a brief description of each option. Bound to "C" by
default.

Revision 1.27 / (download) - annotate - [select for diffs], Sat May 16 15:01:31 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.26: +28 -8 lines
Diff to previous 1.26 (colored)

Drop having a separate type for style options and make them all strings,
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.

Revision 1.26 / (download) - annotate - [select for diffs], Sat May 16 14:53:23 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.25: +3 -28 lines
Diff to previous 1.25 (colored)

Use a grid cell not a style for the pane style.

Revision 1.25 / (download) - annotate - [select for diffs], Sat May 16 14:13:37 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Add an attribute for ACS.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Sep 15 21:42:57 2019 UTC (4 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.23: +20 -21 lines
Diff to previous 1.23 (colored)

Add push-default and pop-default in styles to change the default colours
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.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jul 6 20:37:29 2019 UTC (4 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Correctly clear underscore colour in grid_get_cell1, also fix struct
grid_cell to avoid padding. Fixes increased memory use reported by Suraj
N Kurapati.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 1 06:56:00 2019 UTC (4 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.21: +13 -1 lines
Diff to previous 1.21 (colored)

Add a "fill" style attribute to clear the entire format drawing area in
a colour, GitHub issue 1815.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jun 27 15:17:41 2019 UTC (4 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Add support for underscore colours with Setulc capability, mostly from
Kai Moschcau.

Revision 1.20 / (download) - annotate - [select for diffs], Sun May 12 18:16:33 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.19: +2 -4 lines
Diff to previous 1.19 (colored)

Fix some indentation and dead assignments.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 5 20:32:31 2019 UTC (5 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Fix some warnings, from Thomas Adam.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Mar 18 20:53:33 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.17: +107 -6 lines
Diff to previous 1.17 (colored)

Extend the #[] style syntax and use that together with previous format
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.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Mar 14 21:46:08 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.16: +31 -36 lines
Diff to previous 1.16 (colored)

Remove some unnecessary temporary variables and be much less strict
about spacing in style_parse.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Mar 14 10:19:52 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.15: +16 -17 lines
Diff to previous 1.15 (colored)

A little tidying in style_parse.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 14 09:53:52 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.14: +98 -56 lines
Diff to previous 1.14 (colored)

Add a wrapper (struct style) around styles rather than using the
grid_cell directly. There will be some non-cell members soon.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 22 07:16:54 2017 UTC (7 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.13: +2 -4 lines
Diff to previous 1.13 (colored)

Add support for the strikethrough attribute (SGR 9), using the new smxx
terminfo capability. This means there are now nine attribute bits, so
anything above 0xff uses an extended cell.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 15 20:48:41 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.12: +1 -50 lines
Diff to previous 1.12 (colored)

Major tidy up and rework of options tree and set-option/show-options
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.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jan 13 11:58:49 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

options_get_style return const too.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 12 15:36:35 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Simplify appending to string options.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jul 15 00:42:56 2016 UTC (7 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.9: +30 -77 lines
Diff to previous 1.9 (colored)

Instead of representing colours in several different forms with various
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.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jan 19 15:59:12 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

I no longer use my SourceForge address so replace it.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Sep 14 11:34:50 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.7: +13 -1 lines
Diff to previous 1.7 (colored)

When the active pane changes, redraw panes if the style has
changed. From Cam Hutchison.

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 7 11:42:56 2015 UTC (9 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Style spacing nits.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Apr 15 15:44:40 2015 UTC (9 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.5: +11 -3 lines
Diff to previous 1.5 (colored)

Fix setting old-style window -fg/-bg/-attr options that aren't global.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Feb 18 15:32:37 2015 UTC (9 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.4: +17 -11 lines
Diff to previous 1.4 (colored)

When given an invalid style, don't set the option to the default. Fix
from J Raynor. Also make style_parse not alter the grid_cell when it
fails.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Oct 20 23:27:14 2014 UTC (9 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

Tidy up some includes.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 8 05:53:29 2014 UTC (10 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored)

Handle colour 8 properly in the 256 colour palette, from Timothy Allen.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Feb 22 01:38:47 2014 UTC (10 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.1: +21 -7 lines
Diff to previous 1.1 (colored)

Fix -fg/-bg/-style with 256 colour terminals.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jan 28 23:07:09 2014 UTC (10 years, 3 months ago) by nicm
Branch: MAIN

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 form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.