Thomas Adam
47a5afe5bf
Merge branch 'obsd-master'
2020-06-05 12:01:18 +01:00
nicm
c908d2039f
Fix various confusion about am vs xenl.
2020-06-05 09:32:15 +00:00
Nicholas Marriott
2ac6cc2633
Put headers back how they were.
2020-05-22 17:34:30 +01:00
Nicholas Marriott
a48cc458a6
Maybe this is better.
2020-05-22 17:27:07 +01:00
Nicholas Marriott
1fdacba111
Think Solaris needs term.h here.
2020-05-22 17:24:42 +01:00
Nicholas Marriott
87a59efc94
Log ncurses and utf8proc versions.
2020-05-22 17:14:35 +01:00
nicm
0ab82d9531
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.
2020-05-16 16:44:54 +00:00
nicm
7dbe623156
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.
2020-05-16 14:46:14 +00:00
nicm
4e0a718666
Add extension terminfo(5) capabilities for margins.
2020-05-16 14:22:51 +00:00
Nicholas Marriott
6d92b99dbc
Add a terminal feature for enable/disable extended keys (supported by xterm and
...
mintty) and add an option to make tmux send it.
2020-05-15 16:15:24 +01:00
Nicholas Marriott
f3d6d4e802
CUD is not a requirement and tweak some comments.
2020-04-24 16:47:38 +01:00
Nicholas Marriott
527f66ed23
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.
This is all to detect extensions if terminfo(5) is wrong or inadequate. If it
fails, tmux will just fall back to using the capabilities in the terminfo(5)
entry alone.
2020-04-24 15:52:44 +01:00
Nicholas Marriott
61550ac2e0
Add feature and capabilities for focus reporting. Also document AX and XT even
...
though they aren't tmux's.
2020-04-24 07:37:11 +01:00
Nicholas Marriott
5d69b9c4a7
Add a feature for bracketed paste.
2020-04-24 07:13:02 +01:00
Nicholas Marriott
ac91635f82
Add extension terminfo(5) capabilities for margins.
2020-04-23 12:12:02 +01:00
Thomas Adam
5653bc8287
Merge branch 'obsd-master'
2020-04-23 12:01:26 +01:00
nicm
766b425d05
Overrides need to be applied both before and after features in case they
...
change flags used to detect a feature.
2020-04-23 10:22:53 +00:00
Thomas Adam
32c3fe40eb
Merge branch 'obsd-master'
2020-04-20 17:43:20 +01:00
Thomas Adam
c706aadf52
Merge branch 'obsd-master'
2020-04-20 17:42:29 +01:00
nicm
117ec1b2e6
Apply terminal-overrides after terminal detection, it always takes
...
precedence.
2020-04-20 15:37:32 +00:00
nicm
135bb1edee
Change the Sync capability to be a string instead of a flag.
2020-04-20 13:38:48 +00:00
nicm
c91b4b2e14
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.
2020-04-20 13:25:36 +00:00
Thomas Adam
5e38d26257
Merge branch 'obsd-master'
2020-04-16 16:01:35 +01:00
nicm
b2443aa2f9
Add support for the iTerm2 sychronized updates escape sequence which
...
drastically reduces flickering.
2020-04-16 13:35:24 +00:00
Thomas Adam
60ab714451
Merge branch 'obsd-master'
2020-01-28 12:01:28 +00:00
nicm
a6129e9974
If we can identify the terminal as iTerm2 or as tmux, we can be sure
...
they support 256 and RGB colours, so set those flags too.
2020-01-28 11:39:51 +00:00
Thomas Adam
e9b1294331
Merge branch 'obsd-master'
2020-01-12 22:01:26 +00:00
nicm
193e637de0
The terminal type was never as much use as I expected so remove it in
...
favour of a couple of flags for the features used (DECSLRM and DECFRA).
Also rename the flag for no xenl to be more obvious while here.
2020-01-12 21:07:07 +00:00
Thomas Adam
5f5f029e3b
Merge branch 'obsd-master'
2019-11-28 12:18:41 +00:00
nicm
bc5881c4d2
Long lines and spacing fixes.
2019-11-28 09:56:25 +00:00
Thomas Adam
eeedb43ae8
Merge branch 'obsd-master'
2019-10-03 12:01:25 +01:00
nicm
f4c7141f5d
Do not lazily use BUFSIZ for "I don't care what size" when building
...
strings because it is only guaranteed to be 256 bytes and even the
default 1024 is not always enough. Reported by Gregory Pakosz.
2019-10-03 10:24:05 +00:00
Thomas Adam
9b3fefc435
Merge branch 'obsd-master'
2019-08-06 07:02:33 +01:00
nicm
45f4ff5485
Add support for the SD (scroll down) escape sequence, GitHub issue 1861.
2019-08-05 06:42:02 +00:00
Thomas Adam
e483ce138f
Merge branch 'obsd-master'
2019-06-27 17:02:26 +01:00
nicm
dae2868d12
Add support for underscore colours with Setulc capability, mostly from
...
Kai Moschcau.
2019-06-27 15:17:41 +00:00
Thomas Adam
414208aab1
Merge branch 'obsd-master'
2019-05-29 23:02:25 +01:00
nicm
7dced37673
Use VIS_CSTYLE for the arguments and add the missing escapes it can
...
generate to the parser.
2019-05-29 20:05:14 +00:00
Thomas Adam
1eefbd28e8
Merge branch 'obsd-master'
2019-05-13 23:02:26 +01:00
nicm
1ee944a19d
Add support for overline (SGR 53), from Ricardo Banffy.
2019-05-13 20:10:23 +00:00
Thomas Adam
7c4a2253e8
Merge branch 'obsd-master'
2019-04-25 21:02:43 +01:00
nicm
2d65bbd941
options_array_item_value cannot return NULL.
2019-04-25 19:36:59 +00:00
Thomas Adam
c869366133
Merge branch 'obsd-master'
2019-04-23 23:02:42 +01:00
nicm
772b3b7a06
Indicate an array option with a flag rather than a special type so that
...
in future will not have to be strings.
2019-04-23 20:36:55 +00:00
Thomas Adam
acb2413852
Merge branch 'obsd-master'
2019-03-18 15:07:51 +00:00
nicm
ce6be7afd4
Make array options a sparse tree instead of an array of char * and
...
remove the size limit.
2019-03-18 11:58:40 +00:00
nicm
bc0e527f32
Support for extended underline styles on terminals which offer them,
...
enabled by adding the Smulx capability with terminal-overrides (add
something like ',vte*:Smulx=\E[4\:%p1%dm'). GitHub issue 1492.
2018-10-18 07:57:57 +00:00
Nicholas Marriott
018f1b8a80
Use :: for escaping : in terminal-overrides not \:.
2018-10-08 19:42:55 +01:00
Nicholas Marriott
4b9e76aaaa
Support for extended underline styles, enabled by adding the Smulx
...
capability with terminal-overrides (add something like
'vte*:Smulx=\E[4\:%p1%dm'). GitHub issue 1492.
2018-10-08 13:21:37 +01:00
Nicholas Marriott
621bb15b83
Cast parameters to tparm, from Christos Zoulas via Leonardo Taccari.
2018-09-05 08:42:17 +01:00