OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26 / (download) - annotate - [select for diffs], Tue Jan 3 11:43:24 2023 UTC (16 months, 2 weeks ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.25: +42 -2 lines
Diff to previous 1.25 (colored)

Query the client terminal for foreground and background colours and if
OSC 10 or 11 is received but no colour has been set inside tmux, return
the colour from the first attached client (probably most people will
have all light or or all dark terminals).

Revision 1.25 / (download) - annotate - [select for diffs], Thu Mar 24 12:07:25 2022 UTC (2 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Add unit (milliseconds) to escape-time, show unset colours as "none"
rather than "invalid" and don't show the same text twice for user
options in customize mode.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Nov 1 07:48:04 2021 UTC (2 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Fix a comparison, from Ben Boeckel, and a crash when opening completion
menu, from Anindya Mukherjee.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Oct 25 21:21:16 2021 UTC (2 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.22: +16 -1 lines
Diff to previous 1.22 (colored)

Add a way to force a colour to RGB and a format to display it.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Aug 14 14:00:07 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Do not use NULL palette when clearing.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Aug 11 20:49:55 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.20: +113 -1 lines
Diff to previous 1.20 (colored)

Break the colour palette into a struct rather than just a single array
and use that to support the OSC palette-setting sequences in popups.
Also add a pane-colours array option to specify the defaults. GitHub
issue 2815.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Feb 15 09:39:37 2021 UTC (3 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.19: +611 -2 lines
Diff to previous 1.19 (colored)

Support X11 colour names and some other variations for OSC 10/11, also
add OSC 110 and 111. GitHub issue 2567.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Aug 25 11:35:32 2020 UTC (3 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.18: +7 -1 lines
Diff to previous 1.18 (colored)

Allow colour to be spelt as color, from Boris Verkhovsky. GitHub issue
2317.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jun 27 15:17:41 2019 UTC (4 years, 10 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.17: +80 -6 lines
Diff to previous 1.17 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Wed Mar 13 21:39:21 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

The pane's style should be initialized to default before parsing the
argument.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 25 15:13:38 2018 UTC (5 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.15: +8 -3 lines
Diff to previous 1.15 (colored)

Add a "terminal" colour which can be used instead of "default" in style
options for the terminal default colour, bypassing any inheritance from
other options. Prompted by a discussion with abieber@.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Mar 24 07:14:27 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.14: +2 -2 lines
Diff to previous 1.14 (colored)

Show count of search results in copy mode.

Revision 1.14 / (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.13: +25 -18 lines
Diff to previous 1.13 (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.13 / (download) - annotate - [select for diffs], Mon Jun 6 10:12:58 2016 UTC (7 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.12: +53 -303 lines
Diff to previous 1.12 (colored)

Much faster (and smaller) method of mapping RGB colour to an xterm(1)
colour, from Avi Halachmi.

Revision 1.12 / (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.11: +2 -2 lines
Diff to previous 1.11 (colored)

I no longer use my SourceForge address so replace it.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 5 22:50:27 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.10: +6 -5 lines
Diff to previous 1.10 (colored)

Use ints for the calculations rather than u_char, they could end up
signed.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 5 22:33:39 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.9: +17 -19 lines
Diff to previous 1.9 (colored)

Handle the RGB colour escape sequence (\033[38;2;<r>;<g>;<b>m and 48;2)
like xterm(1) does, by mapping to the nearest in the 256 colour palette.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 5 22:01:17 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.8: +294 -87 lines
Diff to previous 1.8 (colored)

Use fixed colour tables rather than generated and do a quick search for
exact match before doing the distance comparison.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Mar 31 17:45:10 2015 UTC (9 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Fix some format specifier nits, from Ben Boeckel.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 7 23:43:41 2015 UTC (9 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.6: +9 -9 lines
Diff to previous 1.6 (colored)

Check for \0 in the right place, from J Raynor.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Mar 27 11:17:12 2013 UTC (11 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.5: +1 -27 lines
Diff to previous 1.5 (colored)

Remove tmux's (already minimal) 88 colour support. Such terminals are
few and unnecessary.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jan 21 08:23:12 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.4: +41 -1 lines
Diff to previous 1.4 (colored)

Add strings to allow the aixterm bright colours to be used when
configuring colours, requested by Elliott Cable a few months ago.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 22 10:14:15 2011 UTC (12 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.3: +6 -8 lines
Diff to previous 1.3 (colored)

There is no need to use sqrt()/INFINITY here which simplifies the code
and makes it more portable, from Havard Eidnes.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 8 00:48:54 2011 UTC (13 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.2: +118 -3 lines
Diff to previous 1.2 (colored)

Accept colours of the hex form #ffffff and translate to the nearest from
the xterm(1) 256-colour set.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Sep 10 17:16:24 2009 UTC (14 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.1: +41 -2 lines
Diff to previous 1.1 (colored)

Permit options such as status-bg to be configured using the entire 256 colour
palette by setting "colour0" to "colour255".

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jun 1 22:58:49 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6

Import tmux, a terminal multiplexor allowing (among other things) a single
terminal to be switched between several different windows and programs
displayed on one terminal be detached from one terminal and moved to another.

ok deraadt pirofti

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.