OpenBSD CVS

CVS log for src/usr.bin/tmux/tty-features.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.30 / (download) - annotate - [select for diffs], Tue Nov 14 15:38:33 2023 UTC (6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Use SM 2026 for Sync which is more widely supported now.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Sep 2 09:17:23 2023 UTC (8 months, 2 weeks ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Setulc only does RGB colour so add Setulc1 to do non-RGB colours, GitHub
issue 3627.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Nov 11 08:44:11 2022 UTC (18 months, 1 week ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Tweak previous to set and log the feature instead of just setting the
flag.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Nov 11 08:37:55 2022 UTC (18 months, 1 week ago) by nicm
Branch: MAIN
Changes since 1.26: +13 -1 lines
Diff to previous 1.26 (colored)

Parse primary device attributes as well as secondary and add a SIXEL
flag (not used yet), from Anindya Mukherjee.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Aug 15 08:41:13 2022 UTC (21 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.25: +28 -28 lines
Diff to previous 1.25 (colored)

Add some const, from Markus F X J Oberhumer.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jun 30 09:55:53 2022 UTC (22 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.24: +15 -3 lines
Diff to previous 1.24 (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.24 / (download) - annotate - [select for diffs], Tue Jun 14 07:29:00 2022 UTC (23 months ago) by nicm
Branch: MAIN
Changes since 1.23: +77 -2 lines
Diff to previous 1.23 (colored)

kf* terminfo capabilities are poorly defined and rxvt uses them in a
different way from xterm, so add a feature flag for rxvt to make tmux
ignore the capabilities and instead rely on its builtin definitions.

Revision 1.23 / (download) - annotate - [select for diffs], Mon May 30 12:57:31 2022 UTC (23 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

iTerm2 has OSC 7, from Gregory Anders.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Mar 24 09:05:57 2022 UTC (2 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.21: +14 -1 lines
Diff to previous 1.21 (colored)

Add a capability for OSC 7 and use it similarly to how the title is set
(and controlled by the same set-titles option). GitHub issue 3127.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Dec 21 14:57:28 2021 UTC (2 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Support underscore style with capture-pane -e, GitHub issue 2928.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jun 10 07:59:08 2021 UTC (2 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.19: +15 -4 lines
Diff to previous 1.19 (colored)

Feature for the mouse since FreeBSD termcap does not have kmous.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jun 10 07:28:45 2021 UTC (2 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.18: +12 -3 lines
Diff to previous 1.18 (colored)

Three changes to fix problems with xterm in VT340 mode, reported by
Thomas Sattler.

1) Do not include the DECSLRM or DECFRA features for xterm; they will be
   added instead if secondary DA responds as VT420 (this happens
   already).

2) Set or reset the individual flags after terminal-overrides is
   applied, so the user can properly disable them.

3) Add a capability for DECFRA ("Rect").

Revision 1.18 / (download) - annotate - [select for diffs], Mon Oct 5 09:53:01 2020 UTC (3 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored)

Use the setal capability as well as (tmux's) Setulc.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 18 02:53:47 2020 UTC (3 years, 10 months ago) by daniel
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Properly escape a backslash.

Found by CompCert which notes that \E is not a valid escape sequence.

ok nicm@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jun 4 10:36:28 2020 UTC (3 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.15: +11 -6 lines
Diff to previous 1.15 (colored)

Shorten some long lines.

Revision 1.15 / (download) - annotate - [select for diffs], Tue May 19 10:59:09 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Some other ctrl keys need to be translated with extended keys on.

Revision 1.14 / (download) - annotate - [select for diffs], Sat May 16 16:44:54 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.13: +16 -3 lines
Diff to previous 1.13 (colored)

Add a terminal feature for enable/disable extended keys (supported by
xterm and mintty) and add an option to make tmux send it. Only forward
extended keys if the application has requested them, even though we use
the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as
well.

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

Instead of having a default set of terminals in terminal-overrides that
get XT added and using that as a marker for xterm(1)-like, assume that
if the terminfo(5) entry already has XT or the clear capability starts
with CSI then the terminal is VT100-like and it should be safe to send
DA requests. The DA responses trigger additional features being added.

Revision 1.12 / (download) - annotate - [select for diffs], Sat May 16 14:39:40 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.11: +36 -24 lines
Diff to previous 1.11 (colored)

Add feature and capabilities for focus reporting. Also document AX and
XT even though they aren't tmux's, and add some bits for rxvt.

Revision 1.11 / (download) - annotate - [select for diffs], Sat May 16 14:34:44 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.10: +18 -6 lines
Diff to previous 1.10 (colored)

Add a feature for bracketed paste.

Revision 1.10 / (download) - annotate - [select for diffs], Sat May 16 14:31:35 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.9: +17 -5 lines
Diff to previous 1.9 (colored)

Add a feature for strikethrough.

Revision 1.9 / (download) - annotate - [select for diffs], Sat May 16 14:30:17 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.8: +38 -2 lines
Diff to previous 1.8 (colored)

Move terminal features into a single file.

Revision 1.8 / (download) - annotate - [select for diffs], Sat May 16 14:26:33 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Build list of paths and weed out duplicates before loading configs, and
add TMUX_SOCK like TMUX_PATH for the socket directory.

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

Add extension terminfo(5) capabilities for margins.

Revision 1.6 / (download) - annotate - [select for diffs], Sat May 16 14:16:25 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Remove support for iTerm2's DSR 1337 extension and use the CSI > q
extension now supported by a few different terminals.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 21 13:48:56 2020 UTC (4 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Move the background colour to clear with (if any) up as well as the data
when scrolling, redraw problem reported by sthen@.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Apr 21 10:37:11 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

256 and RGB features can imply AX (for aixterm colours).

Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 20 15:37:32 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.2: +6 -3 lines
Diff to previous 1.2 (colored)

Apply terminal-overrides after terminal detection, it always takes
precedence.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 20 13:38:48 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.1: +2 -3 lines
Diff to previous 1.1 (colored)

Change the Sync capability to be a string instead of a flag.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Apr 20 13:25:36 2020 UTC (4 years ago) by nicm
Branch: MAIN

Tidy up the terminal detection and feature code and add named sets of
terminal features, each of which are defined in one place and map to a
builtin set of terminfo(5) capabilities. Features can be specified based
on TERM with a new terminal-features option or with the -T flag when
running tmux. tmux will also detect a few common terminals from the DA
and DSR responses.

This is intended to make it easier to configure tmux's use of
terminfo(5) even in the presence of outdated ncurses(3) or terminfo(5)
databases or for features which do not yet have a terminfo(5) entry.
Instead of having to grok terminfo(5) capability names and what they
should be set to in the terminal-overrides option, the user can
hopefully just give tmux a feature name and let it do the right thing.

The terminal-overrides option remains both for backwards compatibility
and to allow tweaks of individual capabilities.

tmux already did much of this already, this makes it tidier and simpler
to configure.

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.