Thomas Adam
96244dd727
Merge branch 'obsd-master'
2025-06-20 18:01:08 +01:00
Thomas Adam
b38b5d3df2
Merge branch 'obsd-master'
2025-06-20 16:01:08 +01:00
nicm
ad3e6ff054
Add noattr and use in mode-style to allow whether attributes are ignored
...
or used to be configured. GitHub issue 4498.
2025-06-20 14:54:33 +00:00
nicm
522652913f
Add S: to list sessions with modifiers for sorting, from Michael Grant.
2025-06-20 13:31:59 +00:00
Thomas Adam
43e88c892d
Merge branch 'obsd-master'
2025-06-16 02:01:07 +01:00
nicm
d82d9468b4
Expand mode-style with E: so # is correctly processed, GitHub issue
...
4533.
2025-06-15 22:24:51 +00:00
nicm
d7f75ac985
Do not replace SHELL when using /bin/sh. From someone in GitHub issue 4528.
2025-06-15 21:57:58 +00:00
Thomas Adam
1dbceaa790
Merge branch 'obsd-master'
2025-05-28 14:01:08 +01:00
nicm
77ca59acac
Add missing theme hooks, from Eric NICOLAS in GitHub issue 4519.
2025-05-28 09:53:57 +00:00
Thomas Adam
7be0613657
Merge branch 'obsd-master'
2025-05-22 12:01:07 +01:00
Thomas Adam
b9ad9186fe
Merge branch 'obsd-master'
2025-05-22 10:01:08 +01:00
nicm
3f4b154b70
Bump UTF8_SIZE to the maximum 32 because there are some crazy long UTF-8
...
sequences out there (GitHub issue 4506). This should not significantly
increase typical memory consumption because we only store each Unicode
character once in the shared cache.
2025-05-22 08:01:29 +00:00
Nicholas Marriott
ff73c95547
New bash completion URL, from David Mandelberg.
2025-05-22 08:52:10 +01:00
Nicholas Marriott
aa0d05f676
Typos, from someone in GitHub issue 4511.
2025-05-22 08:51:14 +01:00
nicm
545832e9fa
Typo, from someone in GitHub issue 4511.
2025-05-22 07:49:24 +00:00
nicm
a0ac2a5d63
When there are more than two horizontal windows and the active window is
...
in not on an edge, correctly highlight both its left and right borders.
GitHub issue 4513 from Michael Grant.
2025-05-22 07:46:38 +00:00
nicm
833c7fbf6d
Add a set-default style attribute which replaces the current default
...
colours and attributes completely, useful at the start of compound
format strings (like status-format) to set the default colours for all
the following options.
2025-05-22 07:43:38 +00:00
Thomas Adam
faf2a44890
Merge branch 'obsd-master'
2025-05-12 14:01:10 +01:00
Thomas Adam
d194ceb604
Merge branch 'obsd-master'
2025-05-12 12:01:10 +01:00
nicm
37a2c98d3d
Expand prompts when they are used rather than ahead of time, so the
...
input can be used as part of the format.
2025-05-12 10:34:13 +00:00
nicm
79b02998a6
Add R format modifier to repeat an argument.
2025-05-12 10:26:19 +00:00
nicm
1ce1e7ef27
Add -E to run-shell to forward stderr as well as stdout, from github at
...
jyn dot dev in GitHub issue 4246.
2025-05-12 10:16:42 +00:00
nicm
7499d925da
Do not downgrade styled underscores to standard underscore if the
...
terminal does not support them, this matches what would happen if the
application tried to use them on a terminal without support.
2025-05-12 09:50:00 +00:00
nicm
367f17a4ff
Preserve colours in selection if the option style is default, GitHub
...
issue 4498.
2025-05-12 09:17:42 +00:00
Thomas Adam
3d2b26dcfe
Merge branch 'obsd-master'
2025-05-01 10:01:11 +01:00
nicm
6106a0f2c4
Add an option variation-selector-always-wide to instruct tmux not to
...
always interpret VS16 as a wide character and assume the terminal does
likewise. This is behaviour seen in a number of newer terminals' Unicode
14 support but not in older terminals; it seems to be a little
contentious and is currently difficult to detect.
Probably in the long run tmux should pick a behaviour, look at a (new)
terminfo(5) capability to tell it what the terminal will do, and emulate
as required, but at this point I'm not sure that is worth it for
something where support is mixed, seems to be in flux, and that mostly
only matters for emojis.
GitHub issues 3923 and 4475 and others before that.
2025-05-01 07:12:00 +00:00
nicm
1926c1b683
Don't map 256 to white-on-white either, and tidy code a bit.
2025-05-01 06:59:32 +00:00
Nicholas Marriott
6cc1a607fc
optarg should be "extern char *" not "extern const char *".
2025-05-01 07:53:02 +01:00
Nicholas Marriott
1905afb3d8
tmux has its own warnx so there is no need for logit (and this gets rid of a
...
warning).
2025-04-29 17:39:56 +01:00
Nicholas Marriott
345a45083d
Run the regress/style-trim.sh test in a plain Bash session, from Koichi Murase.
2025-04-29 17:29:32 +01:00
Nicholas Marriott
3a3babf597
Use printf not echo, from Koichi Murase.
2025-04-28 14:51:27 +01:00
Nicholas Marriott
f367e3a6c8
Switch to getopt_long from OpenSSH, from Koichi Murase in GitHub issue 4492.
2025-04-28 09:02:15 +01:00
Nicholas Marriott
f2283b0cb5
Fix some regress tests.
2025-04-28 08:57:29 +01:00
Nicholas Marriott
26081ac125
Create config.yml
2025-04-28 07:27:57 +01:00
Thomas Adam
36fba4cc54
Merge branch 'obsd-master'
2025-04-25 16:01:08 +01:00
Thomas Adam
58b4286edb
Merge branch 'obsd-master'
2025-04-25 14:01:10 +01:00
nicm
b0b6a6f665
Revert change to handle command parsing failures in the client because
...
it breaks aliases.
2025-04-25 12:25:32 +00:00
nicm
63e5989f53
Remove a stray period, reported by David Mandelberg.
2025-04-25 11:39:39 +00:00
Nicholas Marriott
9da5707d3e
Add a run-shell output test.
2025-04-25 12:06:51 +01:00
Thomas Adam
55292b72d1
Merge branch 'obsd-master'
2025-04-25 12:01:09 +01:00
Nicholas Marriott
06b1ad6241
Tests for boolean expressions from David Mandelberg.
2025-04-25 09:28:57 +01:00
nicm
1efe41b9b9
Add more features for boolean expressions in formats: 1) extend && and
...
|| to support arbitrarily many arguments and 2) add ! and !! for not and
not-not.
2025-04-25 08:28:21 +00:00
Nicholas Marriott
1198eed632
Currently the DCS dispatcher detects Sixel sequences based entirely on the
...
final character of the sequence, ignoring any intermediates. This means that
other DCS sequences with a q final (like DECRQSS), can be mistakenly
interpreted as Sixel. Add a check to make sure there are no intermediates
before dispatching potential Sixel sequences. From James Holderness in GitHub
issue 4488.
2025-04-25 08:26:26 +01:00
Thomas Adam
0772fe822a
Merge branch 'obsd-master'
2025-04-24 12:01:10 +01:00
nicm
f53fac1b56
Do not add a trailing / if there is nothing to follow it, Johannes
...
Altmanninger in GitHub issue 4472.
2025-04-24 08:55:40 +00:00
nicm
68f2ac9296
Fix examples with too many backslashes, pointed out by David Mandelberg.
2025-04-24 08:54:40 +00:00
Thomas Adam
b4f8340f16
Merge branch 'obsd-master'
2025-04-22 16:01:12 +01:00
nicm
d2f73c17d5
Add calls to layout_fix_panes after a pane swap to fix case if one of
...
the panes is in alternate screen mode and had a scrollbar. From Michael
Grant in GitHub issue 4481.
2025-04-22 12:36:03 +00:00
nicm
5db914b745
Add notes to menu keys, from someone in GitHub issue 4478.
2025-04-22 12:34:56 +00:00
nicm
cd3d2910ee
Fix description of pane_in_mode, from Julian Prein in GitHub issue 4469.
2025-04-22 12:33:35 +00:00
Nicholas Marriott
de7653f5a4
Update format tests for #? changes, from David Mandelberg.
2025-04-22 13:23:33 +01:00
nicm
b905039ed2
Improve #? conditional expression in formats:
...
1) add support for else if, so
#{?cond1,value1,#{?cond2,value2,else-value}} can be changed to
#{?cond1,value1,cond2,value2,else-value};
2) add default empty string if there's no else value, so
#{?cond1,value1,} can be changed to #{?cond1,value1}.
From David Mandelberg in GitHub issue 4451.
2025-04-22 12:23:26 +00:00
Nicholas Marriott
f0a85d0469
Move cgroup dbus requests to the child to avoid a race where a spawned child
...
that quickly forks will have only the parent process moved to the newly created
cgroup. From Daniel De Graaf, GitHub issue 4435.
2025-04-14 07:27:02 +01:00
Thomas Adam
ac2779f4d8
Merge branch 'obsd-master'
2025-04-09 10:01:12 +01:00
nicm
68ffe65499
Fix documentation around optional arguments. This includes:
...
- Syncing between the usage string in code and in the man page.
- Adding optional arguments that were not mentioned (such as
shell-command arguments).
- Adding square brackets around arguments that are actually optional.
From Julian Prein (julian at druck dot dev) in GitHub issue 4419.
2025-04-09 07:03:04 +00:00
nicm
3e14e7c48b
Formats can use environment variables, from David Mandelberg.
2025-04-09 06:51:31 +00:00
nicm
b526e678b5
Make some usages more consistent and add -h to show usage, GitHub issue
...
4455 from David Mandelberg.
2025-04-09 06:27:43 +00:00
Thomas Adam
d3c39375d5
Merge branch 'obsd-master'
2025-04-03 14:01:10 +01:00
nicm
a7991dcbad
Fix padding for word function as well, GitHub issue 4425.
2025-04-03 11:52:25 +00:00
nicm
47dff97834
Use backing grid for word in copy mode for wrapped flags, from someone
...
in GitHub issue 4447.
2025-04-03 11:51:27 +00:00
Thomas Adam
2905395695
Merge branch 'obsd-master'
2025-04-02 12:01:13 +01:00
nicm
4bf38da4d4
Only align panes and windows, not sessions, from David Mandelberg in
...
GitHub issue 4444.
2025-04-02 09:31:00 +00:00
nicm
9b37b9285e
Popup window should not be draggable while mouse still pressed, and do
...
not try to work out theme if no pane. From Michael Grant in GitHub issue
4330.
2025-04-02 09:12:05 +00:00
Thomas Adam
dfdced2ab1
Merge branch 'obsd-master'
2025-03-31 00:01:10 +01:00
Nicholas Marriott
c2a95a372f
Add a note about closed issues, from David Mandelberg.
2025-03-30 23:04:22 +01:00
nicm
ef923d28ff
Do not try to trigger theme changed if session is NULL.
2025-03-30 22:01:55 +00:00
nicm
53b0e0bc02
Missing space, from David Mandelberg.
2025-03-30 21:47:01 +00:00
Thomas Adam
096c4b3e63
Merge branch 'obsd-master'
2025-03-28 20:01:10 +00:00
Thomas Adam
b8189d6ee3
Merge branch 'obsd-master'
2025-03-28 18:01:11 +00:00
nicm
f41dc91357
Only copy the key string not two bytes extra, found by David Mandelberg.
2025-03-28 17:15:25 +00:00
nicm
ef0c12ad9e
Fix read of uninitialized memory for jobs with JOB_PTY flag. From David
...
Mandelberg.
2025-03-28 17:03:49 +00:00
Thomas Adam
9e1f110db0
Merge branch 'obsd-master'
2025-03-24 22:01:11 +00:00
nicm
483b2b3edb
Correctly skip wide characters in hyperlinks, from someone in GitHub
...
issue 4425.
2025-03-24 20:17:24 +00:00
nicm
34a35b0f09
Expand formats with the pane modifier in tree mode so that #() doesn't
...
always use the same value. From Michael Grant in GitHub issues 4412 and
4420.
2025-03-24 20:13:03 +00:00
nicm
aca3ffb30a
Add default-client-command to set the command used is tmux is run
...
without a command (the default stays new-session). From David Mandelberg
in GitHub issue 4422.
2025-03-24 20:01:03 +00:00
Thomas Adam
c3c4524def
Merge branch 'obsd-master'
2025-03-21 16:01:11 +00:00
nicm
f101762d1b
Fix mouse_hyperlink format in copy mode. From someone in GitHub issue
...
4418.
2025-03-21 14:04:26 +00:00
nicm
a541be3951
Add S-Up and S-Down to move windows in tree mode. From David Mandelberg
...
in GitHub issue 4415.
2025-03-21 13:36:42 +00:00
nicm
b7d640e764
Add some additional cursor format variables. From shiro at usagi dot io
...
in GitHub issue 4414.
2025-03-21 13:26:39 +00:00
Thomas Adam
969f6a60c3
portable: SYNCING: correct tmux-openbsd
...
The tmux-openbsd repository is called tmux-obsd.
Noticed via Github issue #4419
2025-03-21 12:46:06 +00:00
Thomas Adam
6703cb85d9
Merge branch 'obsd-master'
2025-03-21 04:01:10 +00:00
jsg
111e16e772
remove prototypes for removed functions
2025-03-21 02:10:42 +00:00
Thomas Adam
3eb93383a3
Merge branch 'obsd-master'
2025-03-17 22:01:10 +00:00
nicm
817b621d20
If there is an active query, set escape time temporarily to a higher
...
value (the old default - 500). Some Windows terminals are very slow to
respond, or the network may be slow. From github at jyn dot dev.
2025-03-17 20:43:29 +00:00
nicm
5eb30c1543
Handle padding cells correctly for regular expression searching, GitHub issue 4399 from
...
github at jyn dot dev.
2025-03-17 20:33:20 +00:00
Thomas Adam
d4b8635f50
Merge branch 'obsd-master'
2025-03-11 10:01:12 +00:00
nicm
4e4fe3eb39
Cleanup window_get_active_at function. GitHub issue 4401 from Michael
...
Grant.
2025-03-11 08:14:26 +00:00
Thomas Adam
882fb4d295
Merge branch 'obsd-master'
2025-03-04 10:01:15 +00:00
nicm
eaf70c955b
Add mode 2031 support to automatically report dark or light theme. tmux
...
will guess the theme from the background colour on terminals which do
not themselves support the escape sequence. Written by Jonathan
Slenders, GitHub issue 4353.
2025-03-04 08:45:04 +00:00
nicm
3543d79048
Free fill character string if it cannot be used, GitHub issue 4394.
2025-03-04 08:03:19 +00:00
Thomas Adam
94783addfc
Merge branch 'obsd-master'
2025-02-26 10:01:14 +00:00
nicm
91c0de60b4
Also need the implied meta paste keys in the list for output.
2025-02-26 09:02:00 +00:00
nicm
21f7db4c4d
Do not allow meta prefix on paste start and end sequences, GitHub issue 4387.
2025-02-26 08:55:27 +00:00
nicm
f224d61f37
Document the use of ';' as a modifier separator, from Matt Liggett in
...
GitHub issue 4384.
2025-02-26 07:50:36 +00:00
nicm
d938ab5dd7
If command parsing fails in the client, report the error rather than
...
trying to send the command to the server. GitHub issue 4372 from Nikola
Tadic.
2025-02-26 07:47:46 +00:00
nicm
9a8f46e554
Fix colouring of pane border when scrollbars are enabled, GitHub issue
...
4378 from Michael Grant.
2025-02-26 07:42:52 +00:00
nicm
27ee0c9c3b
Add the width of the scrollbars to the calculation of the width of the
...
window panes when finding the adjacent panes, GitHub issue 4370 from
Michael Grant.
2025-02-26 07:39:50 +00:00
Thomas Adam
251a87e2d2
Merge branch 'obsd-master'
2025-02-20 16:01:14 +00:00
nicm
084e6ee9ec
Add a -M flag to capture-pane to use the copy mode screen, GitHub issue
...
4358.
2025-02-20 13:39:58 +00:00
nicm
18331e39bf
Reset overlay_resize pointer when clearing overlay.
2025-02-20 13:32:07 +00:00
Nicholas Marriott
250c88efdc
Add .swp, from Nikola Tadic.
2025-02-20 13:31:07 +00:00
Thomas Adam
9a377485be
Merge branch 'obsd-master'
2025-02-13 18:01:08 +00:00
nicm
47a56c11f2
Add a note about C-r and C-s behaviour, GitHub issue 4309.
...
Also add a missing word, from jmc@.
2025-02-13 16:31:25 +00:00
Nicholas Marriott
c4b9716873
Look for imsg_add not _init now.
2025-02-13 16:24:33 +00:00
Thomas Adam
ec119b2f9e
Merge branch 'obsd-master'
2025-02-10 10:01:11 +00:00
nicm
5d1a6acc84
Align index numbers in trees, from David Mandelberg, GitHub issue 4360.
2025-02-10 08:18:23 +00:00
nicm
80eb460fc9
Add display-message -C flag to update pane while message is displayed,
...
GitHub issue 4363 from Vitaly Ostrosablin.
2025-02-10 08:14:32 +00:00
Thomas Adam
ef68debc8d
Merge branch 'obsd-master'
2025-01-27 12:01:13 +00:00
nicm
4c12ac9fb8
Make list-commands command show only one command if an argument is
...
given, from Ilya Grigoriev in GitHub issue 4352.
2025-01-27 09:16:05 +00:00
nicm
244bb726e2
Add some missing spaces, from Ilya Grigoriev.
2025-01-27 09:05:22 +00:00
Nicholas Marriott
6ab268c7bb
Remove old issue template.
2025-01-20 13:06:03 +00:00
Nicholas Marriott
0c9f8ff189
Update issue templates
2025-01-20 13:02:24 +00:00
Nicholas Marriott
dd7d04be95
Update issue templates
2025-01-20 13:00:07 +00:00
Thomas Adam
58392d29da
Merge branch 'obsd-master'
2025-01-17 18:01:08 +00:00
nicm
9260f5dc96
Do not update focus on client's without a session.
2025-01-17 15:53:01 +00:00
Thomas Adam
62a6c16b43
Merge branch 'obsd-master'
2025-01-13 12:01:11 +00:00
nicm
31e8d4676a
Count line numbers correctly inside strings, reported by Pedro Navarro
...
in GitHub issue 4325.
2025-01-13 08:58:34 +00:00
Thomas Adam
d3cbe00f78
Merge branch 'obsd-master'
2025-01-12 16:01:11 +00:00
nicm
97fe3563fa
Do not crash if moving popup that has exited to a pane, from Michael
...
Grant in GitHub issue 4312.
2025-01-12 14:36:28 +00:00
nicm
37ad1e2f6d
Map bright black (colour 8) to white (7) if the background is black on
...
terminals with only eight colours so the text is not invisible. From
Dmytro Bagrii in GitHub issue 4322.
2025-01-12 14:20:49 +00:00
Thomas Adam
00894d188d
Merge branch 'obsd-master'
2025-01-02 12:01:10 +00:00
nicm
2a5eba7899
Check backspace against VERASE earlier before it is translated to an
...
internal key and do not go through the mapping on output. Fixes problems
reported by Ben Price in GitHub issue 4284 and by tb@.
2025-01-02 10:34:45 +00:00
Thomas Adam
bf30492d57
Merge branch 'obsd-master'
2025-01-01 18:01:10 +00:00
nicm
e00853ee82
Add an option allowing users to override the width of individual Unicode
...
codepoints (overriding tmux's default list).
2025-01-01 15:17:36 +00:00
Thomas Adam
e75f3a0060
Merge branch 'obsd-master'
2024-12-20 10:01:10 +00:00
nicm
eece41547e
Only map S-Tag in mode 2, not mode 1. GitHub issue 4304.
2024-12-20 07:10:51 +00:00
Thomas Adam
c311202b73
Merge branch 'obsd-master'
2024-12-17 10:01:11 +00:00
nicm
e149d29803
Assign excess space more evenly when spreading out cells, from Torbjorn
...
Lonnemark.
2024-12-17 08:40:24 +00:00
Thomas Adam
190ddda572
Merge branch 'obsd-master'
2024-12-16 12:01:12 +00:00
Thomas Adam
6b470c5222
Merge branch 'obsd-master'
2024-12-16 10:01:11 +00:00
nicm
6b32d195e8
Add a nesting limit to source-file, from Fadi Afani in GitHub issue
...
4223.
2024-12-16 09:13:09 +00:00
nicm
bec6ce54c1
Memory leak, GitHub issue 4298.
2024-12-16 08:54:34 +00:00
nicm
106d1c3538
Missing main-vertical-mirrored from layout list, from charlotte at
...
lottia dot net.
2024-12-16 08:51:41 +00:00
Thomas Adam
ae8f2208c9
Merge branch 'obsd-master'
2024-12-06 12:01:11 +00:00
nicm
5c3cf2f08b
Preserve modifiers on backspace.
2024-12-06 09:07:40 +00:00
nicm
102f34090d
Do not write bracketed paste keys themselves if the pane has not asked
...
for them.
2024-12-06 09:06:56 +00:00
Thomas Adam
99790c90aa
Merge branch 'obsd-master'
2024-12-04 22:01:08 +00:00
nicm
6d792e4123
Fix backspace option for new key format, GitHub issue 4284.
2024-12-04 19:11:15 +00:00
Thomas Adam
98e322d5a5
Merge branch 'obsd-master'
2024-12-03 14:01:12 +00:00
jmc
01edce40f3
M-1 to M-7 for 7 preset layouts; from bunkmate
...
ok nicm
2024-12-03 11:18:34 +00:00
Thomas Adam
0549f87ccc
Merge branch 'obsd-master'
2024-11-28 10:01:11 +00:00
nicm
72cd0eac29
Add extended keys flag for foot terminal.
2024-11-28 08:49:14 +00:00
Thomas Adam
f0c68533c4
Merge branch 'obsd-master'
2024-11-27 12:01:08 +00:00
Nicholas Marriott
9e4a9c51cc
Use evbuffer_readline if readln is not available. It doesn't work properly but
...
at least it builds.
2024-11-27 10:37:45 +00:00
Nicholas Marriott
6874ec0dcc
Remove endian.h.
2024-11-27 10:31:51 +00:00
Nicholas Marriott
252f41818e
Update imsg and remove workaround.
2024-11-27 10:30:52 +00:00
nicm
d361f21065
Do not check for latest client in callback since the type may be latest
...
but with no window, fixes new-session -x and -y with another attached
client. GitHub issue 4268.
2024-11-27 10:12:20 +00:00
nicm
feb090abb3
Do not stop drag on double or triple click, GitHub issue 4272.
2024-11-27 10:10:20 +00:00
Thomas Adam
db771ec6e3
Merge branch 'obsd-master'
2024-11-26 18:01:10 +00:00
nicm
6f7db82b18
Add copy-mode-position-style and copy-mode-selection-style for copy
...
mode (they default to mode-style as before).
2024-11-26 15:52:41 +00:00
nicm
67cc7f6dc6
Enter is now sent from single prompt as \r not empty string.
2024-11-26 15:51:48 +00:00
Thomas Adam
db978db271
Merge branch 'obsd-master'
2024-11-25 14:01:12 +00:00
nicm
363f35f076
Do not try to terminate an empty buffer.
2024-11-25 12:32:24 +00:00
Thomas Adam
49b7276f2a
Merge branch 'obsd-master'
2024-11-25 10:01:11 +00:00
nicm
f57131e11b
Use cursor style from global options instead of default for popups, from
...
Alexander Arch.
2024-11-25 08:36:46 +00:00
nicm
420af9e108
Do not rely on window reference count for linked formats because they
...
are also used for notifications, GitHub issue 4258.
2024-11-25 08:34:01 +00:00
Thomas Adam
ceaf9b7452
Merge branch 'obsd-master'
2024-11-22 14:01:11 +00:00
nicm
5fd45b3892
Do not strvis output to terminal from commands.
2024-11-22 12:58:05 +00:00
nicm
64d82d5988
Document command prompt escape sequence, from Von Welch.
2024-11-22 12:36:13 +00:00
Nicholas Marriott
0f308bd18f
imsg no longer associates file descriptors with the imsg they were sent with,
...
work around this for the moment (it is not clear if this is intentional).
2024-11-22 09:58:47 +00:00
Nicholas Marriott
1365f1ce52
Add an __unused.
2024-11-22 08:07:21 +00:00
Nicholas Marriott
7fc4e54efe
And arpa/inet.h needs to stay...
2024-11-22 08:06:30 +00:00
Nicholas Marriott
c98c08c232
Need to remove endian.h as well.
2024-11-22 08:05:02 +00:00
Nicholas Marriott
990c724bd8
Bring in updated imsg.
2024-11-22 08:03:55 +00:00
Thomas Adam
b82c7b40b0
Merge branch 'obsd-master'
2024-11-21 16:01:11 +00:00
claudio
70299c6646
Convert sbin and usr.bin to check for imsgbuf_init failure and add
...
imsgbuf_allow_fdpass where needed.
OK tb@
2024-11-21 13:35:20 +00:00
Thomas Adam
ea6c5053c8
Merge branch 'obsd-master'
2024-11-21 10:01:09 +00:00
nicm
3f4fd45d5c
Fix save-buffer documentation - it writes to stdout. From Ilya Grigoriev.
2024-11-21 07:37:21 +00:00
nicm
7c7e88253e
When the mouse clicked on the border between two horizontal panes, the
...
location was not being set properly. Pulled the checking of this into
separate function for clarity. Fixes dragging on horizontal pane border.
From Michael Grant.
2024-11-21 07:34:38 +00:00
Thomas Adam
bb94a5437d
Merge branch 'obsd-master'
2024-11-21 00:01:13 +00:00
nicm
273f9b2027
Fix word navigation on lines with tabs, from Alexander Arch.
2024-11-20 20:54:02 +00:00
Nicholas Marriott
b6d0b4be30
Define SD_ID128_UUID_FORMAT_STR if missing, from Marc Reisner.
2024-11-19 17:55:12 +00:00
Thomas Adam
2dce45f427
Merge branch 'obsd-master'
2024-11-18 10:01:12 +00:00
nicm
a3ede3106a
Check all %if in the list when deciding whether to process an
...
assignment, not just the most recent.
2024-11-18 08:29:35 +00:00
Thomas Adam
dd9722184b
Merge branch 'obsd-master'
2024-11-16 18:01:08 +00:00
nicm
a854e36f2b
Do not call layout_fix_panes if wp is NULL (that is, a popup).
2024-11-16 16:49:50 +00:00
Thomas Adam
be594ff8a4
Merge branch 'obsd-master'
2024-11-15 16:01:11 +00:00
nicm
c66628e52b
Add no-detach-on-destroy client option (useful for control mode
...
clients). From laur dot aliste at gmail dot com, GitHub issue 4242.
2024-11-15 14:09:04 +00:00
nicm
350a151ee4
Add two new style parameters, width and pad, which apply to scrollbars.
...
From Michael Grant, GitHub issue 4241.
2024-11-15 13:12:20 +00:00
Thomas Adam
d35458e3fe
Merge branch 'obsd-master'
2024-11-15 10:01:11 +00:00
nicm
d6883c0266
Turn off scrollbar when pane is in alternate screen, from Michael Grant,
...
GitHub issue 4231.
2024-11-15 09:01:16 +00:00
Thomas Adam
563ed05353
Merge branch 'obsd-master'
2024-11-12 12:01:10 +00:00
nicm
f527412d9b
Tidy up loop, from Alexander Arch.
2024-11-12 10:06:35 +00:00
nicm
713cacab1e
Mouse support on the scrollbars, from Michael Grant.
2024-11-12 09:32:56 +00:00
Thomas Adam
846f813565
Merge branch 'obsd-master'
2024-11-11 10:01:08 +00:00
nicm
c26d71d3e9
Add an option to control the input buffer size, from Ken Lau.
2024-11-11 08:41:05 +00:00
Thomas Adam
c8677d3272
Merge branch 'obsd-master'
2024-11-08 10:01:08 +00:00
nicm
596ea62dc3
Some fixes for searching for tabs, from Alexander Arch.
2024-11-08 08:51:36 +00:00
Thomas Adam
1fe30bb2e8
Merge branch 'obsd-master'
2024-11-06 20:33:45 +00:00
nicm
809d659e64
Xr to Ic, from jmc.
2024-11-05 21:07:19 +00:00
nicm
09f4e43189
Add support for a scrollbar at the side of each pane. New options
...
pane-scrollbars turn them on or off, pane-scrollbars-position sets the
position (left or right), and pane-scrollbars-style to set the colours.
Mouse support will come later. From Michael Grant in GitHub issue 4221.
2024-11-05 09:41:17 +00:00
Thomas Adam
679bbdcf8f
Merge branch 'obsd-master'
2024-11-04 10:01:09 +00:00
nicm
a0c79aa87b
Do not make padding cells extended (there can be a lot of them), from
...
Alexander Arch .
2024-11-04 08:52:13 +00:00
Nicholas Marriott
46f3846659
Add -Wno-macro-redefined for macOS.
2024-10-31 12:57:40 +00:00
Thomas Adam
bbc3cc558c
Merge branch 'obsd-master'
2024-10-28 10:01:08 +00:00
nicm
c8bd42de16
Match tab cells when searching, from Alexander Arch in GitHub issue
...
4201.
2024-10-28 08:16:51 +00:00
nicm
62e15e905b
Treat tabs as a word separator, from Alexander Arch in GitHub issue
...
4201.
2024-10-28 08:16:06 +00:00
nicm
125a7b9177
Fix issues in the command prompt: set PROMPT_QUOTENEXT after quoting
...
than before, meaning that accidentally scrolling the mouse wheel doesn't
break quoting; and move the cursor correctly over wide characters. From
Alexander Arch in GitHub issue 4212.
2024-10-28 08:11:59 +00:00
Thomas Adam
895044c52b
Merge branch 'obsd-master'
2024-10-25 22:01:10 +01:00
nicm
40c01c2d37
Allow tabs even on terminals without UTF-8, reported by jmc.
2024-10-25 19:36:38 +00:00
Thomas Adam
911d768b71
Merge branch 'obsd-master'
2024-10-25 18:01:11 +01:00
nicm
71a503e40c
Allow control characters to be entered at the command prompt prefixed
...
with with C-v, from Alexander Arch in GitHub issue 4206.
2024-10-25 15:32:51 +00:00
nicm
487b0ee124
Do not attempt to search for zero length strings, from Alexander Arch in
...
GitHub issue 4209.
2024-10-25 15:19:15 +00:00
nicm
eaec0a48f4
Do not stop stop at first padding in format_grid_line and handle tabs.
2024-10-25 15:13:10 +00:00
nicm
fdbc6cdea5
Flag tabs if possible in the grid cell so they can be preserved on
...
copying and capture-pane. From Alexander Arch in GitHub issue 4201.
2024-10-25 15:00:18 +00:00
Thomas Adam
9623ec3ee4
Merge branch 'obsd-master'
2024-10-25 10:01:07 +01:00
nicm
63582c154c
Add a helper function for cell data comparison, from Alexander Arch.
2024-10-25 07:57:49 +00:00
Thomas Adam
914815e70f
Merge branch 'obsd-master'
2024-10-21 16:01:07 +01:00
nicm
354926a956
Bump up the maximum for repeat-time (some people want it to be
...
effectively infinite).
2024-10-21 12:42:06 +00:00
nicm
df303770ea
Add function to get current offset from copy mode, from Michael Grant.
2024-10-21 12:39:49 +00:00
Thomas Adam
a269c33a54
Merge branch 'obsd-master'
2024-10-21 10:01:08 +01:00
nicm
eb04f9314b
Adjust how Ctrl and Meta keys are sent to use standard representation if
...
available in mode 1, from Stanislav Kljuhhin, GitHub issue 4188.
2024-10-21 07:38:06 +00:00
Thomas Adam
a9d0461839
Merge branch 'obsd-master'
2024-10-17 20:01:07 +01:00
nicm
71aa4fe767
Switch pane-colors and cursor-style options to be in alphabetical order,
...
from Teubel Gyorgy, GitHub issue 4191.
2024-10-17 17:22:01 +00:00
nicm
cfd3c02306
Allow attributes in menu style, from Japin Li in GitHub issue 4194.
2024-10-17 17:10:41 +00:00
Thomas Adam
35104059ed
Merge branch 'obsd-master'
2024-10-15 00:01:10 +01:00
nicm
934035db71
Set ACS flag for REP. Reported by Romain Francoise, GitHub issue 4182.
2024-10-14 20:26:45 +00:00
Nicholas Marriott
8ff65230e1
Optimize sixel_print. Previously, the algorithm scanned each pixel several
...
times; once to find out which colors are active, and then once for every single
active color to actually construct the output string.
Now it constructs the compressed sixel patterns in the first pass (now x * 12
iters), so we can reduce the second pass (the really expensive part, at active
colors * x * 6 iters) to just appending these to the output buffer.
From nincsnevem662 at gmail dot com in GitHub issue 4184.
2024-10-14 11:05:59 +01:00
Thomas Adam
cb00e869ea
Merge branch 'obsd-master'
2024-10-12 12:01:09 +01:00
nicm
f8b56fdc3f
Call realpath on the source file to match -f on the command line, GitHub
...
issue 4180.
2024-10-12 08:20:32 +00:00
nicm
2d8b6fcf23
Do not rename a buffer to itself, GitHub issue 4181.
2024-10-12 08:13:52 +00:00
Nicholas Marriott
6ddee22f81
Portable tmux needs to check ENABLE_SIXEL.
2024-10-10 12:07:29 +01:00
Thomas Adam
66c738bc10
Merge branch 'obsd-master'
2024-10-10 12:01:08 +01:00
nicm
bcc47add38
Add a sixel_support format variable which is 1 if SIXEL is supported
...
(always 0 on OpenBSD), requested by Misaki Masa in GitHub issue 4177
2024-10-10 10:41:33 +00:00
Thomas Adam
d326c51d79
Merge branch 'obsd-master'
2024-10-08 12:01:09 +01:00
nicm
940fdf7ed0
Draw pane status line on the correct line when at the bottom, fixes
...
issues if the window size is smaller than the entire terminal. GitHub
issue 3943.
2024-10-08 09:40:50 +00:00
Thomas Adam
4f5d6d97d3
Merge branch 'obsd-master'
2024-10-08 10:01:08 +01:00
nicm
00412b570b
Put the prompt cursor attributes into the status line screen and use
...
that rather than updating the current screen (since there might not be
one).
2024-10-08 06:29:44 +00:00
Thomas Adam
6a35b8ad07
Merge branch 'obsd-master'
2024-10-07 16:01:08 +01:00
nicm
735082b7c2
Add prompt-cursor-colour and prompt-cursor-style to set the style of the
...
cursor in the command prompt and remove the emulated cursor, from
Alexander Arch in GitHub issue 4170.
2024-10-07 12:58:36 +00:00
Thomas Adam
5b7bdc82c8
Merge branch 'obsd-master'
2024-10-07 12:01:08 +01:00
nicm
a3dea81b49
Add initial-repeat-time option to allow the first repeat time to be
...
increased and later reduced, from David le Blanc in GitHub issue 4164.
2024-10-07 08:50:47 +00:00
Thomas Adam
486221f206
Merge branch 'obsd-master'
2024-10-06 12:01:07 +01:00
nicm
9528d7470b
Try to stay near the same line in modes if the current one is removed.
2024-10-06 09:30:22 +00:00
Thomas Adam
933d6b90ed
Merge branch 'obsd-master'
2024-10-05 16:01:07 +01:00
nicm
a869693405
Send focus events to pane when entering or leaving popup, GitHub issue
...
3991.
2024-10-05 12:10:16 +00:00
Thomas Adam
114977dd25
Merge branch 'obsd-master'
2024-10-05 04:01:08 +01:00
Thomas Adam
aba8ffbe7b
Merge branch 'obsd-master'
2024-10-05 02:01:07 +01:00
nicm
455a2b3705
Remove some debugging left behind.
2024-10-05 00:35:35 +00:00
nicm
e0638c48cd
Add copy-mode-position-format to configure the position indicator.
2024-10-05 00:32:55 +00:00
nicm
41f6b691e3
Document missing window-layout-changed hook.
2024-10-04 22:36:11 +00:00
Nicholas Marriott
0f30fa34e3
Add install step.
2024-10-04 23:29:36 +01:00
Thomas Adam
e486f5ffdc
Merge branch 'obsd-master'
2024-10-04 22:01:09 +01:00
nicm
5a68730e2f
Add -y flag to disable confirmation prompts in modes, GitHub issue 4152.
2024-10-04 19:16:13 +00:00
Thomas Adam
16b44d2a5b
Merge branch 'obsd-master'
2024-10-04 18:01:07 +01:00
nicm
34775fc235
Do not translate BSpace as Unicode, GitHub issue 4156.
2024-10-04 14:55:17 +00:00
Thomas Adam
f2fd8c854a
Merge branch 'obsd-master'
2024-10-04 10:01:08 +01:00
nicm
9f2a853d87
Rework of copy mode commands ("send-keys -X") to parse the arguments so
...
that flags may be detected propertly rather than just looking for
strings ("-O" and so on). Also add -C and -P flags to the copy commands:
-C prevents the commands from sending the text to the clipboard and -P
prevents them from adding the text as a paste buffer.
Note some of the default key bindings change to add "--" and any similar
custom key bindings using "send-keys -X" may need a similar change.
GitHub issue 4153.
2024-10-04 07:03:08 +00:00
Nicholas Marriott
7a78cdf78c
Three SIXEL improvements from nincsnevem662 at gmail dot com in GitHub issue
...
4149:
- Pass P2 on the received image through when forwarding the image to the
outside terminal to preserve transparency;
- Preserve raster attribute dimensions which may be smaller than the actual
image (used to crop out parts of the image to work around the limitation that
rows must come in groups of six);
- To avoid collapsing empty sixel lines, no longer ignore duplicate "-" new
line specifiers.
2024-10-04 07:49:07 +01:00
Thomas Adam
2df15ad08c
Merge branch 'obsd-master'
2024-10-03 08:01:07 +01:00
nicm
780a87be9a
Improve fix for shifted keys so it works for all the keys it should,
...
Stanislav Kljuhhin in GitHub issue 4146.
2024-10-03 05:41:59 +00:00
Nicholas Marriott
1e303b6a9d
Bypass permission check for Cygwin, based on a different change by Yuya Adachi
...
via Rafael Kitover; GitHub issue 4148.
2024-10-02 14:04:06 +01:00
Thomas Adam
8d2aee34ab
Merge branch 'obsd-master'
2024-10-02 14:01:10 +01:00
nicm
05116cefe6
Add MSYSTEM to default update-environment.
2024-10-02 11:51:15 +00:00
nicm
ce4be58eef
Add a define for the socket permissions check so it can be overridden
...
more easily (for Cgywin).
2024-10-02 11:48:16 +00:00
Nicholas Marriott
8d6eb4be40
Set client stdout file descriptor also for Cgywin, from Michael Wild via Rafael
...
Kitover in GitHub issue 4148.
2024-10-02 12:16:24 +01:00
Thomas Adam
38c38f1c64
Merge branch 'obsd-master'
2024-10-02 10:01:08 +01:00
nicm
ddf6af79e3
Report shifted keys like S-A as A not as S-A in mode 1 extended keys,
...
from Stanislav Kljuhhin.
2024-10-02 08:06:45 +00:00
Thomas Adam
826ba515be
Merge branch 'obsd-master'
2024-10-01 14:01:08 +01:00
Nicholas Marriott
729bded8bf
Fix up regression tests.
2024-10-01 13:40:42 +01:00
nicm
b95a06d2d4
Add a way to make the preview larger in tree mode, GitHub issue 4124.
2024-10-01 10:10:29 +00:00
Thomas Adam
157d748949
Merge branch 'obsd-master'
2024-10-01 10:01:10 +01:00
nicm
1c1f4c1219
Use global cursor style and colour options for modes instead of default,
...
GitHub issue 4117.
2024-10-01 08:01:19 +00:00
nicm
17bab32794
Change pasting to bypass the output key processing entirely and write
...
what was originally received. Fixes problems with pasted text being
interpreted as extended keys reported by Mark Kelly.
2024-10-01 06:15:47 +00:00
Thomas Adam
25b1cc1e8e
Merge branch 'obsd-master'
2024-09-30 12:01:11 +01:00
nicm
89adec0ca5
On some Windows terminals, if TIOCWINSZ does not return xpixel and
...
ypixel (they are zero), if this is the case then try the query escape
sequences. From Dmitry Galchinsky in GitHub issue 4099.
2024-09-30 08:10:20 +00:00
nicm
f95d055e04
Only use default-shell for popups, return to /bin/sh for run-shell,
...
if-shell and #() - these have been documented as using /bin/sh for a
long time and scripts rely on it. Pointed out by Gregory Pakosz.
2024-09-30 07:54:51 +00:00
Thomas Adam
7b148f7b5b
Merge branch 'obsd-master'
2024-09-29 22:01:09 +01:00
nicm
9bd039d1bc
Fix grey colour, from Magnus Gross.
2024-09-29 20:05:42 +00:00
Nicholas Marriott
7c30056d96
Bump to 3.6.
2024-09-27 08:58:00 +01:00
Nicholas Marriott
ac44566c9c
tmux 3.5.
2024-09-27 08:56:39 +01:00
Thomas Adam
64f1076d97
Merge branch 'obsd-master'
2024-09-17 00:01:09 +01:00
nicm
489c69f5ed
Add copy mode commands which were missed when descriptions were added,
...
from Julian Prein, GitHub issue 4121.
2024-09-16 20:46:58 +00:00
nicm
f897049935
Change the behaviour of extended-keys always slightly so that
...
applications can still enter mode 2 if they want, they just cannot turn
extended keys off entirely. From Stanislav Kljuhhin.
2024-09-16 20:38:48 +00:00
nicm
d8b66110f7
Add a prefix timeout option, from Conor Taylor in GitHub issue 4108.
2024-09-16 20:28:22 +00:00
Nicholas Marriott
8b1a3bb2e5
Only default --enable-debug if the user has not turned it off, from Ken Lau.
2024-09-16 21:19:43 +01:00
Thomas Adam
37771a5a8d
Merge branch 'obsd-master'
2024-09-11 22:01:10 +01:00
nicm
3a8a31d8d2
Mouse move keys are not useful as key bindings because we do not turn
...
them on unless the application requests them. Ignore them so they do not
cause the prefix to be canceled, GitHub issue 4111.
2024-09-11 19:12:33 +00:00
Nicholas Marriott
c36ffcbe56
Typo from Bastian Venthur.
2024-09-06 13:09:43 +01:00
Thomas Adam
3d8ead8a97
Merge branch 'obsd-master'
2024-08-28 10:27:21 +01:00
nicm
141cd78407
Display hyperlinks in copy mode and add copy_cursor_hyperlink format to
...
get the hyperlink under the cursor.
2024-08-27 07:49:07 +00:00
nicm
d0c8124661
Add search_count and search_count_partial formats in copy mode, GitHub
...
issue 4091.
2024-08-27 07:31:26 +00:00
nicm
2917bc5274
Do not reset mouse pane if clicked on status line, it may have been set
...
by a range.
2024-08-27 07:25:27 +00:00
nicm
2d1e93447e
Use strtonum instead of atoi.
2024-08-26 13:02:15 +00:00
nicm
31b6c9356c
C-h should not be treated specially and represented internally as \b but
...
as C-h like the other Ctrl keys. Backspace is already handled separately
if it VERASE.
2024-08-26 07:45:05 +00:00
nicm
9e2a7c28f5
Pass the screen_redraw_ctx struct into more functions instead of
...
individual arguments (for example for the pane status), from Michael
Grant.
2024-08-26 07:34:40 +00:00
nicm
73b2277af8
Client flags was changed to uint64_t a while ago, fix a few cases where
...
it is still int (do not matter now but will with some new flags). From
Michael Grant.
2024-08-26 07:30:46 +00:00
nicm
a84c109604
Add window_pane_mode helper function to tell if a pane is in copy mode,
...
from Michael Grant.
2024-08-26 07:14:40 +00:00
nicm
4823acca8f
Add copy-mode -d flag to scroll a page down if in copy mode already,
...
from Michael Grant.
2024-08-26 07:09:34 +00:00
Thomas Adam
34807388b0
Merge branch 'obsd-master'
2024-08-23 16:01:10 +01:00
nicm
08be883297
Ignore internal function keys if they have not got an entry in the key
...
table.
2024-08-23 13:25:39 +00:00
Thomas Adam
13bd0e46db
Merge branch 'obsd-master'
2024-08-23 14:01:08 +01:00
nicm
6e9a914014
Check for exact match for layout name before looking for a prefix match.
2024-08-23 10:19:06 +00:00
Thomas Adam
7990e5fa8f
Merge branch 'obsd-master'
2024-08-22 12:01:07 +01:00
nicm
4860a58d07
Clear overlay when command prompt is entered. Also fix some spacing in
...
man page pointed out by jmc.
2024-08-22 09:05:51 +00:00
Thomas Adam
99af9f23bd
Merge branch 'obsd-master'
2024-08-22 08:01:08 +01:00
nicm
9ebbe2cca7
Short Ctrl keys like ^A need to be converted to lowercase so they end up
...
as 'a'|KEYC_CTRL to match the new internal representation. Problem
reported by naddy@.
2024-08-22 05:39:55 +00:00
Thomas Adam
692bae9ea6
Merge branch 'obsd-master'
2024-08-21 08:01:09 +01:00
nicm
a6645c4de4
Mention that load- and save-buffer can use stdin, from Ramon Fischer.
2024-08-21 05:06:45 +00:00
nicm
06292baadc
Add mirrored versions of the main-horizontal and main-vertical layouts where
...
the main pane is bottom or right instead of top or left, from Sherwyn Sen.
2024-08-21 05:03:13 +00:00
nicm
ceda0a68ae
C-Space and Meta keys should not be translated in mode 1 extended keys.
2024-08-21 04:55:57 +00:00
nicm
4fa90c9acf
Set the default for extended-keys back to off because it appears emacs turns
...
the keys on but does not correctly handle them except in xterm (!). Also fix so
that off takes effect as expected.
2024-08-21 04:37:42 +00:00
nicm
c7e61a01e5
Revamp extended keys support to more closely match xterm and support
...
mode 2 as well as mode 1. From Stanislav Kljuhhin (GitHub issue 4038).
This changes tmux to always request mode 2 from parent terminal, change
to an unambiguous internal representation of keys, and adds an option
(extended-keys-format) to control the format similar to the xterm(1)
formatOtherKeys resource.
2024-08-21 04:17:09 +00:00
Thomas Adam
963e824f5f
Merge branch 'obsd-master'
2024-08-19 12:01:09 +01:00
nicm
de6bce057a
Allow REP to work with Unicode characters, GitHub issue 3687.
2024-08-19 08:31:36 +00:00
nicm
937ba1d8dd
Both terminators \007 and \033\\ leave the index pointing to the final
...
character of the terminator, so correct the size calculation to always
add one. GitHub issue 4082.
2024-08-19 08:29:16 +00:00
Thomas Adam
651891c3bd
Merge branch 'obsd-master'
2024-08-04 12:01:09 +01:00
nicm
4008e2ff6d
Make a little effort to treate CRLF as LF in config files. GitHub issue
...
3720.
2024-08-04 09:42:23 +00:00
nicm
b88130d24b
The Linux console has some bugs with bright colours. It seems likely
...
that it is emulating them by setting a bright (or bold) flag; however,
when the colour is changed from a bright colour (say SGR 96) to a
non-bright (say SGR 36), the flag is not reset, so the new colour
remains as bright. SGR 39 (default colour) also does not reset, so you
end up with the bright default colour. Work around this by sending SGR 0
when switching away from a bright colour, and disable AX for TERM=linux.
Also make the check for AX simpler and do not check for the op
capability is not actually used. GitHub issue 3976.
2024-08-04 09:35:30 +00:00
nicm
fc7ee7efc7
-l should be before -r, pointed out by jmc a while ago.
2024-08-04 09:01:18 +00:00
Nicholas Marriott
d0eb3fe543
Use terminal-features instead of terminal-overrides to enable truecolor support
...
in example_tmux.conf, from Simon Hengel.
2024-08-04 09:59:18 +01:00
Nicholas Marriott
2ac0faf119
If built with systemd, remove some environment variables it uses. From Ciprian
...
Dorin Craciun, GitHub issue 4035.
2024-08-04 09:58:13 +01:00
Nicholas Marriott
775789fbd5
Rename header guards on compat/queue.h to avoid it conflicting if the system
...
header is included first. This matters on some platforms (macOS) where queue.h
is old. From Saagar Jha in GitHub issue 4041.
2024-08-04 09:57:26 +01:00
nicm
7b6fbe7262
Adjust the logic when deleting last buffer to better preserve the
...
selection: if selecting the element below the deleted one fails (because
as the last one), select the one above it instead. From Daniel Mueller,
GitHub issue 4043.
2024-08-04 08:53:43 +00:00
Thomas Adam
109d2bda1a
Merge branch 'obsd-master'
2024-07-22 18:01:09 +01:00
nicm
ddd4e57c65
Expand full array option values if no index is provided, GitHub issue
...
4051.
2024-07-22 15:27:42 +00:00
Nicholas Marriott
3c2621b41b
Support building with jemalloc memory allocator, from Romain Francoise.
2024-07-15 11:25:15 +01:00
Nicholas Marriott
5039be657c
utf8proc bits for utf8_fromwc.
2024-07-12 14:30:56 +01:00
Thomas Adam
d02254f754
Merge branch 'obsd-master'
2024-07-12 14:01:09 +01:00
nicm
aa1353947e
UTF-8 keys now contain the internal representation and not the Unicode
...
codepoint, so convert extended keys properly. From Stanislav Kljuhhin.
2024-07-12 11:21:18 +00:00
Nicholas Marriott
171004dfd0
Use mdoc on Illumos which uses mandoc, from Andy Fiddaman.
2024-07-08 10:57:32 +01:00
Thomas Adam
c773fe89e7
Merge branch 'obsd-master'
2024-06-24 12:01:10 +01:00
nicm
093b5a5518
Add a way (refresh-client -r) for control mode clients to provide OSC 10
...
and 11 responses to tmux so they can set the default foreground and
background colours, from George Nachman in GitHub issue 4014.
2024-06-24 08:30:50 +00:00
nicm
db1665868f
Check the underline style colour against the correct default value again
...
(it was changed from 0 to 8), from Romain Francoise.
2024-06-24 08:11:46 +00:00
Thomas Adam
c07e856d24
Merge branch 'obsd-master'
2024-05-24 16:01:08 +01:00
nicm
692ce59bce
Do not escape $ unless DQ is set, that is the only case where we need to
...
escape it.
2024-05-24 12:41:24 +00:00
nicm
9e7c1aee48
Add N to search backwards in tree modes, from Fadi Afani in GitHub issue
...
3982.
2024-05-24 12:39:06 +00:00
Thomas Adam
4c2eedca5a
Merge branch 'obsd-master'
2024-05-19 06:01:09 +01:00
jsg
ac6c1e9589
remove prototype with no matching function
2024-05-19 03:27:58 +00:00
Thomas Adam
0903790b00
Merge branch 'obsd-master'
2024-05-18 12:01:09 +01:00
jsg
03de52653e
remove prototypes with no matching function; ok nicm@
2024-05-18 08:51:26 +00:00
jsg
da06719309
remove externs with no matching var; ok nicm@
2024-05-18 08:50:11 +00:00
Thomas Adam
fc84097379
Merge branch 'obsd-master'
2024-05-15 14:01:09 +01:00
Thomas Adam
4fd725c6e1
Merge branch 'obsd-master'
2024-05-15 12:01:10 +01:00
nicm
d39dcea30a
Use default-shell for command prompt #() and popups as well
2024-05-15 09:59:12 +00:00
nicm
bfd65398a9
Fix memory leaks reported by Lu Ming Yin.
2024-05-15 08:39:30 +00:00
Thomas Adam
452d987e0e
Merge branch 'obsd-master'
2024-05-14 14:01:10 +01:00
Thomas Adam
8ef899f315
Merge branch 'obsd-master'
2024-05-14 12:01:09 +01:00
nicm
a18d1146aa
Add missing time.h to tty.c (from Ismail Donmez), also remove some stray
...
spaces.
2024-05-14 10:11:09 +00:00
nicm
5b5004e5ac
Revert part of the change for GitHub issue 3675 because it does not work
...
correctly, it was intended to skip lines that are already being searched
as part of a previous wrapped line but in fact is skipping all lines
except the last in wrapped lines.
Also revert the search-wrapped-lines option (I didn't realize it was
intended to work around this).
2024-05-14 09:32:37 +00:00
Thomas Adam
6ff8f8fbf9
Merge branch 'obsd-master'
2024-05-14 10:01:10 +01:00
nicm
c9616700ca
Add a command-error hook when a command fails, from Hugh Davenport in
...
GitHub issue 3973.
2024-05-14 07:52:19 +00:00
nicm
4c928dce74
Add an option to disable unwrapping lines for searching, from
...
meanderingprogrammer at gmail dot com, GitHub issue 3975.
2024-05-14 07:40:39 +00:00
nicm
fb37d52dde
Restore previous behaviour or writing to stdout if available.
2024-05-14 07:33:01 +00:00
Thomas Adam
363d9c401e
Merge branch 'obsd-master'
2024-05-13 14:01:10 +01:00
nicm
8643ece345
Fix memory leak, from Fadi Afani.
2024-05-13 11:45:05 +00:00
Nicholas Marriott
9ba433e521
Use printf not echo -e, from Joyce Lin.
2024-05-13 12:42:14 +01:00
Nicholas Marriott
3823fa2c57
Send SIGHUP since some programs ignore SIGTERM, from Eduardo Grajeda in GitHub
...
issue 3958.
2024-04-30 12:38:58 +01:00
Thomas Adam
0a8571b6fe
Merge branch 'obsd-master'
2024-04-23 16:09:50 +01:00
jsg
ea9f416c99
correct indentation; no functional change
...
ok tb@
2024-04-23 13:34:51 +00:00
Thomas Adam
036d8993e6
Merge branch 'obsd-master'
2024-04-15 12:01:11 +01:00
nicm
e8530c9fee
Fixes for memory leaks reported by Lu Ming Yin, fixes from Howard Chu.
2024-04-15 08:19:55 +00:00
Nicholas Marriott
dd4c0109a9
Missing headers for Android, from Biswapriyo Nath.
2024-04-15 09:07:41 +01:00
Thomas Adam
43530d4397
Merge branch 'obsd-master'
2024-04-10 10:01:13 +01:00
nicm
553d4cba79
Add an option allow-set-title to forbid applications from changing the
...
pane title, from someone in GitHub issue 3930.
2024-04-10 07:36:25 +00:00
nicm
c62a9ca16b
Correct handling of mouse up events (don't ignore all but the last
...
released button), and always process down event for double click. From
Rudy Dellomas III in GitHub issue 3919.
2024-04-10 07:29:15 +00:00
nicm
424f13fe13
Do not get muddled and crash if focusing a pane that is exiting,
...
reported by Saul Nogueras in GitHub issue 3776.
2024-04-10 07:15:21 +00:00
Thomas Adam
4bb6da75ba
Merge branch 'obsd-master'
2024-04-05 02:01:09 +01:00
nicm
a28175dbfd
Pick newest session as documented, not oldest, from Magnus Gross.
2024-04-04 22:44:40 +00:00
Thomas Adam
fc204bb5e5
Merge branch 'obsd-master'
2024-03-26 12:01:11 +00:00
nicm
6207a45139
Fix selection present check, reported by M Kelly.
2024-03-26 10:20:20 +00:00
Thomas Adam
3c3643f580
Merge branch 'obsd-master'
2024-03-21 14:01:10 +00:00
nicm
89c1c43ef9
Write padding character into the right position.
2024-03-21 12:10:57 +00:00
nicm
2e9d7ebf15
Reduce escape-time default to 10 milliseconds, 500 is far too long for
...
modern terminals and networks. Case made by Kurtis Rader in GitHub issue
3844.
2024-03-21 11:53:11 +00:00
nicm
d8ddeec7db
Add -M to always turn mouse on in a menu, GitHub issue 3779.
2024-03-21 11:51:32 +00:00
nicm
6f0254e6a8
Look for feature code 21 for DECSLRM and 28 for DECFRA in the device
...
attributes and also accept level 1 (there is no hardware with this but
some emulators may use it). Pointed out by James Holderness.
2024-03-21 11:47:55 +00:00
Nicholas Marriott
aa17f0e0c1
Fix crash if SIXEL colour register is invalid and remove SIXEL images before
...
reflow to avoid a different crash, from Anindya Mukherjee.
2024-03-21 11:37:09 +00:00
nicm
0ae8b681b2
Use -p for default paste-buffer command in buffer mode, it will only do
...
anything if the application asked for it. From Gregory Anders.
2024-03-21 11:32:49 +00:00
nicm
6c0067c103
Do not notify window-layout-changed if the window is about to be
...
destroyed (since it may have been freed by the time the notify happens),
from Romain Francoise in GitHub issue 3860.
2024-03-21 11:30:42 +00:00
nicm
5458cb2850
Revert detach-client part of last, did not intend this to go in.
2024-03-21 11:27:18 +00:00
nicm
0c374868ca
Do not consider a selection present if it is empty, from Michael Grant
...
(GitHub issue 3869). Also a typo fix from GitHub issue 3877.
2024-03-21 11:26:28 +00:00
Nicholas Marriott
bf5d3f2e26
Typo, GitHub issue 3877.
2024-03-21 11:19:59 +00:00
Nicholas Marriott
d5ef837f63
Remove duplicate .tmux.conf mention, from Valentin Rylenko.
2024-03-21 11:18:49 +00:00
Thomas Adam
b79e28b2c3
Merge branch 'obsd-master'
2024-03-13 14:01:09 +00:00
nicm
8ffd5458ff
Make the attach-session description clearer - do not mention creating a
...
client which is not important, explicitly say the session must exist,
and mention new-session and new-session -A. Prompted by Theo.
2024-03-13 11:25:50 +00:00
Thomas Adam
b54e1fc4f7
Merge branch 'obsd-master'
2024-03-07 00:01:10 +00:00
Nicholas Marriott
bdb6321229
Update lock.yml.
2024-03-06 21:45:26 +00:00
nicm
bd29a48b56
Check for the right flag to fix split-window -p, from Bryan Childs.
2024-03-06 21:32:39 +00:00
Nicholas Marriott
f3f1c3db58
Add missing headers, from Marvin Schmidt.
2024-03-06 21:29:28 +00:00
Nicholas Marriott
608d113486
next-3.5
2024-02-13 10:20:18 +00:00
Nicholas Marriott
9ae69c3795
3.4.
2024-02-13 10:17:07 +00:00
Thomas Adam
0960862950
Merge branch 'obsd-master'
2024-02-13 10:01:10 +00:00
Nicholas Marriott
44ad25b367
Update CHANGES.
2024-02-13 09:12:08 +00:00
nicm
40b97b1715
Add two new values for the destroy-unattached option to destroy sessions
...
only if they are not members of sessions groups, from Mark Huang, GitHub
issue 3806.
2024-02-13 08:10:23 +00:00
nicm
4bdb855020
Do not allow paste into panes which have exited, from Romain Francoise
...
in GitHub issue 3830.
2024-02-13 08:03:50 +00:00
Thomas Adam
ea7136fb83
Merge branch 'obsd-master'
2024-01-22 18:01:09 +00:00
nicm
428f8a9b28
Increase buffer size to avoid truncating styles, GitHub issue 3809 from
...
Ricardo Bittencourt.
2024-01-22 16:34:46 +00:00
Nicholas Marriott
84faada25b
Remove existing defines.
2024-01-17 10:59:07 +00:00
Nicholas Marriott
55d0abad89
Need htonll and ntohll.
2024-01-17 10:57:32 +00:00
Nicholas Marriott
7d91b4b90b
htobe is not portable.
2024-01-17 09:47:35 +00:00
Nicholas Marriott
66369416fc
Update imsg.
2024-01-17 09:41:53 +00:00
Thomas Adam
001e26d0bb
Merge branch 'obsd-master'
2024-01-16 14:01:09 +00:00
claudio
2e39d698d2
Use imsg_get_fd() instead of direct access to imsg.fd
...
The change in proc.c can be further simplified once imsg_free() takes
care of unclaimed file descriptors.
OK nicm@
2024-01-16 13:09:11 +00:00
Thomas Adam
e809c2ec35
Merge branch 'obsd-master'
2024-01-03 19:17:10 +00:00
Nicholas Marriott
4266d3efc8
Assignment should be inside SIXEL.
2023-12-28 03:12:27 +00:00
nicm
40a20bc8ae
Only wrap pattern in *s if using a regular expression.
2023-12-27 20:42:01 +00:00
nicm
f7bf7e9671
Remove flags from the prefix before comparing with the received key so
...
that modifier keys with flags work correctly, GitHub issue 3764.
2023-12-27 20:23:59 +00:00
nicm
008ecd4592
groff apparently generates broken output for some common characters in
...
mdoc, so escaped versions have to be used instead. From Alexis
Hildebrandt in GitHub issue 3762.
2023-12-27 20:20:50 +00:00
nicm
73a2b12088
Always initialize screen mode, GitHub issue 3750 from Ding Fei.
2023-12-27 20:17:13 +00:00
Nicholas Marriott
605bf21ff2
Do not use NULL window, GitHub issue 3747.
2023-12-27 20:15:57 +00:00
nicm
f028445407
Correctly handle window ops with no pane, GitHub issue 3747.
2023-12-27 20:13:35 +00:00
Thomas Adam
bdf8e614af
Merge branch 'obsd-master'
2023-11-14 22:01:09 +00:00
nicm
4dea352dee
Don't strdup NULL filename.
2023-11-14 20:01:11 +00:00
Thomas Adam
151875d144
Merge branch 'obsd-master'
2023-11-14 18:01:10 +00:00
nicm
88fd1f00b8
Handle NULL client (in config file) when showing a status message; also
...
copy the file when processing if-shell since it may be freed. GitHub
issue 3746.
2023-11-14 15:59:49 +00:00
nicm
1a14d6d2e1
Use SM 2026 for Sync which is more widely supported now.
2023-11-14 15:38:33 +00:00
Thomas Adam
381c00a74e
Merge branch 'obsd-master'
2023-11-02 22:58:45 +00:00
nicm
5aadee6df4
next-prompt can have 1 argument.
2023-11-02 10:38:14 +00:00
Nicholas Marriott
a5545dbc9f
Allow attributes to have only two parameters, from Tim Culverhouse.
2023-11-01 10:37:41 +00:00
nicm
fdf465925e
Do not allow combined UTF-8 characters that are too long, GitHub issue
...
3729.
2023-10-30 16:05:30 +00:00
nicm
36e1ac6556
Unzoom window at start of destroy so it doesn't happen later (when
...
destroying panes) after the layout has been freed, GitHub issue 3717.
2023-10-23 08:12:00 +00:00
nicm
ffa376edf7
Switch to tiparm_s (added in ncurses 6.4-20230424) instead of tparm,
...
which allows ncurses to validate the capabilities correctly.
2023-10-17 09:55:32 +00:00
Thomas Adam
b777780720
Merge branch 'obsd-master'
2023-09-19 12:01:11 +01:00
nicm
347cd0b5f8
Fix a couple of mouse mode flag names.
2023-09-19 08:35:44 +00:00
Nicholas Marriott
0ca28b362e
Add combined character test.
2023-09-19 09:29:20 +01:00
Nicholas Marriott
51b80b985e
Restore utf8proc code.
2023-09-19 09:29:04 +01:00
Nicholas Marriott
789a98982e
Reply to SMGRAPHICS.
2023-09-19 09:27:59 +01:00
Thomas Adam
b202a2f1b5
Merge branch 'obsd-master'
2023-09-17 21:03:06 +01:00
nicm
7e79108f8a
Remove next- and previous-prompt added in error. GitHub issue 3696.
2023-09-16 16:18:29 +00:00
nicm
f09cde2542
Change UTF-8 combining to inspect the previous character at the cursor
...
position rather than keeping the last character from the input stream,
this is how most terminals work and fixes problems with displaying these
characters in vim. GitHub issue 3600.
2023-09-15 15:49:05 +00:00
Thomas Adam
9f9156c030
Merge branch 'obsd-master'
2023-09-15 10:01:11 +01:00
nicm
d394293ba5
Add -t to source-file, GitHub issue 3473.
2023-09-15 06:31:49 +00:00
Thomas Adam
c57a09269b
Merge branch 'obsd-master'
2023-09-14 16:01:10 +01:00
nicm
8191c58737
Reset combine flag only if text is actually processed.
2023-09-14 13:01:35 +00:00
Thomas Adam
f68d35c529
Merge branch 'obsd-master'
2023-09-08 10:01:10 +01:00
nicm
c02bc4dbe9
On second thoughts, do check DA2 for DECFRA and DECSLRM since that will
...
catch terminals that say they are VT520 even if we can't use DA1
(because of VTE).
2023-09-08 07:05:06 +00:00
nicm
4872811ba7
Use DECSLRM and DECFRA only at level 4 rather than checking the terminal
...
id.
2023-09-08 06:52:31 +00:00
Nicholas Marriott
1a1290f30b
Only remove images if reverse index actually scrolls.
2023-09-07 22:02:11 +01:00
Nicholas Marriott
7be7ca7195
Shut autoconf up.
2023-09-07 18:24:28 +01:00
Thomas Adam
32197fa52d
Merge branch 'obsd-master'
2023-09-07 14:01:11 +01:00
nicm
9653a52a6a
Use DECSLRM and DECFRA on terminals pretending to be VT520 or VT525 as
...
well as VT420.
2023-09-07 10:21:46 +00:00
Thomas Adam
d60c8942ce
Merge branch 'obsd-master'
2023-09-07 10:01:10 +01:00
nicm
c99f9e92e0
Accept 65 for VT525 as well.
2023-09-07 07:19:21 +00:00
Thomas Adam
e26356607e
Merge branch 'obsd-master'
2023-09-04 10:01:10 +01:00
nicm
43e5e80343
Skip wrapped lines in top level search loop because they will be
...
combined in the inner loop (in window_copy_search_rl_regex and the
others), avoids searching the same text multiple times. Also add a line
length limit for regex searches. GitHub issue 3675.
2023-09-04 08:01:43 +00:00
Thomas Adam
1742138f05
Merge branch 'obsd-master'
2023-09-02 22:01:09 +01:00
nicm
c767d62329
Request terminal colours again on SIGWINCH but at most once every 30
...
seconds, GitHub issue 3582.
2023-09-02 20:03:10 +00:00
Thomas Adam
7ad29b9831
Merge branch 'obsd-master'
2023-09-02 12:01:09 +01:00
nicm
d209fe9b1e
Setulc only does RGB colour so add Setulc1 to do non-RGB colours, GitHub
...
issue 3627.
2023-09-02 09:17:23 +00:00
nicm
c5542637d7
Set visited flag on last windows when linking session.
2023-09-02 08:38:37 +00:00
Thomas Adam
e7c829fc67
Merge branch 'obsd-master'
2023-09-01 20:01:10 +01:00
nicm
579829eef2
Only compare the actual size of the UTF-8 character, not all of it.
2023-09-01 18:43:54 +00:00
Nicholas Marriott
3aa20f6e75
Use %05X not %08X.
2023-09-01 19:37:27 +01:00
nicm
f78279bb2e
Add missing -T to getopt string.
2023-09-01 16:40:38 +00:00
Thomas Adam
a99d7c6314
makefile: fixup bad merge
2023-09-01 17:13:55 +01:00
Thomas Adam
cf1ed67fcc
Merge branch 'obsd-master'
2023-09-01 17:09:41 +01:00
Thomas Adam
1aec420465
Merge branch 'obsd-master'
2023-09-01 17:06:27 +01:00
nicm
16e4b39359
Clear combine flag when a non-UTF-8 set of characters is encountered.
2023-09-01 16:01:54 +00:00
nicm
9456258ccc
Rewrite combined character handling to be more consistent and to support
...
newer Unicode combined characters (which we have to "know" are combined
since they are not width zero). GitHub issue 3600.
2023-09-01 14:29:11 +00:00
nicm
c41d59f232
Expand name before looking for window with -S, GitHub issue 3670.
2023-09-01 14:24:46 +00:00
Nicholas Marriott
d682ef88e6
Bump width and height to 10000.
2023-09-01 14:54:27 +01:00
nicm
c1e6e54e6e
Add detach-on-destroy previous and next, mostly from Alexis Hildebrandt.
2023-09-01 13:48:54 +00:00
Nicholas Marriott
62f657845e
Fix merge error, from Jakub Łukasiewicz.
2023-08-26 20:57:44 +01:00
Thomas Adam
a9841a6d1e
portable: fixup merge
2023-08-23 20:55:23 +01:00
Thomas Adam
70ecf17f85
Merge branch 'obsd-master'
2023-08-23 20:37:42 +01:00
nicm
71d453f169
Add -c to run-shell to set working directory, from someone in GitHub
...
issue 3661.
2023-08-23 08:40:25 +00:00
Nicholas Marriott
071849f82f
Improve logging of SIXEL parsing errors.
2023-08-23 09:30:20 +01:00
nicm
52084b2948
Log what input_dcs_dispatch does with the input data.
2023-08-23 08:30:07 +00:00
Nicholas Marriott
dfbc6b1888
Merge SIXEL branch.
...
Squashed commit of the following:
commit 6ebc3feb4671d9b25b3db99d3c16b2323b8e3d02
Author: topcat001 <anindya49@hotmail.com>
Date: Sun Aug 20 16:09:51 2023 -0700
Remove redundant {}.
commit 6f013fce39602c259a5be2d690d548c73e51cccc
Author: topcat001 <anindya49@hotmail.com>
Date: Sun Aug 20 16:02:15 2023 -0700
Revert "Do not defer redraw if it is just the status line (will need to do more here I"
This reverts commit 0a15bbf3f1972dc84c5c84d5128024c1bc4c0074.
commit e6322b4196d73c975ba2e73633e6de9c46779059
Author: topcat001 <anindya49@hotmail.com>
Date: Sun Aug 20 15:46:59 2023 -0700
Fix placeholder label and clean up.
commit 5896ac52a1f72056a75480b3e1ada328f239df9b
Merge: ad982330 e3a8b843
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Fri Aug 18 17:00:03 2023 +0100
Merge branch 'master' into sixel
commit ad98233066b72547aee7fa0c87838847ee7f1ece
Author: topcat001 <anindya49@hotmail.com>
Date: Tue Aug 15 13:57:08 2023 -0700
Better text placeholder.
commit 312d83252c27fc4d09d09d121bf7573336e3cdca
Merge: 14b8b524 3d93b0c5
Author: topcat001 <anindya49@hotmail.com>
Date: Tue Aug 15 13:39:22 2023 -0700
Merge remote-tracking branch 'origin/master' into sixel
commit 14b8b524523a7d5a4e42f7dfa346905c604c91e2
Merge: 4baf7642 fda39377
Author: topcat001 <anindya49@hotmail.com>
Date: Sat Jul 22 17:29:10 2023 -0700
Merge branch 'master' into sixel
commit 4baf76422fadb216bf27b47645b52da3379e7dea
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Wed Jun 21 07:43:53 2023 +0100
Both files can go on one line.
commit 4c92acf6ff24dde37ad41cd168ea2d3bcefb8567
Author: topcat001 <anindya49@hotmail.com>
Date: Sat Jun 17 17:53:01 2023 -0700
Merge topcat001/tmux/sixel.
commit 6794facc82e98f8448c192913cf62fe6e10fde63
Merge: 7b85f5ad f41c536f
Author: topcat001 <anindya49@hotmail.com>
Date: Sat Jun 17 17:21:02 2023 -0700
Merge remote-tracking branch 'origin/master' into sixel
commit 7b85f5adf9a5094db580ca98e4d2231d8d5b5a4f
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Jun 8 12:55:03 2023 +0100
Do not require passthrough for SIXEL.
commit a6ee55e0925cac35d011c188db2da0421fc09be1
Merge: 6da391f4 fe385b18
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Jun 8 12:19:55 2023 +0100
Merge branch 'master' into sixel
commit 6da391f460414ed3dde23e5ab6ca3fe8e988ce51
Merge: 0d71e585 0eb5d254
Author: topcat001 <anindya49@hotmail.com>
Date: Sat May 20 17:05:55 2023 -0700
Merge branch 'master' into sixel
commit 0d71e5853ffe797f90b815ac3af25ac0ad92ab07
Merge: 64368a1a fbe6fe7f
Author: topcat001 <anindya49@hotmail.com>
Date: Sat Apr 29 17:32:07 2023 -0700
Merge branch 'master' into sixel
commit 64368a1a63f04fb877b57e4286c9a2e1efe966c9
Merge: c630a56a 22eb0334
Author: topcat001 <anindya49@hotmail.com>
Date: Thu Mar 30 14:21:09 2023 -0700
Merge branch 'master' into sixel
commit c630a56a621b9761eed558cbd566a36cb09adf8f
Merge: 34c96c4c aaa043a2
Author: topcat001 <anindya49@hotmail.com>
Date: Thu Nov 10 18:53:01 2022 -0800
Merge branch 'master' into sixel
commit 34c96c4c4a33f86b49c8a53dc48b2b817db24e95
Merge: 2a1e16a2 50f4e0fa
Author: topcat001 <anindya49@hotmail.com>
Date: Sat Nov 5 18:05:36 2022 -0700
Merge branch 'master' into sixel
commit 2a1e16a24dc75741c66f5d72fa5bf26b73507993
Merge: a82f14c7 d001a94d
Author: topcat001 <anindya49@hotmail.com>
Date: Thu Oct 27 16:01:35 2022 -0700
Merge branch 'master' into sixel
commit a82f14c7b23a239a2114c756ef73bba8609ebe33
Merge: 742c0634 f7b30ed3
Author: topcat001 <anindya49@hotmail.com>
Date: Sun Aug 28 13:43:07 2022 -0700
Merge branch 'master' into sixel
commit 742c0634734e6b2840762e58b0bf27626b5ac24b
Merge: 906c92a5 87b248f3
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Fri Apr 1 10:14:15 2022 +0100
Merge branch 'master' into sixel
commit 906c92a5f458b8843e7abd1d6f419dc091f8063c
Merge: 6680a024 138ffc7c
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Wed Dec 8 10:37:33 2021 +0000
Merge branch 'master' into sixel
commit 6680a024be5e173a27c10e9a0be6c9072576086d
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Oct 7 13:59:08 2021 +0100
Fix build.
commit ebd2c585937f18045d334226d4a0cc788fe14353
Merge: 90dc0519 fed7b29c
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Oct 7 13:19:48 2021 +0100
Merge branch 'master' into sixel
commit 90dc05191cbba8de6d9d77ee7f9726325abe844e
Merge: a282439f 4694afbe
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Feb 20 20:37:32 2020 +0000
Merge branch 'master' into sixel
commit a282439fcb2f597927a5ba33d2c378c90eec8b42
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Jan 30 09:12:53 2020 +0000
Add missing declarations.
commit 3a741aacd108538f99239c68bfa2cd416bf0eb46
Merge: 40ad0107 339832b9
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Jan 30 09:11:01 2020 +0000
Merge branch 'sixel-passthrough' into sixel
commit 339832b92c298538f398754f6d3fc21d15d13326
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Jan 30 09:04:51 2020 +0000
Bad merge.
commit 92ed9fc0b20440f2bc553757e6bfe3126fe84be4
Merge: 5bb07548 32be954b
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Jan 30 09:03:38 2020 +0000
Merge branch 'master' into sixel-passthrough
commit 40ad01073d73a531b4e85b0138f78bf0b472b354
Merge: dd3c72f1 61b075a2
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Sun Jan 12 20:03:41 2020 +0000
Merge branch 'master' into sixel
commit 5bb075487f5897d7402adb880e678043c0f7f3e0
Merge: 7c033a74 54efe337
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Wed Dec 18 20:24:42 2019 +0000
Merge branch 'master' into sixel-passthrough
commit dd3c72f132c911b0ba61b56a56f46510704d3392
Merge: 1a0e5fe9 54efe337
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Wed Dec 18 20:24:26 2019 +0000
Merge branch 'master' into sixel
commit 1a0e5fe933e89932f2f658936c52eb50644fbef4
Merge: cf071ffe 15d7e564
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Tue Dec 10 16:34:11 2019 +0000
Merge branch 'master' into sixel
commit cf071ffecd5a0d33008fd0a8b66a22f6855c7a8d
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Mon Dec 9 15:41:56 2019 +0000
Remove images when reflow happens.
commit 2006b7a5631787a7086c6bae364e62d0a0b5948a
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Dec 5 09:27:15 2019 +0000
More invalidation of images.
commit b642eac4503cc89cde01103f7bacca57cc9c1a2b
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Dec 5 09:11:24 2019 +0000
Redraw and scroll images and part of invalidating them.
commit 7566e37a461bf245bd2e54e1d522e919071e9c44
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Dec 5 08:51:24 2019 +0000
Call sixel_scale with the right number of arguments.
commit 62c0280b23cf67fc43f691392a8eca5cd7ff0727
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Dec 5 08:48:58 2019 +0000
Correctly remove when not visible.
commit 86c5098a887f2cd09b828e051ccf0fab21bf4f6a
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Dec 5 08:32:25 2019 +0000
Add helpers to scroll image up and a flag to copy the colours.
commit 49f2f0a8f1e72389f4128aa38119ed124cdc31c5
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Dec 5 00:02:55 2019 +0000
Store images, currently at most 10.
commit 3aebcc67099ccbc5964c744fc1435931c1a78583
Merge: 146ee3f6 92ecd611
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Wed Dec 4 19:27:16 2019 +0000
Merge branch 'master' into sixel
commit 7c033a74e25957d333217cb71a7658b860583501
Merge: 0a15bbf3 92ecd611
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Wed Dec 4 12:41:09 2019 +0000
Merge branch 'master' into sixel-passthrough
commit 146ee3f6f8ee2629c6a88b6900a71f3e6fd14e4d
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Sat Nov 30 09:47:53 2019 +0000
Don't write image as text yet.
commit 0a15bbf3f1972dc84c5c84d5128024c1bc4c0074
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Sat Nov 30 09:15:35 2019 +0000
Do not defer redraw if it is just the status line (will need to do more here I
think).
commit a5b1e209417b7d3f5b0099642dd317c312f79377
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Nov 28 14:20:22 2019 +0000
Add a flag to disable blocking while sending a SIXEL image (turned off when the
buffer hits 0 size).
commit 968382aa6a4b9c71fbc221aa4f0e899f6a83a260
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Nov 28 12:35:18 2019 +0000
Pass through SIXEL DCS sequences (treat similarly to the passthrough escape
sequence) if it appears the terminal outside supports them.
commit b1904c9b8db514133d3372aac13b2ff0b2093cc3
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Sat Nov 30 09:17:18 2019 +0000
Store SIXELs as a box for the moment.
commit 5d8dbcdf3d76d0e69b8f2d21eff48f819dcec199
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Sat Nov 30 09:15:35 2019 +0000
Do not defer redraw if it is just the status line (will need to do more here I
think).
commit 0c999a402ece7b40e6ae84547893421b52d508ff
Merge: 28961dd5 866b053f
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Fri Nov 29 18:54:09 2019 +0000
Merge branch 'master' into sixel
commit 28961dd5a38dd5a7b703ed0e6625fa9a65556d35
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Nov 28 14:24:57 2019 +0000
Add an image.
commit d2e3f3c1cca5410570c5392340d14e96ae7a354c
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Nov 28 14:20:22 2019 +0000
Add a flag to disable blocking while sending a SIXEL image (turned off when the
buffer hits 0 size).
commit e01df67ca106e57f5c689e75f313f8cda6f8b805
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Nov 28 13:21:40 2019 +0000
Crop and scale images as needed when drawing them.
commit e24acc0b5c3ac19dcacebdea243dcc7784215ffa
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Nov 28 12:38:02 2019 +0000
Simple SIXEL parse and modify API.
commit b34111b3da1e4b1769a976cd40486144f7b4f5a2
Author: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu Nov 28 12:35:18 2019 +0000
Pass through SIXEL DCS sequences (treat similarly to the passthrough escape
sequence) if it appears the terminal outside supports them.
2023-08-22 08:43:35 +01:00
Thomas Adam
e3a8b8434c
Merge branch 'obsd-master'
2023-08-17 18:01:09 +01:00
nicm
8636848e63
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.
2023-08-17 14:10:28 +00:00
Thomas Adam
3d93b0c52e
Merge branch 'obsd-master'
2023-08-15 12:01:09 +01:00
nicm
d9942c769e
Add meta bindings for status line menus as well as the existing pane one
...
for terminals which steal the mouse menu button.
2023-08-15 09:51:48 +00:00
Thomas Adam
6a45e6c256
Merge branch 'obsd-master'
2023-08-15 10:01:09 +01:00
nicm
b770a429c6
Add an option menu-selected-style to configure the currently selected
...
menu item, from Alexis Hildebrandt.
2023-08-15 07:01:47 +00:00
Thomas Adam
11e69f6025
Merge branch 'obsd-master'
2023-08-11 20:01:09 +01:00
nicm
57837bbf67
Do not crash if in buffer mode and the last buffer is deleted using the
...
command.
2023-08-11 17:09:00 +00:00
Thomas Adam
4c60afde78
Merge branch 'obsd-master'
2023-08-08 12:01:10 +01:00
Thomas Adam
ed689cd54e
Merge branch 'obsd-master'
2023-08-08 10:01:11 +01:00
nicm
7a44984069
Add flag to next-prompt/previous-prompt to go to command output instead,
...
from Magnus Gross.
2023-08-08 08:21:29 +00:00
nicm
dee72ed41f
Add options and flags for menu styles similar to those existing for
...
popups, from Alexis Hildebrandt. GitHub issue 3650.
2023-08-08 08:08:47 +00:00
nicm
1071ef8fc5
Extend the menu drawing function to support custom characters and
...
styles, from Alexis Hildebrandt.
2023-08-08 07:41:04 +00:00
nicm
2b535bc173
Fix a couple of rounded border characters, from Alexis Hildebrandt.
2023-08-08 07:19:48 +00:00
Thomas Adam
b791f00bf1
Merge branch 'obsd-master'
2023-08-07 14:01:12 +01:00
Thomas Adam
3e82ad5340
Merge branch 'obsd-master'
2023-08-07 12:01:10 +01:00
nicm
7b1030293c
Free title earlier, from Alexis Hildebrandt.
2023-08-07 10:52:00 +00:00
nicm
a5fd80bbc3
Trim can generate strings longer than the original if there are many #s,
...
so create a bigger buffer. Reported by Robert Morris.
2023-08-07 10:04:29 +00:00
Thomas Adam
fda3937734
Merge branch 'obsd-master'
2023-07-19 16:01:09 +01:00
nicm
b13c230749
Correct visited flag when the last window list is rebuilt by renumbering
...
windows, appears to fix hang reported by Mark Kelly.
2023-07-19 13:03:36 +00:00
Thomas Adam
715f39a53a
Merge branch 'obsd-master'
2023-07-14 22:01:10 +01:00
nicm
2f74e811f1
Set extended keys flag again after reset, from Eric T Johnson.
2023-07-14 19:32:59 +00:00
Thomas Adam
828efc7bcf
Merge branch 'obsd-master'
2023-07-13 18:01:10 +01:00
nicm
84936b832f
Use 8 for underscore colour defaults instead of 0 which is less
...
confusing, and fix writing tge default colour. GitHub issue 3627.
2023-07-13 06:03:48 +00:00
Thomas Adam
c8494dff7b
Merge branch 'obsd-master'
2023-07-11 20:01:10 +01:00
nicm
8fcc212e7a
Remove Ns and Li and change Nm to Ic, suggested by jmc.
2023-07-11 16:09:09 +00:00
Thomas Adam
0e281530cb
Merge branch 'obsd-master'
2023-07-11 10:01:10 +01:00
nicm
efded95ed7
Add descriptions of copy mode commands, from Michael Bianco.
2023-07-11 07:34:23 +00:00
Thomas Adam
18870913c5
Merge branch 'obsd-master'
2023-07-10 14:01:12 +01:00
nicm
63b7282377
It should no longer be necessary to ignore SIGCHLD because it is now
...
blocked around daemon(), and doing so causes trouble with newer libevent
(it cannot restore the original handler). Reported by Azat Khuzhin in
GitHub issue 3626.
2023-07-10 12:00:08 +00:00
Thomas Adam
269dab4b3e
Merge branch 'obsd-master'
2023-07-10 12:01:12 +01:00
nicm
4ece43a029
Loop around waitpid in client, from Azat Khuzhin.
2023-07-10 09:35:46 +00:00
nicm
8b3e2eab5a
Use a stack for last panes line windows, from Thomas Bertschinger in
...
GitHub issue 3588.
2023-07-10 09:24:53 +00:00
Thomas Adam
e4c4ceb286
Merge branch 'obsd-master'
2023-07-10 02:01:11 +01:00
nicm
b7e22d00b4
Call closefrom after removing signals because newer libevent doesn't
...
like its signal fd being closed Azat Khuzhin.
2023-07-09 22:54:52 +00:00
Thomas Adam
1a11c972ae
Merge branch 'obsd-master'
2023-07-03 20:01:12 +01:00
nicm
43b841f188
Add support for marking lines with a shell prompt based on the OSC 133
...
extension, from Munif Tanjim in GitHub issue 3596.
2023-07-03 16:47:43 +00:00
Thomas Adam
f9b0460840
Merge branch 'obsd-master'
2023-07-03 14:01:10 +01:00
Thomas Adam
659d876cd5
Merge branch 'obsd-master'
2023-07-03 12:01:09 +01:00
nicm
ac43186dff
Do not risk writing over the end of the buffer when it ends in #
...
(because strchr \0 will be non-NULL), reported by Robert Morris in
GitHub issue 3610.
2023-07-03 10:48:26 +00:00
nicm
e79fb214f8
Another warning fix for GCC from Thomas Klausner.
2023-07-03 08:37:14 +00:00
Thomas Adam
9cf58d1a52
Merge branch 'obsd-master'
2023-07-01 02:01:10 +01:00
nicm
a2a02fd7d7
Change a few types to fix warnings, from Thomas Klausner.
2023-06-30 21:55:08 +00:00
Thomas Adam
237ee6f231
Merge branch 'obsd-master'
2023-06-30 16:01:10 +01:00
nicm
4e57894e85
Get rid of some warnings with GCC 10, from Thomas Klausner.
2023-06-30 13:19:32 +00:00
Nicholas Marriott
8c9fbbf4f3
Add libterminfo for NetBSD, from Thomas Klausner.
2023-06-29 15:31:32 +01:00
Thomas Adam
3f3d61bd58
Merge branch 'obsd-master'
2023-06-26 12:01:09 +01:00
Thomas Adam
80d4f4afc6
Merge branch 'obsd-master'
2023-06-26 10:01:10 +01:00
nicm
2546216019
When exiting alternate screen, there is no need to reflow when going
...
back to old size since the contents will be overwritten. GitHub issue
3510.
2023-06-26 08:14:19 +00:00
nicm
ff8882a24f
Add "us" to styles for underscore colour, GitHub issue 3589.
2023-06-26 07:17:40 +00:00
Thomas Adam
ffe2410639
Merge branch 'obsd-master'
2023-06-25 20:01:09 +01:00
nicm
9e14c1f88d
SGR 0 should not end hyperlink, reported by Lucas Trzesniewski.
2023-06-25 15:53:07 +00:00
Thomas Adam
29a5dfc7c0
Merge branch 'obsd-master'
2023-06-21 08:01:08 +01:00
nicm
645bf8b3ab
Check fdopen return value, from Christian Menges.
2023-06-21 06:28:18 +00:00
Thomas Adam
f41c536ff3
Merge branch 'obsd-master'
2023-06-08 14:01:09 +01:00
nicm
bdd05bdbd3
Fix mismatch between function prototype and definition, from Anindya
...
Mukherjee.
2023-06-08 11:17:28 +00:00
Nicholas Marriott
fe385b180f
Try utf8proc with pkg-config, from Alex Wu.
2023-06-08 09:10:43 +01:00
Thomas Adam
0eb5d25453
Merge branch 'obsd-master'
2023-05-19 10:01:09 +01:00
nicm
1d98394b41
Add format for server_sessions, from Magnus Gross.
2023-05-19 07:46:34 +00:00
Thomas Adam
149d9cc851
Merge branch 'obsd-master'
2023-05-08 12:01:09 +01:00
tb
204d8f31d7
Reorder struct grid_cell_entry
...
On aarch64 with llvm 15, the new -Wunaligned-access emits noise on every
one of tmux's source files. This avoids this warning by moving a u_char
to the end of the struct. This does not change the size of the struct on
any architecture.
ok nicm
2023-05-08 10:03:39 +00:00
Thomas Adam
fbe6fe7f55
Merge branch 'obsd-master'
2023-04-28 12:52:21 +01:00
Nicholas Marriott
168eab11a7
Cast both strings for tparm.
2023-04-28 07:23:53 +01:00
nicm
41b318ac7c
Add options to change the confirm key and default behaviour of
...
confirm-before. From Elias Assaf in GitHub issue 3548; prompted by an
earlier change from Yutaro Yoshii in GitHub issue 3496.
2023-04-28 06:12:27 +00:00
nicm
bf636d9575
Do not fatal if tparm fails, instead just log it (not working sequences
...
are better than exiting).
2023-04-28 05:59:35 +00:00
Nicholas Marriott
39d41d0810
Use ncurses' new tparm_s function (added in 6.4-20230424) instead of tparm so
...
it does not object to string arguments in capabilities it doesn't already know.
2023-04-28 06:44:40 +01:00
Thomas Adam
9d8131c190
Merge branch 'obsd-master'
2023-04-27 19:16:08 +01:00
Nicholas Marriott
0ff991b25f
Set default lock command to vlock on Linux if present at build time, from Josh
...
Boyer in GitHub issue 3527.
2023-04-25 17:23:32 +01:00
Nicholas Marriott
15c70e562c
Include NCURSES_VERSION_PATCH in the log.
2023-04-25 16:48:49 +01:00
nicm
8f34504736
Tidy tparm wrapper functions to have more obvious names and check tparm
...
return value.
2023-04-25 09:31:50 +00:00
nicm
551e0c36d9
Invalidate cached tty state after changing features since they may
...
change what the terminal can do and need mouse sequences or similar to
be sent again, GitHub issue 3513.
2023-04-25 09:24:44 +00:00
nicm
48eba4c195
Ignore the user keys range when checking if a key is Unicode.
2023-04-17 18:22:24 +00:00
nicm
9f605178c3
It seems silly to use progname for version, just always say tmux.
2023-04-17 18:00:19 +00:00
nicm
bcafe51378
Make the check if printing is allowed the same as writing which is less
...
confusing.
2023-04-17 17:58:35 +00:00
nicm
280fe77edd
Discard mouse sequences that have the right form but actually are
...
invalid (for example have column zero rather than one).
2023-04-17 17:57:35 +00:00
Nicholas Marriott
b9524f5b72
Add support for spawning panes in separate cgroups with systemd and a configure
...
flag to disable. From Eric T Johnson yut23 AT gvljohnsons DOT com in GitHub
issue 3514.
2023-04-03 08:54:06 +01:00
nicm
a2018b2c3f
Clarify text for new -A slightly, GitHub issue 3508.
2023-04-03 07:39:37 +00:00
nicm
c21af7e446
Add a format to show if there are unseen changes while in a mode, from
...
Dan Aloni in GitHub issue 3498.
2023-03-27 08:47:57 +00:00
nicm
d73078838d
For passthrough, don't write to clients attached to different sessions,
...
based on a fix from Sergei Grechanik.
2023-03-27 08:31:32 +00:00
Thomas Adam
22eb0334c3
Merge branch 'obsd-master'
2023-03-15 22:01:09 +00:00
nicm
a9ac614691
Do not leak screen in popups, GitHub issue 3492.
2023-03-15 19:23:22 +00:00
Thomas Adam
1d0f68dee9
Merge branch 'obsd-master'
2023-03-15 10:01:10 +00:00
nicm
ac4bb89d43
Fix command prompt not to always append argument but only if there has
...
actually been expansion. GitHub issue 3493.
2023-03-15 08:15:39 +00:00
Thomas Adam
b55f34029a
Merge branch 'obsd-master'
2023-02-10 16:01:10 +00:00
nicm
907f58cc3c
Fix cursor position after zero width space, GitHub issue 3469.
2023-02-10 14:01:43 +00:00
Thomas Adam
023b0f76c3
Merge branch 'obsd-master'
2023-02-07 14:01:11 +00:00
Thomas Adam
ddaeebc213
Merge branch 'obsd-master'
2023-02-07 12:01:13 +00:00
nicm
1262e685b8
Remove old buffer when renaming rather than complaining, GitHub issue
...
3467 from Jean-Philippe Paradis.
2023-02-07 10:56:04 +00:00
nicm
0bd78b42c0
Add an L modifier like P, W, S to loop over clients. Also fix some long
...
lines in tmux(1).
2023-02-07 10:21:01 +00:00
Thomas Adam
4a0126f7fb
Merge branch 'obsd-master'
2023-02-06 12:01:12 +00:00
nicm
7acc8d703d
Add -f to list-clients like the other list commands, from Andy Walker in
...
GitHub issue 3449.
2023-02-06 09:20:30 +00:00
Thomas Adam
77118f3a9f
portable: remove vis.h
...
This is included portably across different systems.
2023-02-06 01:55:02 +00:00
Thomas Adam
e25926d3c4
Merge branch 'obsd-master'
2023-02-06 00:01:11 +00:00
nicm
0cb75f1332
Do not allow multiple line separators in a row.
2023-02-05 21:26:48 +00:00
nicm
93b1b78150
Extend display-message to work for control clients. GitHub issue 3449.
2023-02-05 21:15:32 +00:00
Thomas Adam
493922dc4b
Merge branch 'obsd-master'
2023-02-02 12:01:11 +00:00
nicm
f10854cfc5
Add a missing error message which causes an invalid layout name to crash.
2023-02-02 09:24:59 +00:00
nicm
993e7a937f
Tweak note for D key binding, from Clark Wang.
2023-02-02 09:06:44 +00:00
Thomas Adam
f5af3cfb21
Merge branch 'obsd-master'
2023-01-23 12:01:11 +00:00
nicm
e7e112fbd0
Too many \s in example, GitHub issue 3445.
2023-01-23 09:33:51 +00:00
Thomas Adam
c42087c789
Merge branch 'obsd-master'
2023-01-21 00:01:11 +00:00
nicm
3aa458ea63
Add a flag to display-menu to select the manu item chosen first, GitHub
...
issue 3442.
2023-01-20 21:36:00 +00:00
Thomas Adam
c4a6f403bb
Merge branch 'obsd-master'
2023-01-17 12:01:09 +00:00
nicm
9789ea3fb4
Support -1 without -N for list-keys.
2023-01-17 10:40:51 +00:00
Thomas Adam
f416ae1c12
Merge branch 'obsd-master'
2023-01-17 10:01:09 +00:00
nicm
d578cf8d3f
Update palette when moving a pane, GitHub issue 3437.
2023-01-17 06:50:55 +00:00
Thomas Adam
789cb91f31
Merge branch 'obsd-master'
2023-01-16 14:01:10 +00:00
nicm
eb1f8d70a7
Mark keys sent by command and skip paste handling for them.
2023-01-16 11:26:14 +00:00
Thomas Adam
42895efac3
Merge branch 'obsd-master'
2023-01-12 22:01:09 +00:00
nicm
483cc77c1c
Have tmux recognise pasted texts wrapped in bracket paste sequences,
...
rather than only forwarding them to the program inside. From Andrew
Onyshchuk in GitHub issue 3431.
2023-01-12 18:49:11 +00:00
Thomas Adam
9b1ea8b16d
Merge branch 'obsd-master'
2023-01-09 16:01:11 +00:00
nicm
b41892622d
Fix behaviour with \007 (used the wrong tree for last change).
2023-01-09 14:12:41 +00:00
Thomas Adam
9051220243
Merge branch 'obsd-master'
2023-01-09 10:01:09 +00:00
nicm
c0031f8b85
Accept \007 as terminator to OSC 10 or 11.
2023-01-09 07:57:14 +00:00
Thomas Adam
c1a30ed995
Merge branch 'obsd-master'
2023-01-09 02:01:10 +00:00
nicm
565de3f54b
Fix parsing of optional arguments so that and accept a - starting an
...
argument.
2023-01-08 23:34:46 +00:00
Thomas Adam
153ae758c9
portable: fixup merge with utf8.c
2023-01-08 23:27:54 +00:00
Thomas Adam
5086377f30
Merge branch 'obsd-master'
2023-01-08 23:26:09 +00:00
nicm
7c0789d2d2
Have client return 1 if process is interrupted to an input pane.
2023-01-08 22:17:04 +00:00
Nicholas Marriott
2a32565e0c
Restore code to handle wcwidth failure so that unknown codepoints still
...
do the most likely right thing. GitHub issue 3427, patch based on an
diff from Jesse Luehrs in GitHub issue 3003.
2023-01-08 22:15:38 +00:00
nicm
7ced0a03d2
Restore code to handle wcwidth failure so that unknown codepoints still
...
do the most likely right thing. GitHub issue 3427, patch based on an
diff from Jesse Luehrs in GitHub issue 3003.
2023-01-08 22:15:30 +00:00
nicm
cb51942669
Quotes are now required in select-layout example.
2023-01-08 21:00:01 +00:00
Nicholas Marriott
093fb53773
Missing #endif.
2023-01-06 11:38:41 +00:00
Thomas Adam
21e00e4635
Merge branch 'obsd-master'
2023-01-06 09:02:00 +00:00
nicm
09afc6c8ee
If a pane is killed, cancel reading from the file. GitHub issue 3422.
2023-01-06 07:09:27 +00:00
nicm
a41a927441
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).
2023-01-03 11:43:24 +00:00
jmc
3fe01ff09c
spelling fixes; from paul tagliamonte
...
amendments to his diff are noted on tech
2022-12-26 19:16:03 +00:00
kn
b5ab4d2c13
Denote multiple arguments with 'arg ...' not 'args'
...
A few programs used the plural in their synopsis which doesn't read as
clear as the obvious triple-dot notation.
mdoc(7) .Ar defaults to "file ..." if no arguments are given and consistent
use of 'arg ...' matches that behaviour.
Cleanup a few markups of the same argument so the text keeps reading
naturally; omit unhelpful parts like 'if optional arguments are given,
they are passed along' for tools like time(1) and timeout(1) that obviously
execute commands with whatever arguments where given -- just like doas(1)
which doesn't mention arguments in its DESCRIPTION in the first place.
For expr(1) the difference between 'expressions' and 'expression ...' is
crucial, as arguments must be passed as individual words.
Feedback millert jmc schwarze deraadt
OK jmc
2022-12-22 19:53:23 +00:00
nicm
4d79d463ef
Allow send-keys without a client again, reported by Stefan Hagen.
2022-12-19 07:30:10 +00:00
nicm
7cb48fc40b
Do not escape tabs in output (iTerm2 needs them). GitHub issue 3414.
2022-12-16 08:22:05 +00:00
nicm
8bd17bff49
Make U+FE0F VARIATION SELECTOR-16 change the width from 1 to 2. GitHub
...
issue 3409.
2022-12-16 08:19:58 +00:00
nicm
3b3f42053a
Add send-keys -K to handle keys directly as if typed (so look up in key
...
table). GitHub issue 3361.
2022-12-16 08:13:40 +00:00
Nicholas Marriott
70ff8cfe1e
No vis.h in portable.
2022-12-07 12:30:36 +00:00
Thomas Adam
6249a4b866
Merge branch 'obsd-master'
2022-12-07 12:01:09 +00:00
nicm
7e497c7f23
Process escape sequences in show-buffer, GitHub issue 3401.
2022-12-07 09:44:44 +00:00
Thomas Adam
1536b7e206
Merge branch 'obsd-master'
2022-11-11 10:01:09 +00:00
Nicholas Marriott
e46d0632a5
Add key regression tests from Aaron Jensen.
2022-11-11 08:47:55 +00:00
nicm
20da167377
Tweak previous to set and log the feature instead of just setting the
...
flag.
2022-11-11 08:44:11 +00:00
nicm
fe475bd856
Parse primary device attributes as well as secondary and add a SIXEL
...
flag (not used yet), from Anindya Mukherjee.
2022-11-11 08:37:55 +00:00
nicm
079f48e8a6
Document alternative delimiters for substitution, from Jim Wisniewski.
2022-11-11 08:27:17 +00:00
Thomas Adam
aaa043a20f
Merge branch 'obsd-master'
2022-11-11 02:01:10 +00:00
jmc
48f41e4a41
- sort options; from josiah frentsos
...
ok nicm
- add -N to SYNOPSIS
- sort usage()
2022-11-10 22:58:39 +00:00
Thomas Adam
6fb80527f3
Merge branch 'obsd-master'
2022-11-08 12:01:11 +00:00
nicm
f86eba2129
Fix C-S-Tab without extended keys, from Aaron Jensen.
2022-11-08 10:04:31 +00:00
Thomas Adam
50f4e0fac9
Merge branch 'obsd-master'
2022-11-04 10:01:10 +00:00
nicm
77c135349a
Unescape the string for the literal operator (l:) so special characters
...
work.
2022-11-04 08:03:23 +00:00
Thomas Adam
c449512be4
Merge branch 'obsd-master'
2022-11-03 10:01:11 +00:00
nicm
17290b9121
If there are no buffers, reset mode as soon as any key pressed. Fixes
...
crash reported by Gaoyang Zhang in GitHub issue 3373.
2022-11-03 08:41:53 +00:00
nicm
3be369522b
Add a -l flag to display-message to disable format expansion, from Aaron
...
Jensen. GitHub issue 3372.
2022-11-03 08:33:57 +00:00
Thomas Adam
dbfbd8a195
Merge branch 'obsd-master'
2022-11-02 08:01:11 +00:00
nicm
9614f51560
Instead of always setting the extended flag, set it only when searching.
...
Allows send-keys to work. From Aaron Jensen.
2022-11-02 07:36:07 +00:00
Thomas Adam
36896f6dd0
Merge branch 'obsd-master'
2022-11-01 12:01:10 +00:00
nicm
2d08235987
Add modified Tab key sequences, from Aaron Jensen, GitHub issue 3368.
2022-11-01 09:54:13 +00:00
nicm
2291045116
Use active pane in target window not current window for +/-. GitHub
...
issue 3370.
2022-11-01 09:46:14 +00:00
Thomas Adam
9dd1f442c5
Merge branch 'obsd-master'
2022-10-28 16:01:10 +01:00
nicm
8edece2cdb
Add paste-buffer-deleted notification and fix name of paste-buffer-changed.
2022-10-28 13:00:02 +00:00
Thomas Adam
d001a94d7b
Merge branch 'obsd-master'
2022-10-25 22:01:10 +01:00
nicm
c2580cfe24
Initialize context before testing it.
2022-10-25 17:53:31 +00:00
Thomas Adam
dafd6f462f
Merge branch 'obsd-master'
2022-10-25 12:01:10 +01:00
nicm
2111142cf1
Fix a memory leak, from Japin Li in GitHub issue 3358.
2022-10-25 09:12:05 +00:00
nicm
0fc961b22e
Do not fire redraw callback if NULL.
2022-10-25 09:04:49 +00:00
Nicholas Marriott
5ce34add77
Do not attempt to connect to the socket as a client if systemd is active, from
...
Julien Moutinho in GitHub issue 3345.
2022-10-18 15:58:06 +01:00
Thomas Adam
934f357149
Merge branch 'obsd-master'
2022-10-17 14:01:10 +01:00
nicm
ff2766b024
Preserve marked pane when renumbering windows.
2022-10-17 10:59:42 +00:00
Thomas Adam
9ef854f5a9
Merge branch 'obsd-master'
2022-09-28 12:01:09 +01:00
nicm
a10452be2d
Add scroll-top and scroll-bottom commands to scroll so cursor is at top
...
or bottom. From Anindya Mukherjee, GitHub issue 3334.
2022-09-28 07:59:50 +00:00
nicm
9cc8e40aa0
Add a -T flag to capture-pane to stop at the last used cell instead of
...
the full width. Restore the previous behaviour by making it default to
off unless -J is used (the only time it matters). Fixes mosh unit tests;
GitHub issue 3339.
2022-09-28 07:55:29 +00:00
Thomas Adam
f49f92737f
Merge branch 'obsd-master'
2022-09-22 17:10:38 +01:00
Nicholas Marriott
19344ec890
Add headers and fix type, from Marvin Schmidt. GitHub issue 3332.
2022-09-19 07:03:17 +01:00
nicm
a2cc601c3d
Don't use options from pane if pane is NULL.
2022-09-12 12:02:17 +00:00
nicm
9ab1ba36cd
Use correct option name.
2022-09-10 17:01:33 +00:00
nicm
f03c3ca6c3
Add message-line option to control where message and prompt go, from
...
Varun Kumar E in GitHub issue 3324.
2022-09-09 11:02:23 +00:00
Nicholas Marriott
0a0ded3268
Regress typos.
2022-09-07 07:28:26 +01:00
Thomas Adam
6da520c5a1
Merge branch 'obsd-master'
2022-08-31 12:01:10 +01:00
nicm
68dc9af9ac
Fix window size report, from Vincent Bernat.
2022-08-31 08:07:05 +00:00
Thomas Adam
f7b30ed3d4
Merge branch 'obsd-master'
2022-08-24 10:01:13 +01:00
nicm
e867528209
Check for NULL returns from bufferevent_new.
2022-08-24 07:22:30 +00:00
Thomas Adam
038dfb27a8
Merge branch 'obsd-master'
2022-08-23 12:01:10 +01:00
nicm
416c27c995
Add scroll-middle copy mode command to make cursor line in the middle,
...
from Varun Kumar E in GitHub issue 3307.
2022-08-23 08:14:19 +00:00
Nicholas Marriott
19344efa78
Fix fallback implementaion of getpeereid, from Pino Toscano.
2022-08-22 08:21:42 +01:00
Thomas Adam
9c34aad21c
Merge branch 'obsd-master'
2022-08-15 13:54:47 +01:00
nicm
7c2dcd7238
Notify when a paste buffer is deleted, GitHub issue 3302 from George
...
Nachman.
2022-08-15 09:10:34 +00:00
nicm
03149bf7f6
Add a Nobr terminfo capability to tell tmux the terminal does not use
...
bright colours for bold (makes a difference to how tmux applies palette
differences). From Damien Tardy-Panis in GitHub issue 3301.
2022-08-15 08:54:03 +00:00
nicm
497021d0db
Add some const, from Markus F X J Oberhumer.
2022-08-15 08:41:13 +00:00
nicm
cfdc5b62ad
Don't stop at first match when updating environment.
2022-08-15 08:37:03 +00:00
Thomas Adam
9b08e5139b
Merge branch 'obsd-master'
2022-08-11 12:01:10 +01:00
nicm
e139f977b1
vi(1) Home/End bindings, from Markus F X J Oberhumer.
2022-08-11 09:11:26 +00:00
Thomas Adam
9abf5d9fe5
Merge branch 'obsd-master'
2022-08-10 18:01:11 +01:00
nicm
273577ba0a
Fix check of home directory (&& not ||), from Markus F X J Oberhumer,
...
GitHub issue 3297.
2022-08-10 14:03:59 +00:00
Thomas Adam
e15058e60f
Merge branch 'obsd-master'
2022-08-04 16:01:09 +01:00
nicm
de5cd54124
Change g and G to go to top and bottom of menu, GitHub issue 3286.
2022-08-04 12:06:09 +00:00
Thomas Adam
c6cf09450a
Merge branch 'obsd-master'
2022-08-03 16:01:11 +01:00
nicm
c6e7568471
Do not crash when searching for .* with extremely long lines. Reported
...
by Torbjorn Lonnemark, GitHub issue 3272.
2022-08-03 13:27:48 +00:00
Thomas Adam
7b8ececd8d
Merge branch 'obsd-master'
2022-08-02 14:01:09 +01:00
nicm
42ba6c1b22
Add a third state "all" to allow-passthrough to work even in invisible
...
panes, from Sergei Grechanik in GitHub issue 3274.
2022-08-02 11:09:26 +00:00
Thomas Adam
9a2fdf8fd4
Merge branch 'obsd-master'
2022-08-02 12:01:09 +01:00
Nicholas Marriott
00812c9053
Check for $YACC, from Wei Shih in GitHub issue 3267.
2022-08-02 11:52:09 +01:00
nicm
33c59100ae
Fix validation of missing percentage arguments.
2022-08-02 09:23:34 +00:00
nicm
36d904011a
-u is no longer equivalent to -TUTF-8 so don't say it is.
2022-08-02 08:57:01 +00:00
Thomas Adam
9d9445a48e
Merge branch 'obsd-master'
2022-07-22 10:01:10 +01:00
nicm
a8da24771c
Clear marks when the search string changes. From Anindya Mukherjee,
...
GitHub issue 3255.
2022-07-22 07:14:07 +00:00
Thomas Adam
ab1d18d00f
Merge branch 'obsd-master'
2022-07-19 10:01:08 +01:00
nicm
ee431d482a
Do not ignore the "off" flag when checking if a pane should be stopped,
...
GitHub issue 3250.
2022-07-19 07:10:13 +00:00
Nicholas Marriott
e06c09889c
Add permissions for workflow, GitHub issue 3202.
2022-07-19 07:54:11 +01:00
nicm
86dfbda0e4
Process modifiers as bits rather than using a switch, from Koichi Murase.
2022-07-19 06:51:31 +00:00
Nicholas Marriott
697cebb4c1
Include curses properly for hyperlinks ifdef, from chrysn at fsfe dot org.
2022-07-19 07:48:48 +01:00
nicm
3c65475561
Fix memory leak, from Gabriel Souza Franco.
2022-07-19 06:46:57 +00:00
Thomas Adam
dc6bc0e95a
Merge branch 'obsd-master'
2022-07-06 12:01:09 +01:00
Thomas Adam
b130e951cc
Merge branch 'obsd-master'
2022-07-06 10:01:10 +01:00
Nicholas Marriott
9e19f132f2
Errors are now displayed on attach so use control mode to test
...
instead.
2022-07-06 09:54:53 +01:00
nicm
1afe22086f
Show config errors on attach if they were not shown when the session
...
was created.
2022-07-06 08:40:52 +00:00
Nicholas Marriott
8e8b9865d1
Add hyperlink test, from Jeff Chiang.
2022-07-06 09:33:30 +01:00
nicm
a39827a85c
Remove debugging code.
2022-07-06 08:32:28 +00:00
nicm
9e03df5500
Defer reading from control client until the command line command has
...
completed.
2022-07-06 08:31:59 +00:00
nicm
dd602eaa61
Mention whether time is creation/activity for sort orders.
2022-07-06 07:51:37 +00:00
nicm
d0d2c39dec
Support hyperlinks with capture-pane -e and add a mouse_hyperlink
...
format, GitHub issue 3247 from Jeff Chiang.
2022-07-06 07:36:36 +00:00
Thomas Adam
57fec74966
Merge branch 'obsd-master'
2022-07-04 12:01:10 +01:00
nicm
9360e0ef32
Sort panes by index not by ID, GitHub issue 3249.
2022-07-04 08:39:45 +00:00
Nicholas Marriott
f08c019d41
Do not set Hls for hyperlinks on ncurses older than 5.9 (for example macOS).
2022-06-30 16:46:26 +01:00
Thomas Adam
c3af8f6b16
hyperlinks: remove vis.h
...
Not used on Linux.
2022-06-30 16:44:43 +01:00
Thomas Adam
01c4919f5f
Merge branch 'obsd-master'
2022-06-30 16:37:18 +01:00
nicm
cdacc12ce3
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.
2022-06-30 09:55:53 +00:00
Thomas Adam
d8c527a5f9
Merge branch 'obsd-master'
2022-06-27 12:01:09 +01:00
nicm
b22edcf3a5
Tweak previous - find end of style correctly.
2022-06-27 09:16:54 +00:00
nicm
786cff8db9
Do not expand single character format aliases inside #[] since they
...
interfere with colours. GitHub issue 3239 from Magnus Gross.
2022-06-27 09:14:49 +00:00
Thomas Adam
b63afaea61
Merge branch 'obsd-master'
2022-06-21 12:01:09 +01:00
nicm
9c89f7c2af
Store time lines are scrolled into history and display in copy mode.
2022-06-21 09:30:01 +00:00
Thomas Adam
d46870ede5
Merge branch 'obsd-master'
2022-06-20 12:01:09 +01:00
nicm
a888ce9963
Do not display configuration file errors in a pane when in control mode,
...
instead report them with a %config-error notification. GitHub issue 3193.
2022-06-20 07:59:37 +00:00
Thomas Adam
8ff3091d16
Merge branch 'obsd-master'
2022-06-17 10:01:10 +01:00
nicm
d9f84854ac
Check cursor options when a pane is created, not just when they are changed.
2022-06-17 07:28:05 +00:00
Thomas Adam
89fe2680a9
Merge branch 'obsd-master'
2022-06-16 16:01:08 +01:00
nicm
7cee982f90
Keep cursor on selected item on menu (useful for blind people), GitHub
...
issue 3225.
2022-06-16 13:27:39 +00:00
Nicholas Marriott
42358cc521
Typos from Bastian Venthur.
2022-06-15 08:01:50 +01:00
Thomas Adam
06869ff22f
Merge branch 'obsd-master'
2022-06-14 10:01:08 +01:00
nicm
616bde08ac
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.
2022-06-14 07:29:00 +00:00
Thomas Adam
6d0828b81c
Merge branch 'obsd-master'
2022-06-11 20:01:09 +01:00
nicm
42ddf02ffc
Fix size of flags output buffer.
2022-06-11 16:59:33 +00:00
Thomas Adam
56390e0a39
Merge branch 'obsd-master'
2022-06-10 16:01:11 +01:00
nicm
18a5835aff
Ignore OSC if the first argument is not properly terminated.
2022-06-10 11:55:30 +00:00
Nicholas Marriott
67960dcc9a
Merge tag '3.3a'
...
3.3a
2022-06-09 13:07:18 +01:00
Nicholas Marriott
0b355ae811
3.3a.
2022-06-09 12:30:50 +01:00
Nicholas Marriott
6a9bb2a622
Remove extra definition of getpeereid. From Eric N Vander Weele in GitHub issue
...
3209.
2022-06-09 12:28:38 +01:00
nicm
988e59cf3e
Do not attempt to use client in config file (it will be NULL), GitHub
...
issue 3206.
2022-06-09 12:28:34 +01:00
nicm
30e06e9d85
Do not unintentionally turn off all mouse mode when button is also present.
2022-06-09 12:28:22 +01:00
Thomas Adam
810daefdd1
Merge branch 'obsd-master'
2022-06-09 12:01:09 +01:00
nicm
ccc9dc3bb4
If an application gives the first parameter to OSC 52, validate and pass
...
on to outside terminal. GitHub issue 3192.
2022-06-09 09:12:55 +00:00
Thomas Adam
be2eb57d62
Merge branch 'obsd-master'
2022-06-07 14:01:09 +01:00
nicm
c07d582e24
Expand arguments to some commands where it makes sense, GitHub issue
...
3204 from Anindya Mukherjee.
2022-06-07 10:02:19 +00:00
Thomas Adam
afb3a5fe71
Merge branch 'obsd-master'
2022-06-04 10:01:09 +01:00
nicm
020c403dff
When picking a buffer because one isn't specified by the user, ignore
...
named buffers. GitHub issue 3212 from David le Blanc.
2022-06-04 07:42:07 +00:00
Thomas Adam
e77e11ec6b
Merge branch 'obsd-master'
2022-06-03 12:01:09 +01:00
nicm
3edda3c5e7
Do not unintentionally turn off all mouse mode when button is also present.
2022-06-03 08:09:16 +00:00
Thomas Adam
1184dc08d4
Merge branch 'obsd-master'
2022-06-03 00:01:08 +01:00
nicm
18838fbc87
Do not attempt to use client in config file (it will be NULL), GitHub
...
issue 3206.
2022-06-02 21:19:32 +00:00
Nicholas Marriott
be2617036f
Remove extra definition of getpeereid. From Eric N Vander Weele in GitHub issue
...
3209.
2022-06-02 21:45:53 +01:00
nicm
0f6227f46b
When deleting or renaming a buffer and a buffer name is specified,
...
complain if the buffer doesn't exist instead of silently deleting or
renaming the most recent buffer. GitHub issue 3205.
2022-06-02 20:41:21 +00:00
Thomas Adam
c1ac007576
Merge branch 'obsd-master'
2022-06-01 18:01:08 +01:00
nicm
201a8d8e7e
If escape-time is 0, force to 1 instead - not waiting at all is asking
...
for problems on some platforms.
2022-06-01 15:43:22 +00:00
Nicholas Marriott
b566cd57bf
Now back to 3.4.
2022-06-01 08:50:54 +01:00
Nicholas Marriott
87fe00e8b4
Update CHANGES.
2022-06-01 08:37:14 +01:00
Nicholas Marriott
ced83792b1
Set version to 3.3.
2022-06-01 08:28:32 +01:00
Thomas Adam
42f6d11a6b
Merge branch 'obsd-master'
2022-05-31 20:01:10 +01:00
nicm
74fb959f6d
Add a missing space.
2022-05-31 16:13:43 +00:00
Thomas Adam
9daaf01730
Merge branch 'obsd-master'
2022-05-31 14:01:09 +01:00
nicm
86a184b288
Trim menu item text correctly, GitHub issue 3197.
2022-05-31 10:22:42 +00:00
Thomas Adam
af596c0828
Merge branch 'obsd-master'
2022-05-30 16:28:27 +01:00
nicm
58c8ea1209
Remove duplicates from completion list, GitHub issue 3178.
2022-05-30 13:07:46 +00:00
nicm
2f2bb82f5f
Add pane_start_path to match start_command.
2022-05-30 13:07:06 +00:00
nicm
6a5d210e55
Set PWD so shells have a hint about the real path (this was done before
...
but lost in a merge). GitHub issue 3186.
2022-05-30 13:06:41 +00:00
nicm
384f0ee269
Fix property name from Sergei Dyshel, and a typo from imcusg at gmail
...
dot com.
2022-05-30 13:06:10 +00:00
nicm
006a529db1
Check if args_strtonum argument is NULL or not a string, from Anindya
...
Mukherjee.
2022-05-30 13:04:24 +00:00
nicm
af1496b300
Do not allow pipe-pane on dead panes, from Anindya Mukherjee, GitHub
...
issue 3174.
2022-05-30 13:03:46 +00:00
nicm
2b60ff588e
If a mouse position was above the maximum supported by the normal mouse
...
protocol (223), tmux was allowing it to wrap around. However, since tmux
was not correctly handling this on input, other programs also do not
handle it correctly, and the alternative SGR mouse mode is now
widespread, this seems unnecessary, so remove this feature. Also define
some constants to make it clearer what the numbers mean. Mostly from
Leonid S Usov in GitHub issue 3165.
2022-05-30 13:02:55 +00:00
nicm
cd89000c1d
Add a way for lines added to copy mode to be passed through the parser
...
to handle escape sequences and use it for run-shell, GitHub issue 3156.
2022-05-30 13:00:18 +00:00
nicm
20b0b38cf4
iTerm2 has OSC 7, from Gregory Anders.
2022-05-30 12:57:31 +00:00
nicm
0a8f356c72
Spacing/style nits.
2022-05-30 12:55:25 +00:00
nicm
af611815ea
Emit window-layout-changed on swap-pane, from George Nachman.
2022-05-30 12:54:09 +00:00
nicm
4ae2c64657
Better error reporting when applying custom layouts.
2022-05-30 12:52:02 +00:00
nicm
cd692b5a68
Add an ACL list for users connecting to the tmux socket. Users may be
...
forbidden from attaching, forced to attach read-only, or allowed to
attach read-write. A new command, server-access, configures the list.
tmux gets the user using getpeereid(3) of the client socket. Users must
still configure file system permissions manually. From Dallas Lyons and
others.
2022-05-30 12:48:57 +00:00
Nicholas Marriott
bf33e807b6
Fix property name, from Sergei Dyshel.
2022-05-30 08:43:06 +01:00
Nicholas Marriott
cf7e1c94df
Remove duplicates from completion list, GitHub issue 3178.
2022-05-20 09:00:37 +01:00
Nicholas Marriott
1b28b2b51d
Add pane_start_path to match start_command.
2022-05-20 08:49:05 +01:00
Nicholas Marriott
95baa32383
Set PWD so shells have a hint about the real path (this was done before but
...
lost in a merge). GitHub issue 3186.
2022-05-20 08:33:57 +01:00
Nicholas Marriott
ead75c2d51
Typos, from imcusg at gmail dot com.
2022-05-14 20:16:46 +01:00
Nicholas Marriott
2cad9a6af8
Check if args_strtonum argument is NULL or not a string, from Anindya
...
Mukherjee.
2022-05-14 20:13:52 +01:00
Nicholas Marriott
3b7dae9a53
Do not allow pipe-pane on dead panes, from Anindya Mukherjee, GitHub issue
...
3174.
2022-05-02 10:47:08 +01:00
Thomas Adam
5ed64657d8
Merge branch 'obsd-master'
2022-05-01 22:33:38 +01:00
Nicholas Marriott
c6b51cea92
If a mouse position was above the maximum supported by the normal mouse
...
protocol (223), tmux was allowing it to wrap around. However, since tmux was
not correctly handling this on input, other programs also do not handle it
correctly, and the alternative SGR mouse mode is now widespread, this seems
unnecessary, so remove this feature. Also define some constants to make it
clearer what the numbers mean. Mostly from Leonid S Usov in GitHub issue 3165.
2022-04-27 11:34:08 +01:00
Nicholas Marriott
58d1a206c6
Add a way for lines added to copy mode to be passed through the parser to
...
handle escape sequences and use it for run-shell, GitHub issue 3156.
2022-04-18 11:47:14 +01:00
Nicholas Marriott
e0c982c5ad
iTerm2 has OSC 7, from Gregory Anders.
2022-04-15 12:45:43 +01:00
nicm
d4423dca19
Fix clearphist alias, from Jacqueline Jolicoeur via jmc@.
2022-04-14 06:59:29 +00:00
Nicholas Marriott
8bcd392ee7
On platforms with no way to get peer UID, use getuid(), also fix some failure
...
checks.
2022-04-06 16:47:59 +01:00
Nicholas Marriott
3a6d82b7c8
Some style nits.
2022-04-06 16:39:46 +01:00
Nicholas Marriott
0c84a20d2f
Emit window-layout-changed on swap-pane, from George Nachman.
2022-04-06 14:43:12 +01:00
Nicholas Marriott
996e54763c
Better error reporting when applying custom layouts.
2022-04-06 14:41:44 +01:00
Nicholas Marriott
18105c8ecb
Do not send focus sequences when focus is enabled or disabled by the
...
application if it is turned off. GitHub issue 3142.
2022-04-06 14:30:37 +01:00
Nicholas Marriott
d6306b634e
Add an ACL list for users connecting to the tmux socket. Users may be forbidden
...
from attaching, forced to attach read-only, or allowed to attach read-write. A
new command, server-access, configures the list. tmux gets the user using
getpeereid(3) of the client socket. Users must still configure file system
permissions manually.
2022-04-06 14:28:50 +01:00
Nicholas Marriott
6e9a9d265e
Fix version.
2022-04-06 14:26:19 +01:00
Nicholas Marriott
36648f2668
Merge remote-tracking branch 'origin/3.3-rc'
2022-04-06 14:25:57 +01:00
Nicholas Marriott
7f86cab1d2
Merge tag '3.3-rc'
...
3.3-rc
2022-04-06 14:24:33 +01:00
Nicholas Marriott
39b1e96b45
Add to CHANGES.
2022-04-06 14:24:17 +01:00
nicm
1e9c3b3c63
Preserve CRLF flag when respawning.
2022-04-06 14:19:52 +01:00
naddy
fc6580574e
man pages: add missing commas between subordinate and main clauses
...
jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.
ok jmc@
2022-04-06 14:19:52 +01:00
nicm
2df7bc14fa
Capture up to used size not available size for each line.
2022-04-06 14:19:52 +01:00
nicm
880abd0ec2
Report error if creating socket fails with -D.
2022-04-06 14:19:52 +01:00
Nicholas Marriott
1c69a91c25
Add support for systemd socket activation (where systemd creates the Unix
...
domain socket for tmux rather than tmux creating it). Build with
--enable-systemd. From Julien Moutinho in GitHub issue 3119.
2022-04-06 14:19:52 +01:00
nicm
98de5784a0
Fix exit message if creating socket fails.
2022-04-06 14:19:51 +01:00
nicm
d4eda7f9e5
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.
2022-04-06 14:19:51 +01:00
nicm
89a0046ad3
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.
2022-04-06 14:19:51 +01:00
nicm
60a0a904e0
Check scroll-on-clear for ED also.
2022-04-06 14:19:51 +01:00
nicm
c0508c9321
Add an option (scroll-on-clear) to control if tmux scrolls into history
...
on clear, from Robert Lange in GitHub issue 3121.
2022-04-06 14:19:51 +01:00
nicm
fe44b105e4
Add an option to set the character used for unused areas of the
...
terminal, GitHub issue 3110.
2022-04-06 14:19:51 +01:00
nicm
ad7113e0db
With -f use percentages of window size not pane size, GitHub issue 2866.
2022-04-06 14:19:51 +01:00
nicm
23e613fcf5
Fix user hooks (which are strings not arrays).
2022-04-06 14:19:51 +01:00
nicm
98b92c0525
Add remain-on-exit-format to set text shown when pane is dead.
2022-04-06 14:19:51 +01:00
nicm
57f331438a
Add argument to refresh-client -l to forward clipboard to a pane. GitHub
...
issue 3068.
2022-04-06 14:19:51 +01:00
nicm
8aed444201
Add formats for client and server UID and user (for multiuser setups).
2022-04-06 14:19:50 +01:00
Nicholas Marriott
f97d784f17
Use getpeerucred if available (not tested).
2022-04-06 14:19:50 +01:00
Nicholas Marriott
759f949654
Need a declaration for getpeereid also.
2022-04-06 14:19:50 +01:00
Nicholas Marriott
f1d8724198
Add getpeerid compat.
2022-04-06 14:19:50 +01:00
Nicholas Marriott
367ee79df0
Remove unnecessary declarations.
2022-04-06 14:19:50 +01:00
nicm
d5a84de842
Pass client when adding menu item, GitHub issue 3103.
2022-04-06 14:19:50 +01:00
nicm
355ced93cc
Allow optional arguments.
2022-04-06 14:19:50 +01:00
nicm
bc0bd8213d
Don't convert codes for special keys (Tab, Enter, Escape).
2022-04-06 14:19:50 +01:00
topcat001
141a823ea4
Use PATH_MAX instead of MAXPATHLEN.
2022-04-06 14:19:50 +01:00
nicm
42e7959336
Exit on SIGHUP before attach also, GitHub issue 3084.
2022-04-06 14:19:50 +01:00
nicm
9947f7416a
Map control keys back to an ASCII uppercase letter when passing them on
...
as extended keys.
2022-04-06 14:19:50 +01:00
deraadt
c030d6fe36
MAXCOMLEN is no longer needed in these programs, so remove the annotation
...
from sys/param.h include lines, or remove the include lines entirely if
it this was the least requirement.
ok millert
2022-04-06 14:19:50 +01:00
nicm
046530878b
Do not attempt to update focus (and crash) when there is no previous window.
2022-04-06 14:19:50 +01:00
nicm
a26ebccd42
Add next_session_id format with the next session ID, GitHub issue 3078.
2022-04-06 14:19:50 +01:00
nicm
92a26a8b8c
Initialize copy_width before adjusting it, GitHub issue 3079.
2022-04-06 14:19:50 +01:00
nicm
f74a98cd07
Use correct size for screen when popup is created without borders.
2022-04-06 14:19:50 +01:00
nicm
4893edd5d6
Add a window-resized hook which is fired when the window is actually
...
resized which may be later than the client resize, GitHub issue 2995.
2022-04-06 14:19:49 +01:00
nicm
6a0a783c26
Support more mouse buttons when the terminal sends them, GitHub issue
...
3055.
2022-04-06 14:19:49 +01:00
Nicholas Marriott
7f40c5b647
No not allow static linking on macOS.
2022-04-06 14:19:49 +01:00
nicm
eabbc80b75
Add an option (default off) to control the passthrough escape sequence.
...
Like set-clipboard and allow-rename it is safer to forbid this by
default.
2022-04-06 14:19:49 +01:00
nicm
190b88fcab
Do not create a buffer from an OSC 52 response if we have not sent a
...
query.
2022-04-06 14:19:49 +01:00
nicm
2adbe3ec16
Do not return error with -q, GitHub issue 3065.
2022-04-06 14:19:49 +01:00
nicm
9efa419955
Use ACS for pane border indicators so they work with different line
...
types, from Thomas Adam.
2022-04-06 14:19:49 +01:00
nicm
921be61930
Adjust size given to resize-pane for pane status line, GitHub issue
...
3050.
2022-04-06 14:19:49 +01:00
Thomas Adam
b0ff446727
Merge branch 'obsd-master' into master
2022-04-01 14:01:11 +01:00
nicm
65c0af76fb
Preserve CRLF flag when respawning.
2022-04-01 10:11:59 +00:00
Thomas Adam
87b248f3e8
Merge branch 'obsd-master' into master
2022-03-31 20:01:11 +01:00
naddy
2d9f4ca9a1
man pages: add missing commas between subordinate and main clauses
...
jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.
ok jmc@
2022-03-31 17:27:27 +00:00
Thomas Adam
fc82f2525c
Merge branch 'obsd-master' into master
2022-03-30 10:01:11 +01:00
nicm
ded695504f
Capture up to used size not available size for each line.
2022-03-30 07:05:26 +00:00
Thomas Adam
ac16f2c641
Merge branch 'obsd-master' into master
2022-03-28 10:01:11 +01:00
Nicholas Marriott
fc7f1e7acb
Add support for systemd socket activation (where systemd creates the Unix
...
domain socket for tmux rather than tmux creating it). Build with
--enable-systemd. From Julien Moutinho in GitHub issue 3119.
2022-03-28 08:42:13 +01:00
nicm
207b1bc385
Report error if creating socket fails with -D.
2022-03-28 07:40:57 +00:00
Thomas Adam
d26a4ea463
Merge branch 'obsd-master' into master
2022-03-25 08:01:10 +00:00
nicm
422fcd294a
Fix exit message if creating socket fails.
2022-03-25 06:14:42 +00:00
Thomas Adam
b638886716
Merge branch 'obsd-master' into master
2022-03-24 14:01:11 +00:00
nicm
938130bc69
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.
2022-03-24 12:07:25 +00:00
Thomas Adam
5e491e7947
Merge branch 'obsd-master' into master
2022-03-24 12:01:11 +00:00
nicm
792d13af49
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.
2022-03-24 09:05:57 +00:00
Thomas Adam
964deae422
Merge branch 'obsd-master' into master
2022-03-17 16:01:11 +00:00
nicm
6a1706a62f
Check scroll-on-clear for ED also.
2022-03-17 13:39:13 +00:00
nicm
10d689e735
Add an option (scroll-on-clear) to control if tmux scrolls into history
...
on clear, from Robert Lange in GitHub issue 3121.
2022-03-17 11:35:37 +00:00
Thomas Adam
5d4c3ef762
Merge branch 'obsd-master' into master
2022-03-16 20:01:10 +00:00
nicm
e6e737ac0b
Add an option to set the character used for unused areas of the
...
terminal, GitHub issue 3110.
2022-03-16 17:00:17 +00:00
Thomas Adam
ee3f1d25d5
Merge branch 'obsd-master' into master
2022-03-09 00:01:12 +00:00
nicm
bfbe972225
With -f use percentages of window size not pane size, GitHub issue 2866.
2022-03-08 22:14:25 +00:00
nicm
cf217fa618
Fix user hooks (which are strings not arrays).
2022-03-08 21:58:37 +00:00
Thomas Adam
25337ac102
Merge branch 'obsd-master' into master
2022-03-08 20:01:11 +00:00
nicm
a3d920930b
Add remain-on-exit-format to set text shown when pane is dead.
2022-03-08 18:31:46 +00:00
Thomas Adam
2fb6089e81
Merge branch 'obsd-master' into master
2022-03-08 14:01:11 +00:00
nicm
ad9b805983
Add argument to refresh-client -l to forward clipboard to a pane. GitHub
...
issue 3068.
2022-03-08 12:01:19 +00:00
Nicholas Marriott
04952f15df
Use getpeerucred if available (not tested).
2022-03-08 11:35:06 +00:00
nicm
98cd8e4cad
Add formats for client and server UID and user (for multiuser setups).
2022-03-08 11:28:40 +00:00
Nicholas Marriott
9ed1226a66
Need a declaration for getpeereid also.
2022-03-08 11:04:15 +00:00
Nicholas Marriott
afd9b68d10
Add getpeerid compat.
2022-03-08 11:02:17 +00:00
Nicholas Marriott
54d2249716
Remove unnecessary declarations.
2022-03-07 15:21:39 +00:00
Thomas Adam
7eff2fe780
Merge branch 'obsd-master' into master
2022-03-07 14:01:11 +00:00
nicm
a731b1a916
Pass client when adding menu item, GitHub issue 3103.
2022-03-07 11:52:09 +00:00
Thomas Adam
f84f1c0cfe
Merge branch 'obsd-master' into master
2022-03-03 10:01:09 +00:00
nicm
7d4224f207
Allow optional arguments.
2022-03-03 08:24:12 +00:00
Thomas Adam
bf14bf6259
Merge branch 'obsd-master' into master
2022-03-01 18:01:10 +00:00
nicm
f39a71aaad
Don't convert codes for special keys (Tab, Enter, Escape).
2022-03-01 15:20:22 +00:00
Anindya Mukherjee
cd9a81e242
Merge pull request #3093 from topcat001/pathfix
...
Use PATH_MAX instead of MAXPATHLEN.
2022-02-28 13:16:23 -08:00
topcat001
047c011a15
Use PATH_MAX instead of MAXPATHLEN.
2022-02-28 13:11:28 -08:00
Thomas Adam
649685ff6d
Merge branch 'obsd-master' into master
2022-02-28 12:01:10 +00:00
Thomas Adam
2750195709
Merge branch 'obsd-master' into master
2022-02-28 10:01:11 +00:00
nicm
2da096d828
Exit on SIGHUP before attach also, GitHub issue 3084.
2022-02-28 09:34:57 +00:00
nicm
2e59ff2db9
Map control keys back to an ASCII uppercase letter when passing them on
...
as extended keys.
2022-02-28 09:24:22 +00:00
Thomas Adam
60688afe9c
Merge branch 'obsd-master' into master
2022-02-22 20:01:11 +00:00
deraadt
e8d6d53a7b
MAXCOMLEN is no longer needed in these programs, so remove the annotation
...
from sys/param.h include lines, or remove the include lines entirely if
it this was the least requirement.
ok millert
2022-02-22 17:35:01 +00:00
Thomas Adam
dc0746946e
Merge branch 'obsd-master' into master
2022-02-22 16:01:11 +00:00
Thomas Adam
2be5488693
Merge branch 'obsd-master' into master
2022-02-22 14:01:10 +00:00
nicm
d54b18ca2b
Do not attempt to update focus (and crash) when there is no previous window.
2022-02-22 13:31:18 +00:00
nicm
fa71e9a079
Add next_session_id format with the next session ID, GitHub issue 3078.
2022-02-22 11:10:41 +00:00
nicm
0fd01f8873
Initialize copy_width before adjusting it, GitHub issue 3079.
2022-02-22 11:07:25 +00:00
nicm
a9b880921d
Use correct size for screen when popup is created without borders.
2022-02-22 11:01:57 +00:00
Thomas Adam
88d9a8fc05
Merge branch 'obsd-master' into master
2022-02-17 12:01:10 +00:00
nicm
818b2176ef
Add a window-resized hook which is fired when the window is actually
...
resized which may be later than the client resize, GitHub issue 2995.
2022-02-17 09:58:47 +00:00
Thomas Adam
722f395e61
Merge branch 'obsd-master' into master
2022-02-16 22:01:11 +00:00
nicm
0027ee13a0
Support more mouse buttons when the terminal sends them, GitHub issue
...
3055.
2022-02-16 18:55:05 +00:00
Nicholas Marriott
c7c7e875a0
No not allow static linking on macOS.
2022-02-16 12:26:23 +00:00
Thomas Adam
85ef73591d
Merge branch 'obsd-master' into master
2022-02-15 16:01:11 +00:00
nicm
5076beb009
Add an option (default off) to control the passthrough escape sequence.
...
Like set-clipboard and allow-rename it is safer to forbid this by
default.
2022-02-15 13:11:29 +00:00
nicm
f85208602d
Do not create a buffer from an OSC 52 response if we have not sent a
...
query.
2022-02-15 13:03:02 +00:00
Thomas Adam
df681390a6
Merge branch 'obsd-master' into master
2022-02-14 10:01:11 +00:00
nicm
040164555a
Do not return error with -q, GitHub issue 3065.
2022-02-14 09:10:48 +00:00
Thomas Adam
c67abcf818
Merge branch 'obsd-master' into master
2022-02-04 14:01:09 +00:00
nicm
07e2d88c20
Use ACS for pane border indicators so they work with different line
...
types, from Thomas Adam.
2022-02-04 11:57:22 +00:00
Thomas Adam
784d6a3929
Merge branch 'obsd-master' into master
2022-02-03 14:01:11 +00:00
Nicholas Marriott
53ee4f0334
Merge branch 'master' into 3.3-rc
2022-02-03 12:50:49 +00:00
Thomas Adam
c0598e2515
Merge branch 'obsd-master' into master
2022-02-03 12:01:10 +00:00
nicm
3276f0c184
Adjust size given to resize-pane for pane status line, GitHub issue
...
3050.
2022-02-03 11:06:11 +00:00
nicm
948d2fad0a
Use format_draw for command prompt prefix to allow styles, GitHub issue
...
3054.
2022-02-03 10:07:11 +00:00
Thomas Adam
1fdec20b0d
Merge branch 'obsd-master' into master
2022-02-03 10:01:10 +00:00
Thomas Adam
375f6c90b0
Merge branch 'obsd-master' into master
2022-02-03 08:01:12 +00:00
Nicholas Marriott
b46abeb34d
3.3-rc.
2022-02-03 07:50:35 +00:00
Nicholas Marriott
57396b55a2
Update CHANGES.
2022-02-03 07:50:06 +00:00
nicm
c401c91ad9
Update focus when active pane changes after pane destroyed.
2022-02-03 07:38:17 +00:00
nicm
5080acc127
Add a key in copy mode to toggle position indicator.
2022-02-03 07:26:43 +00:00
Thomas Adam
a5cf7a9b39
Merge branch 'obsd-master' into master
2022-02-01 20:01:13 +00:00
nicm
97900d0442
A menu must be shown on a client, so always give the client when adding
...
the items. Also fix mode menus.
2022-02-01 18:12:20 +00:00
Thomas Adam
a4f336a91a
Merge branch 'obsd-master' into master
2022-02-01 16:01:11 +00:00
nicm
7e34645fcb
Add option to show arrows for active pane indicator, GitHub issue 3022
...
from Marcel Partap.
2022-02-01 14:46:41 +00:00
Thomas Adam
1b7afd5129
Merge branch 'obsd-master' into master
2022-02-01 14:01:11 +00:00
nicm
7a4ba6d4a5
Mention that if-shell and #() use /bin/sh.
2022-02-01 12:05:42 +00:00
nicm
770d28b8c5
Do not overflow width when not enough space.
2022-02-01 11:52:08 +00:00
Thomas Adam
6c0397f497
Merge branch 'obsd-master' into master
2022-01-17 12:01:10 +00:00
nicm
a6b361e775
Do not try to strdup NULL, from seL4 at disroot dot org in GitHub issue
...
3038.
2022-01-17 10:40:03 +00:00
Thomas Adam
28b6237c62
Merge branch 'obsd-master' into master
2022-01-06 10:01:12 +00:00
Nicholas Marriott
e5e4df7a22
Mention alternate config files, from Daniel Augusto in GitHub issue 3023.
2022-01-06 08:23:42 +00:00
nicm
b2b94dcba7
Ignore windows without a size set (may be used for pane only), from
...
Anindya Mukherjee.
2022-01-06 08:20:00 +00:00
Thomas Adam
080079c55a
Merge branch 'obsd-master' into master
2021-12-31 14:01:10 +00:00
nicm
e6e3c75ed7
Try to turn on less-capable mouse modes when turning on more-capable, to
...
increase the chances we get something even if the terminal doesn't support
the one we really want. GitHub issue 3020.
2021-12-31 11:35:49 +00:00
Thomas Adam
47923bd5f6
Merge branch 'obsd-master' into master
2021-12-21 18:01:10 +00:00
nicm
9aad945f7e
Support underscore style with capture-pane -e, GitHub issue 2928.
2021-12-21 14:57:28 +00:00
Thomas Adam
9c82ff1778
Merge branch 'obsd-master' into master
2021-12-21 14:01:09 +00:00
nicm
ff64aafeab
ARM's Morello CHERI architecture does not support pointers in packed
...
structures, so remove the packed attribute on struct grid_line and
reorder the members to eliminate unnecessary padding. From Jessica
Clarke in GitHub issue 3012.
2021-12-21 13:07:53 +00:00
Thomas Adam
ba9b9367d5
Merge branch 'obsd-master' into master
2021-12-20 10:01:13 +00:00
nicm
e4856de8bf
Do not crash on a zero size character.
2021-12-20 09:02:12 +00:00
Thomas Adam
70d330a353
Merge branch 'obsd-master' into master
2021-12-13 12:01:10 +00:00
nicm
c6149adf55
Make pane-border-format a pane option, GitHub issue 2999.
2021-12-13 09:42:20 +00:00
Thomas Adam
5c5712be5c
Merge branch 'obsd-master' into master
2021-12-10 16:01:11 +00:00
Thomas Adam
8941dbe482
Merge branch 'obsd-master' into master
2021-12-10 14:01:10 +00:00
nicm
9c1633a865
Missed unlinked control notifications, GitHub issue 2996.
2021-12-10 12:51:11 +00:00
nicm
1f9aad2bb4
Mention XParseColor(3) for the cursor colour escape sequence.
2021-12-10 12:45:32 +00:00
nicm
db3aabcc34
Add a NOBLOCK flag rather than adding amount to wait for when
...
dealing with potentially-long sequences. GitHub issue 3001.
2021-12-10 12:42:37 +00:00
Thomas Adam
138ffc7cb6
Merge branch 'obsd-master' into master
2021-12-07 09:52:59 +00:00
nicm
d721fb2a9f
Respond to OSC 4 query.
2021-12-07 07:28:44 +00:00
deraadt
7532a5cf95
sys/signal.h (or some master include) must happen before sys/proc.h, which
...
is not standalone.
This problem is being hidden by a sys/param.h which cannot be deleted yet.
2021-12-07 00:40:03 +00:00
deraadt
71c3234dc7
Use PATH_MAX (the standard name) rather than MAXPATHLEN (from BSD sys/param.h)
2021-12-07 00:38:42 +00:00
Nicholas Marriott
ef676e1202
Remove fallback for wcwidth failure, GitHub issue 3003.
2021-12-06 10:17:34 +00:00
nicm
ecac73f664
Fix g/G keys to be in line with copy mode.
2021-12-06 10:10:52 +00:00
nicm
8fccbbb026
Do not dereference NULL window when resizing client, GitHub issue 2982.
2021-12-06 10:08:42 +00:00
nicm
333cf6429a
Bump response timer to three seconds, GitHub issue 2984.
2021-11-29 11:05:28 +00:00
nicm
add03dfb8d
Fix user option lookup ordering.
2021-11-29 11:01:51 +00:00
nicm
b55f0ac6b9
Leave the hardware cursor at the position of the selected line in choose
...
modes and current editing position and at the command prompt. It is
invisible but this is helpful for people using screen readers. GitHub
issue 2970.
2021-11-15 10:58:13 +00:00
nicm
cb8a0d83fb
If automatic-rename is off, allow the escape sequence to set an empty
...
window name, GitHub issue 2964.
2021-11-11 09:31:16 +00:00
nicm
630c592ef8
If trimming menu item text, show key if it would take up less than a
...
quarter of the space; from Alexis Hildebrandt.
Also new sentence, new line in tmux.1, from jmc.
2021-11-11 09:22:33 +00:00
Nicholas Marriott
10b3cd17fa
OS X -> macOS, from J Lewis Muir.
2021-11-11 09:18:04 +00:00
kn
8f1cc0e9fa
Fix mandoc HTML rendering for command aliases
...
Replace hand-rolled parentheses with the proper mdoc(7) macro,
otherwise the closing ")" ends up inside the command description.
Reported by Josh Rickmar, thanks!
2021-11-04 13:15:13 +00:00
Thomas Adam
77fc7ac3be
Merge branch 'obsd-master' into master
2021-11-03 16:01:14 +00:00
nicm
57100376cc
Add a cursor-style option, from Alexis Hildebrandt in GitHub issue 2960.
2021-11-03 13:37:17 +00:00
Thomas Adam
1fc0d1b74f
Merge branch 'obsd-master' into master
2021-11-02 14:01:11 +00:00
nicm
200b6536e1
fatalx on unknown enum members in a couple of places, from Ben Boeckel.
2021-11-02 10:57:04 +00:00
Thomas Adam
7d330c19e8
Merge branch 'obsd-master' into master
2021-11-01 12:01:12 +00:00
Thomas Adam
774903f6c4
Merge branch 'obsd-master' into master
2021-11-01 10:01:13 +00:00
nicm
8d2286b769
Add a cursor-colour option, from Alexis Hildebrandt in GitHub issue
...
2959.
2021-11-01 09:34:49 +00:00
nicm
4fe5aa99fb
Fix a comparison, from Ben Boeckel, and a crash when opening completion
...
menu, from Anindya Mukherjee.
2021-11-01 07:48:04 +00:00
Nicholas Marriott
c76904343a
Spelling, from someone in GitHub issue 2958.
2021-10-29 08:37:06 +01:00
Thomas Adam
60cacdffea
Merge branch 'obsd-master' into master
2021-10-28 22:01:13 +01:00
nicm
4acad43013
Do not force the cursor to move if it is in the automargin space at EOL
...
and that is where we want it to be, GitHub issue 2956.
2021-10-28 18:57:06 +00:00
nicm
49d33a4282
Allow detach even if suspend flag set, GitHub issue 2932.
2021-10-28 18:54:33 +00:00
nicm
76f5d3364c
Expand command as a format, GitHub issue 2920.
2021-10-28 18:39:15 +00:00
Thomas Adam
c77924bb56
Merge branch 'obsd-master' into master
2021-10-26 16:01:11 +01:00
nicm
9695114230
Accept some emacs control keys in vi normal mode, from Alexis
...
Hildebrandt in GitHub issue 2922.
2021-10-26 12:29:41 +00:00
nicm
5745bd27fd
Do not allow inline styles to replace mode-style for the selected item,
...
from Alexis Hildebrandt in GitHub issue 2946.
2021-10-26 12:22:23 +00:00
Thomas Adam
6f46f71d58
Merge branch 'obsd-master' into master
2021-10-26 00:01:13 +01:00
nicm
197a116f5a
Add a way to force a colour to RGB and a format to display it.
2021-10-25 21:21:16 +00:00
nicm
eb82ad5216
Missing Pp, from Alexis Hildebrandt.
2021-10-25 20:32:42 +00:00
Thomas Adam
3934d9b24d
Merge branch 'obsd-master' into master
2021-10-25 12:01:11 +01:00
nicm
ef46eb91a5
Add -s and -S to display-popup to set popup and border style, from
...
Alexis Hildebrandt in GitHub issue 2931.
2021-10-25 09:38:36 +00:00
nicm
0cca695d6e
Instead of setting the popup default colours in the draw callback, set
...
it up in popup_display and follow the same routine as panes in the draw
and init_ctx callbacks - use the palette if the option value is default.
Allows application-set fg and bg to work in panes again.
2021-10-25 09:22:17 +00:00
Thomas Adam
619d934d7b
Merge branch 'obsd-master' into master
2021-10-25 00:01:11 +01:00
deraadt
9b4148b12c
For open/openat, if the flags parameter does not contain O_CREAT, the
...
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert
2021-10-24 21:24:17 +00:00
Thomas Adam
5071b82c77
Merge branch 'obsd-master' into master
2021-10-22 20:01:11 +01:00
nicm
8235957eaa
Remove key and trim text if menu cannot fit in available space, based on
...
a change from Alexis Hildebrandt.
2021-10-22 17:12:50 +00:00
Thomas Adam
be2413292f
Merge branch 'obsd-master' into master
2021-10-21 12:01:10 +01:00
nicm
289ac55ebd
Correctly adjust the end pointer for a two character terminator before
...
decoding OSC 52 response, from Daniel Ekloef in GitHub issue 2942.
2021-10-21 08:36:51 +00:00
nicm
7bd9cdf6fc
Show error if user option doesn't exist, GitHub issue 2938.
2021-10-21 08:23:48 +00:00
Thomas Adam
1bf2f811ea
Merge branch 'obsd-master' into master
2021-10-20 14:01:15 +01:00
nicm
acba07629e
Remove a TODO comment.
2021-10-20 09:52:27 +00:00
nicm
8a9bfd0cdd
Add -T to set a popup title, from Alexis Hildebrandt in GitHub issue 2941.
2021-10-20 09:50:40 +00:00
Thomas Adam
65bb36d6bd
Merge branch 'obsd-master' into master
2021-10-19 16:01:12 +01:00
nicm
f26b8c57ff
Same as -N, don't send if 0 arguments and -R.
2021-10-19 12:51:43 +00:00
Thomas Adam
9e986d6a96
Merge branch 'obsd-master' into master
2021-10-18 12:01:12 +01:00
nicm
51ff77d47b
Fix menu width containing disabled items, from Alexis Hildebrandt in
...
GitHub issue 2935.
2021-10-18 09:48:35 +00:00
nicm
2c188ee0c5
Spacing fixes from Alexis Hildebrandt.
2021-10-18 09:15:56 +00:00
nicm
cc27a43c40
Remove duplicate options, spotted by Ricky Cintron.
2021-10-18 09:09:46 +00:00
Thomas Adam
c57df2bb73
Merge branch 'obsd-master' into master
2021-10-15 14:01:13 +01:00
nicm
537302f2c1
Do not send any key if -N flag is given even if no other arguments,
...
fixes problem with repeat in copy mode reported by tb@.
2021-10-15 10:39:22 +00:00
Thomas Adam
264fe7fc2a
Merge branch 'obsd-master' into master
2021-10-14 16:01:20 +01:00
nicm
add20637f2
Add popup-border-lines option to set popup line style, from Alexis
...
Hildebrandt, GitHub issue 2930.
2021-10-14 13:19:01 +00:00
Thomas Adam
ee9885a40c
Merge branch 'obsd-master' into master
2021-10-14 12:01:12 +01:00
nicm
d0ab1a837a
When checking ranges in tty_cmd_cells, cannot use the tty cursor
...
position and tty_cursor because it may be at the final invisible cursor
position on automargin terminals. The text to be drawn is confined to
the pane, so use the pane cursor position for the checks instead. Fix
from Anindya Mukherjee, redraw problem reported by naddy@.
2021-10-14 09:54:51 +00:00
Thomas Adam
fb23df679b
Merge branch 'obsd-master' into master
2021-10-13 14:01:16 +01:00
nicm
837ca176d1
Add popup-style and popup-border-style options, from Alexis Hildebrandt
...
in GitHub issue 2927.
2021-10-13 09:28:36 +00:00
Thomas Adam
aff2a473ec
Merge branch 'obsd-master' into master
2021-10-11 16:01:13 +01:00
nicm
b8581ec80e
Make positions hidden by overlays range-based rather than character-based,
...
from Anindya Mukherjee.
2021-10-11 13:27:50 +00:00
Thomas Adam
af82106fae
Merge branch 'obsd-master' into master
2021-10-11 14:01:13 +01:00
nicm
759efe1b33
Add -e flag to set environment for popup, from Alexis Hildebrandt in
...
GitHub issue 2924.
2021-10-11 10:55:30 +00:00
Thomas Adam
7ca863c5af
Merge branch 'obsd-master' into master
2021-10-08 18:01:11 +01:00
jmc
7800a431ea
remove extra .El;
2021-10-08 14:14:31 +00:00
Thomas Adam
bf0f694f91
Merge branch 'obsd-master' into master
2021-10-08 10:01:12 +01:00
kn
50a77f4417
Add tags for command aliases
...
Make ":tnew" work, i.e. bring the reader to the definition of the full
"new-window" command aliased as "new" just like ":tnew-window" would.
OK nicm
2021-10-08 06:37:39 +00:00
Thomas Adam
fed7b29c7e
Merge branch 'obsd-master' into master
2021-10-07 10:01:10 +01:00
nicm
5f63181ed5
Add a missing El, from Alexis Hildebrandt in GitHub issue 2918.
2021-10-07 07:53:31 +00:00
nicm
9574496333
Handle splitw -I correctly when used from an attached client, GitHub
...
issue 2917.
2021-10-07 07:52:13 +00:00
Thomas Adam
5374417428
Merge branch 'obsd-master' into master
2021-10-06 12:01:10 +01:00
nicm
5359b76619
Do not reset cursor to default if it has never been changed, fixes
...
problem reported by naddy.
2021-10-06 10:33:12 +00:00
Thomas Adam
c8802c776a
Merge branch 'obsd-master' into master
2021-10-06 00:01:12 +01:00
nicm
da05d05824
Fix some warnings.
2021-10-05 20:15:16 +00:00
Thomas Adam
d8996a1c1d
Merge branch 'obsd-master' into master
2021-10-05 20:01:11 +01:00
nicm
e06a4e041c
Set mouse_x and mouse_y on the status line, GitHub issue 2913.
2021-10-05 17:23:13 +00:00
Thomas Adam
479c9563c7
Merge branch 'obsd-master' into master
2021-10-05 16:01:13 +01:00
nicm
9f6164a05c
Make send-keys without any arguments send the key it is bound to (if
...
any). GitHub issue 2904.
2021-10-05 12:49:37 +00:00
nicm
9b1fdb291e
Separate "very visible" flag from blinking flag, it should not affect
...
DECSCUSR. GitHub issue 2891.
2021-10-05 12:46:02 +00:00
nicm
3d5a02bf45
Do not try to use NULL time values.
2021-10-05 12:45:02 +00:00
Thomas Adam
bf595a0cb0
Merge branch 'obsd-master' into master
2021-09-27 22:01:10 +01:00
nicm
68c8905859
Do not call recalculate_sizes while clearing a client session because it
...
needs to loop over the clients, instead do it after all clients are
cleared. Fixes a crash reported by martijn@ when a session with multiple
clients attached is destroyed, but there are other sessions so tmux does
not entirely exit. ok deraadt
2021-09-27 19:12:00 +00:00
Thomas Adam
03f9963f3d
Merge branch 'obsd-master' into master
2021-09-22 18:01:10 +01:00
nicm
257e9ba69a
Fix command prompt with multiple prompts (add the result onto the list
...
again as we go along). ok deraadt
2021-09-22 15:21:44 +00:00
Nicholas Marriott
9c77a5b9f0
Remove duplicate.
2021-09-21 10:03:38 +01:00
Nicholas Marriott
b2482535d0
Crosscompiling defaults from Romain Francoise.
2021-09-21 09:54:50 +01:00
Nicholas Marriott
097a792f9d
Update obsolete autoconf macros, from "kylo252" GitHub issue 2900.
2021-09-21 09:53:44 +01:00
Thomas Adam
25df71b90d
Merge branch 'obsd-master' into master
2021-09-17 10:01:10 +01:00
nicm
c4b969ca62
Do not destroy sessions twice, GitHub issue 2889.
2021-09-17 07:20:49 +00:00
Thomas Adam
409e121cac
Merge branch 'obsd-master' into master
2021-09-16 10:01:11 +01:00
nicm
3c3d371f99
Fix run-shell -d with no command, GitHub issue 2885.
2021-09-16 06:39:22 +00:00
Nicholas Marriott
8554b80b8b
Merge tag '3.3-rc'
...
3.3-rc
2021-09-15 14:08:15 +01:00
Nicholas Marriott
3be44313aa
Next is 3.4.
2021-09-15 14:07:42 +01:00
Nicholas Marriott
ed280e14c8
Missing header.
2021-09-15 14:03:19 +01:00
Nicholas Marriott
86d505af46
3.3-rc.
2021-09-15 13:42:50 +01:00
Nicholas Marriott
7186ab25c9
Those were already there...
2021-09-15 13:40:51 +01:00
Nicholas Marriott
a049ebd6f7
And more CHANGES.
2021-09-15 13:37:39 +01:00
Nicholas Marriott
adb620c4e4
Update CHANGES.
2021-09-15 13:35:08 +01:00
Thomas Adam
2b9830f0e7
Merge branch 'obsd-master' into master
2021-09-15 10:01:10 +01:00
nicm
a19cac5c46
For the moment, restore if-shell and run-shell to parsing at the last
...
moment (when the shell command completes) rather than when first
invoked, GitHub issue 2872.
2021-09-15 07:38:30 +00:00
Nicholas Marriott
ddcf5b801a
Mention FAQ, from Illia Bobyr.
2021-09-13 07:57:37 +01:00
Thomas Adam
b28fffc0f7
Merge branch 'obsd-master' into master
2021-09-10 18:01:11 +01:00
nicm
e6b40cb339
Do fatal/fatalx a different way so the compiler trick to avoid warnings
...
becomes unnecessary, prompted by theo.
2021-09-10 15:03:18 +00:00
nicm
33ac7a346e
Get rid of the last two warnings by turning them off around the problem
...
statements, if the compiler supports it.
2021-09-10 14:22:24 +00:00
Nicholas Marriott
3b10392bfc
Icons, from someone on GitHub in issue 2870.
2021-09-10 15:00:58 +01:00
Thomas Adam
3358c9a8f1
Merge branch 'obsd-master' into master
2021-09-10 12:01:10 +01:00
nicm
5cdc1bdd32
Disable aliases inside aliases for the moment.
2021-09-10 08:52:46 +00:00
Thomas Adam
31a6e5eff4
Merge branch 'obsd-master' into master
2021-09-10 02:01:12 +01:00
nicm
768fb9080f
Keep -? as usage.
2021-09-09 21:55:03 +00:00
Thomas Adam
42b0be4cfd
Merge branch 'obsd-master' into master
2021-09-09 22:01:11 +01:00
nicm
a0b39dba31
Turn on both button and all mouse modes for menus since some terminals
...
only support the former.
2021-09-09 19:37:17 +00:00
Thomas Adam
732288c489
Merge branch 'obsd-master' into master
2021-09-09 16:01:09 +01:00
nicm
34312fd6ee
Expand argument to run-shell again.
2021-09-09 13:38:32 +00:00
Thomas Adam
cf5e1bb80a
Merge branch 'obsd-master' into master
2021-09-09 10:01:10 +01:00
nicm
5a4b2fd68c
Fix parsing of aliases again (GitHub issue 2842), also make argument
...
parsing a bit simpler and fix the names of some client flags.
2021-09-09 06:57:48 +00:00
Thomas Adam
d776c9acfc
Merge branch 'obsd-master' into master
2021-09-02 10:01:09 +01:00
nicm
329c2c2a91
Change copying arguments to that flags without arguments are inserted
...
correctly and empty arguments lists do not crash. Fixes crash reported
by & ok mpi@.
2021-09-02 07:11:03 +00:00
Nicholas Marriott
d62aee506b
Regress conf from https://raw.githubusercontent.com/lacygoill/config/master/.config/tmux/tmux.conf .
2021-08-30 08:24:43 +01:00
Nicholas Marriott
388f0fe973
Update CHANGES.
2021-08-30 08:17:38 +01:00
Thomas Adam
609baea95e
Merge branch 'obsd-master' into master
2021-08-27 20:01:11 +01:00
nicm
daec63e5e6
Replace %% in command lists (by copying them) for template arguments ,
...
this means they can be used with {} as well. Also make argument
processing from an existing vector preserve commands. GitHub issue 2858.
2021-08-27 17:25:55 +00:00
nicm
fd756a150b
Allow control mode clients to set a hard limit on the window width and
...
height, GitHub issue 2594.
2021-08-27 17:15:57 +00:00
Thomas Adam
c6375a0d40
Merge branch 'obsd-master' into master
2021-08-25 12:01:11 +01:00
nicm
24636be42b
Improve some logging.
2021-08-25 10:18:01 +00:00
nicm
f4f8d3b5ed
Ignore client creating session when working out size if it is a control
...
client.
2021-08-25 10:15:15 +00:00
Nicholas Marriott
6616b42b2c
Fix test.
2021-08-25 10:24:33 +01:00
nicm
a3c6057b51
bind-key needs to allow commands for any argument for the moment.
2021-08-25 09:18:08 +00:00
Thomas Adam
c7266ca78d
Merge branch 'obsd-master' into master
2021-08-25 10:01:10 +01:00
nicm
03d173cbd8
Validate command argument types (string or command list) and give more
...
useful error messages.
2021-08-25 08:51:55 +00:00
nicm
c6d6af4903
setupterm needs char * not const char * on some platforms.
2021-08-25 07:37:20 +00:00
Nicholas Marriott
6ac09aa47c
Disable a couple of warnings on macOS.
2021-08-25 08:36:51 +01:00
nicm
a252fadf8a
Fix up some printflike attributes.
2021-08-25 07:09:30 +00:00
nicm
78da5a3756
Start inputs as NULL so not freeing random stack garbage, GitHub issue 2852.
2021-08-25 06:36:05 +00:00
Thomas Adam
7fe3588e49
Merge branch 'obsd-master' into master
2021-08-23 20:01:09 +01:00
nicm
841ce74b43
args_make_commands_now needs to take an extra reference to the returned
...
command list since it will be freed already.
2021-08-23 17:05:43 +00:00
Thomas Adam
95a374d7d2
Merge branch 'obsd-master' into master
2021-08-23 16:06:46 +01:00
nicm
210e71edf3
Move command argument parsing common functions and don't bother to parse
...
again if given a command rather than a string.
2021-08-23 12:33:55 +00:00
nicm
03b83a5a34
Key bindings steal a reference to the command instead of adding their
...
own, it was correct not to add a reference when parsing, but the
bind-key then needs to add one.
2021-08-23 11:48:21 +00:00
nicm
1f0c0914c7
Revert one of previous, for some reason it is being freed.
2021-08-23 11:08:26 +00:00
nicm
4a753dbefc
Fix a few memory leaks.
2021-08-23 11:04:21 +00:00
nicm
3ed37a2079
Limit width and height to tty correctly, GitHub issue 2843.
2021-08-23 08:17:41 +00:00
Thomas Adam
1dec1ca146
Merge branch 'obsd-master' into master
2021-08-22 18:01:18 +01:00
Nicholas Marriott
bc71e233d9
Fix style regress test.
2021-08-22 16:33:57 +01:00
nicm
2e9bafaf14
Fix handling of leading #s when working out width.
2021-08-22 15:33:14 +00:00
Thomas Adam
03054598df
Merge branch 'obsd-master' into master
2021-08-22 16:01:19 +01:00
nicm
72d905f32c
Do not double free expanded path in source-file, also remove some
...
unnecessary assignments.
2021-08-22 13:48:29 +00:00
nicm
c0048d6d20
Insert alias in the right place, GitHub issue 2842.
2021-08-22 13:00:28 +00:00
Thomas Adam
324f87cf14
Merge branch 'obsd-master' into master
2021-08-22 12:08:05 +01:00
nicm
0084cbef5a
Free value properly.
2021-08-21 20:57:52 +00:00
nicm
069f5925af
Preserve argument type in command and convert to string on demand.
2021-08-21 20:46:43 +00:00
Thomas Adam
921991c98d
Merge branch 'obsd-master' into master
2021-08-21 20:01:22 +01:00
nicm
326d2ef234
Pass typed arguments out of the parser into the arguments list and let
...
it convert them into strings.
2021-08-21 18:39:07 +00:00
nicm
63b6eec278
Use new syntax for default key bindings.
2021-08-21 17:41:19 +00:00
nicm
5241dae87d
Stop caring about empty commands, just treat as a null command.
2021-08-21 17:25:32 +00:00
Thomas Adam
4d3367e965
Merge branch 'obsd-master' into master
2021-08-21 16:01:26 +01:00
nicm
68cacaec68
Remove some members of struct cmd which are no longer used.
2021-08-21 14:10:08 +00:00
nicm
c286fbdcd7
Preserve command group when moving temporary list to current list being
...
buit.
2021-08-21 14:06:17 +00:00
Thomas Adam
62036121fa
Merge branch 'obsd-master' into master
2021-08-21 12:01:41 +01:00
nicm
110ba767e5
Rename a member to match what it will be in future.
2021-08-21 10:28:05 +00:00
nicm
08e6360f23
Add args parsing callback for some future work, currently unused.
2021-08-21 10:22:38 +00:00
nicm
d371764d02
Wrap command argument definitions in their own struct.
2021-08-21 08:44:59 +00:00
Thomas Adam
b0da0cee4d
Merge branch 'obsd-master' into master
2021-08-20 22:01:46 +01:00
nicm
d589be6c65
A couple more spacing fixes.
2021-08-20 20:08:30 +00:00
nicm
caa8703a23
Spacing tweaks.
2021-08-20 20:04:22 +00:00
nicm
5f32b7d961
Hide struct args behind a couple of accessor functions.
2021-08-20 19:50:16 +00:00
nicm
de94a344f6
Add a couple of const and fix some warnings.
2021-08-20 19:34:51 +00:00
nicm
c76b28de24
Remove some unnecessary blank lines.
2021-08-20 19:08:36 +00:00
Thomas Adam
944fde7c57
Merge branch 'obsd-master' into master
2021-08-20 20:01:27 +01:00
nicm
90dd474c3e
Expose args_value struct (will be needed soon) and add some missing frees.
2021-08-20 18:59:53 +00:00
nicm
6cbc83c6a6
Add a way to create an empty arguments set.
2021-08-20 17:53:54 +00:00
nicm
e463e8622d
Remove stray spaces after function names.
2021-08-20 17:50:42 +00:00
nicm
01b13de655
Fill colour palette correctly from option for new panes, GitHub issue
...
2831.
2021-08-20 17:36:03 +00:00
Nicholas Marriott
41822ef782
Regress fixes.
2021-08-20 18:20:49 +01:00
Nicholas Marriott
5ed5b11b45
Add zeraphel complex binding to regress.
2021-08-20 14:34:44 +01:00
Thomas Adam
84955e3d62
Merge branch 'obsd-master' into master
2021-08-20 12:01:15 +01:00
nicm
f984446d19
Actually parse contents of {} as a command and then convert to a string
...
instead of just copying arguments around as strings.
2021-08-20 09:06:26 +00:00
Thomas Adam
0f02fecd95
Merge branch 'obsd-master' into master
2021-08-20 10:01:21 +01:00
Nicholas Marriott
28d26fca35
Update a regress conf for new syntax.
2021-08-20 07:58:44 +01:00
Nicholas Marriott
3676779156
Fix format test for new behaviour.
2021-08-20 07:58:44 +01:00
nicm
3177d7b617
Add a helper function for actually parsing the command.
2021-08-20 06:30:57 +00:00
Thomas Adam
551bafc18d
Merge branch 'obsd-master' into master
2021-08-18 20:01:17 +01:00
nicm
5413a73ded
Need to flatten arguments for aliases.
2021-08-18 15:16:33 +00:00
Thomas Adam
c587ad027f
Merge branch 'obsd-master' into master
2021-08-18 12:01:19 +01:00
nicm
82836c7394
Push the conversion of {} to string up out of the parser and into the
...
command builder.
2021-08-18 10:15:08 +00:00
Thomas Adam
a8be47f0f4
Merge branch 'obsd-master' into master
2021-08-17 22:01:18 +01:00
nicm
5fdea440ce
Treat a pane that has died the same as no pane when sending data to
...
control mode clients, GitHub issue 2828.
2021-08-17 20:17:21 +00:00
nicm
66aaa9e484
Fix pipe-pane usage.
2021-08-17 19:37:55 +00:00
nicm
2b0d798982
Do not block with incremental command prompt.
2021-08-17 19:26:42 +00:00
Thomas Adam
bacae4b4ad
Merge branch 'obsd-master' into master
2021-08-17 18:01:16 +01:00
nicm
4f62aadc93
Set the right session if detach-on-destroy is off.
2021-08-17 16:19:00 +00:00
Thomas Adam
7869ec87e0
Merge branch 'obsd-master' into master
2021-08-17 14:01:16 +01:00
nicm
de9697b456
calloc for confirm-before data since the item needs to start NULL.
2021-08-17 11:20:13 +00:00
Thomas Adam
0dad8dd982
Merge branch 'obsd-master' into master
2021-08-17 10:01:19 +01:00
nicm
41ababdf6c
Be more sophisticated about enabling synchronized updates when there is
...
an overlay and treat it like the active pane (use for commands which
move the cursor only). When there is an overlay also use it for all
panes and not just the active pane. GitHub issue 2826.
2021-08-17 08:44:52 +00:00
nicm
1a7eb6ca90
Revert previous; this is not how it should work.
2021-08-17 08:22:44 +00:00
nicm
158f0e8c41
Start sync before drawing popup.
2021-08-17 07:14:33 +00:00
Nicholas Marriott
f2d4a1f022
Needs fcntl.h.
2021-08-16 13:51:55 +01:00
Nicholas Marriott
21ce1e04fe
Fuzzer needs some other bits it seems.
2021-08-14 22:30:20 +01:00
Nicholas Marriott
c1be1b351d
Minor cleanups, GitHub issue 2824.
2021-08-14 18:39:56 +01:00
Thomas Adam
22e5fc02c3
Merge branch 'obsd-master' into master
2021-08-14 18:01:17 +01:00
nicm
30786abe0e
Some other missing palette NULL checks, from oss-fuzz.
2021-08-14 16:26:29 +00:00
Thomas Adam
3f8954b11b
Merge branch 'obsd-master' into master
2021-08-14 16:01:17 +01:00
nicm
befe7cb1c5
Do not use NULL palette when clearing.
2021-08-14 14:00:07 +00:00
Thomas Adam
65a539c02e
Merge branch 'obsd-master' into master
2021-08-14 10:01:18 +01:00
nicm
4cc6db7281
Missing argument specifier for -c.
2021-08-14 08:06:37 +00:00
Thomas Adam
79f075bf1b
Merge branch 'obsd-master' into master
2021-08-14 01:35:27 +01:00
Thomas Adam
54773d23b5
Merge branch 'obsd-master' into master
2021-08-14 01:34:54 +01:00
nicm
7d7d7c9605
Tweak how mouse works on popup: only Meta alone resizes or moves, not
...
Meta with other modifiers; button 2 on the left or top border opens
menu, right or bottom resizes; button 1 on any border moves.
2021-08-13 23:05:40 +00:00
nicm
63aa968642
Check callback needs to only return 0 (text should be suppressed) if
...
menu returns 0, otherwise it should check the popup also.
2021-08-13 20:04:45 +00:00
nicm
7a0cec5ecf
Fill in some other bits on new panes.
2021-08-13 19:55:11 +00:00
nicm
2588c3e52e
Add menu options to convert a popup into a pane.
2021-08-13 19:27:25 +00:00
nicm
92615b534a
Adjust overlay check callback before drawing data from pty.
2021-08-13 19:25:24 +00:00
nicm
7789639b5d
Add a menu when a popup is present (mouse only for now).
2021-08-13 18:54:54 +00:00
nicm
614611a8bd
Add -B flag to remove border from popup.
2021-08-13 17:03:29 +00:00
Nicholas Marriott
4c07367bfe
Fix fuzzer wrapper.
2021-08-13 13:45:45 +01:00
nicm
13a0da205b
Break message type stuff out into its own header.
2021-08-13 07:37:58 +00:00
nicm
2bb0b9d6c5
Change focus to be driven by events rather than walking all panes at end
...
of event loop, this way the ordering of in and out can be enforced.
GitHub issue 2808.
2021-08-13 06:52:51 +00:00
nicm
a2b8506917
Set return code for confirm-before and make command-prompt also block,
...
GitHub issue 2822.
2021-08-13 06:50:42 +00:00
Thomas Adam
f725f9bc8a
Merge branch 'obsd-master' into master
2021-08-13 00:01:19 +01:00
Thomas Adam
94d96c6179
Merge branch 'obsd-master' into master
2021-08-12 22:01:22 +01:00
nicm
e2f6f58fe5
Make newline a style delimiter as well so they can cross multiple lines
...
for readability.
2021-08-12 20:46:30 +00:00
nicm
db9195463d
Now that styles can contain formats, they need to be expanded when
...
inserted into the status line.
2021-08-12 20:44:49 +00:00
nicm
6feb8f6505
Use COLOUR_DEFAULT not hardcoded 8.
2021-08-12 20:09:34 +00:00
nicm
9b00472820
Evaluate styles with the pane variables.
2021-08-12 19:47:05 +00:00
Thomas Adam
9d7b1960c2
Merge branch 'obsd-master' into master
2021-08-12 14:01:18 +01:00
nicm
5d451551b6
Restore saved cursor position after a ZWJ rather than recalculating it.
2021-08-12 11:35:53 +00:00
Thomas Adam
fada3eb932
Merge branch 'obsd-master' into master
2021-08-12 10:01:22 +01:00
nicm
26773ea9ef
Do not dereference pane when it is NULL, fixes a crash when creating a
...
hook from the config, GitHub issue 2820.
2021-08-12 08:10:20 +00:00
nicm
163908fe8a
Move hook format setup earlier and add a hook_client, GitHub issue 2809.
2021-08-12 08:05:11 +00:00
Thomas Adam
44ada9cd67
Merge branch 'obsd-master' into master
2021-08-12 00:01:26 +01:00
nicm
7eea3d7ab8
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.
2021-08-11 20:49:55 +00:00
nicm
01fd4b997e
Add pipe variants of the line copy commands. While here make the command
...
list less unreadable. GitHub issue 2813.
2021-08-11 20:35:46 +00:00
Thomas Adam
e9d49161e0
Merge branch 'obsd-master' into master
2021-08-11 12:01:20 +01:00
nicm
9013600074
Return to applying pane-border-style to the area outside panes, GitHub
...
issue 2816.
2021-08-11 09:05:21 +00:00
Thomas Adam
7a06b92061
Merge branch 'obsd-master' into master
2021-08-11 10:01:20 +01:00
nicm
338ec859a4
Make confirm-before optionally block the invoking client like run-shell,
...
GitHub issue 2819.
2021-08-11 08:40:58 +00:00
nicm
f6755c6f2c
OSC 52 can be long enough to make tmux think the output buffer is too
...
big, so treat it as a redraw. GitHub issue 2814.
2021-08-11 07:51:31 +00:00
Nicholas Marriott
705411ea5c
Tweak comment about logs.
2021-08-10 08:14:14 +01:00
Thomas Adam
9d80ec6cc9
Merge branch 'obsd-master' into master
2021-08-09 16:01:35 +01:00
nicm
be5988457f
Change copy-line and copy-end-of-line not to cancel and add -and-cancel
...
variants, like the other copy commands. GitHub issue 2799.
2021-08-09 13:08:08 +00:00
Thomas Adam
33e332428c
Merge branch 'obsd-master' into master
2021-08-06 12:01:24 +01:00
nicm
24cd6851f6
Add basic support for zero width joiners, GitHub issues 1605 and 2784.
2021-08-06 09:34:09 +00:00
nicm
19812b2d29
Add client focus hooks.
2021-08-06 09:19:02 +00:00
Thomas Adam
4bccff9556
Merge branch 'obsd-master' into master
2021-08-06 10:01:17 +01:00
nicm
ef5602a590
Another minor fix - do not draw positions that are under the popup with
...
spaces, from Anindya Mukherjee. Also a typo fix from Linus Arver.
2021-08-06 07:32:21 +00:00
Thomas Adam
acd70ea643
Merge branch 'obsd-master' into master
2021-08-06 06:01:18 +01:00
nicm
950d3c5bbc
Tweak previous not to replace complete characters with spaces.
2021-08-06 03:29:15 +00:00
nicm
97b5962ab1
Correctly draw wide characters that are partially obscured.
2021-08-06 03:13:05 +00:00
Thomas Adam
e3fa6cd96c
Merge branch 'obsd-master' into master
2021-08-05 12:01:19 +01:00
nicm
93cc8df692
Do not freeze output in panes when a popup is open, let them continue to
...
redraw. From Anindya Mukherjee .
2021-08-05 09:43:51 +00:00
Thomas Adam
4b88872c85
Merge branch 'obsd-master' into master
2021-08-04 10:01:25 +01:00
Nicholas Marriott
c063831df5
Do not configure on macOS without the user making a choice about utf8proc.
2021-08-04 09:49:08 +01:00
nicm
42490f4750
Add a client-active hook, from ncfavier in GitHub issue 2803.
2021-08-04 08:07:19 +00:00
Thomas Adam
63f9f3113c
Merge branch 'obsd-master' into master
2021-07-28 10:01:19 +01:00
nicm
e37aa45681
Make window-linked and window-unlinked window options, GitHub issue
...
2790.
2021-07-28 07:06:54 +00:00
Thomas Adam
7cbf4c9027
Merge branch 'obsd-master' into master
2021-07-21 10:01:24 +01:00
nicm
78ec057916
Do not add height twice when calculating popup_mouse_top, from M Kelly.
2021-07-21 08:09:43 +00:00
nicm
f0e02387b2
Do not close popups on resize, instead adjust them to fit, from Anindya
...
Mukherjee.
2021-07-21 08:06:36 +00:00
Thomas Adam
e3ff887d2a
Merge branch 'obsd-master' into master
2021-07-14 12:01:21 +01:00
Nicholas Marriott
0ea6cdca90
Need all of the TAILQ bits.
2021-07-14 11:09:28 +01:00
Nicholas Marriott
d723466df2
Pick default-terminal from the first of tmux-256color, tmux, screen-256color,
...
screen that is available on the build system.
2021-07-14 11:03:19 +01:00
nicm
732c72c98e
Move default value for TERM into tmux.h.
2021-07-14 08:56:00 +00:00
Thomas Adam
bb4bc8caf4
Merge branch 'obsd-master' into master
2021-07-14 00:01:21 +01:00
nicm
38c5788232
Give #() commands a one second grace period where the output is empty
...
before telling the user they aren't doing anything. GitHub issue 2774.
2021-07-13 22:09:29 +00:00
Thomas Adam
7496e70bd7
Merge branch 'obsd-master' into master
2021-07-13 12:01:19 +01:00
nicm
df3fe2aa72
Only use client for sizing when not detached, GitHub issue 2772.
2021-07-13 10:38:57 +00:00
Thomas Adam
c1d5dda62e
Merge branch 'obsd-master' into master
2021-07-08 14:01:21 +01:00
nicm
51915b9b0a
Fix mouse_word format now word-separators has no space and position of
...
menu if too close to the bottom.
2021-07-08 11:14:53 +00:00
Thomas Adam
ed575182e3
Merge branch 'obsd-master' into master
2021-07-06 10:01:22 +01:00
nicm
32f2d9d089
Improve error reporting when the tmux /tmp directory cannot be created
...
or used, GitHub issue 2765 from Uwe Kleine-Koenig.
2021-07-06 08:26:00 +00:00
nicm
35c2958ae4
Forbid empty session names, GitHub issue 2758.
2021-07-06 08:18:38 +00:00
Nicholas Marriott
b1a8c0fe02
Fix crosscompiling, Marco A L Barbosa.
2021-06-22 12:16:48 +01:00
Thomas Adam
3dfb77416f
Merge branch 'obsd-master' into master
2021-06-18 09:52:47 +01:00
nicm
1d4296f17f
Mention %1 under choose-tree also.
2021-06-18 07:46:54 +00:00
nicm
a83fb8127a
Minor fixes to option descriptions.
2021-06-16 11:57:04 +00:00
nicm
9f3874e5c7
Pass Ctrl keys through as is when given as hex, GitHub issue 2724.
2021-06-16 08:37:58 +00:00
Nicholas Marriott
87521214d3
Fix incorrect option name, from Gregory Pakosz.
2021-06-15 09:44:56 +01:00
Nicholas Marriott
6a8d848a3e
Once a day.
2021-06-11 08:30:51 +01:00
jmc
0d0683c28a
fix some formatting errors;
2021-06-10 13:12:31 +00:00
Nicholas Marriott
96ad8280b2
Tweak.
2021-06-10 13:05:22 +01:00
Nicholas Marriott
0490707671
Move lock.yml.
2021-06-10 09:56:35 +01:00
Nicholas Marriott
ac98385e55
Merge branch '3.2a'
2021-06-10 09:26:38 +01:00
Nicholas Marriott
57aaad2ddb
Update CHANGES.
2021-06-10 09:25:50 +01:00
Nicholas Marriott
3b929f332a
Update CHANGES.
2021-06-10 09:24:57 +01:00
Nicholas Marriott
c827f5092d
Do not clear region based on current cursor position, this is not necessary
...
anymore and causes problems, GitHub issue 2735.
2021-06-10 09:23:54 +01:00
Nicholas Marriott
d8feffd2bf
Feature for the mouse since FreeBSD termcap does not have kmous.
2021-06-10 09:23:48 +01:00
Nicholas Marriott
f48c46a76a
Fix rectangle selection, from Anindya Mukherjee, GitHub issue 2709.
2021-06-10 09:23:43 +01:00
Nicholas Marriott
f06ee2b87b
Bump FORMAT_LOOOP_LIMIT and add a log message when hit, GitHub issue 2715.
2021-06-10 09:23:34 +01:00
Nicholas Marriott
9b4c05b6b9
Er, fix it properly.
2021-06-10 09:23:30 +01:00
Nicholas Marriott
3b9b823df5
Fix <= operator.
2021-06-10 09:23:25 +01:00
Nicholas Marriott
8aa34f616f
Do not use NULL client when source-file finishes, GitHub issue 2707.
2021-06-10 09:23:15 +01:00
Nicholas Marriott
5ea6ccbb7f
Do not expand the file given with -f so it can contain :s.
2021-06-10 09:23:07 +01:00
Nicholas Marriott
434ac8734a
Looks like evports on SunOS are broken also, disable them. GitHub issue 2702.
2021-06-10 09:23:03 +01:00
Nicholas Marriott
47af583a50
Remove old shift function keys which interfere with xterm keys now. GitHub
...
issue 2696.
2021-06-10 09:22:51 +01:00
Nicholas Marriott
aaf87abfb4
Fire check callback after cleaning up event so it does not get stuck, from
...
Jeongho Jang in GitHub issue 2695.
2021-06-10 09:22:47 +01:00
Nicholas Marriott
bacb4d1b4d
Fix warnings, from Jan Tache in GitHub issue 2692.
2021-06-10 09:22:39 +01:00
Nicholas Marriott
ad2f7642f2
Ctrl keys are < 0x7f, not Unicode.
2021-06-10 09:22:13 +01:00
Nicholas Marriott
059580e0f7
Move "special" keys into the Unicode PUA rather than making them high a top bit
...
set, some compilers cannot handle enums that are larger than int. GitHub issue
2673.
2021-06-10 09:22:07 +01:00
Nicholas Marriott
cb2943faab
Change resize timers and flags into one timer and a queue to fix problems with
...
vim when resized multiple times. GitHub issue 2677.
2021-06-10 09:21:55 +01:00
Nicholas Marriott
7c28597e0f
Mention S- for Shift, GitHub issue 2683.
2021-06-10 09:21:42 +01:00
Nicholas Marriott
fb52921a86
Do not count client if no window.
2021-06-10 09:21:34 +01:00
Nicholas Marriott
ddc67152a5
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").
2021-06-10 09:21:26 +01:00
Nicholas Marriott
4cf595a402
Include current client in size calcultion for new sessions, GitHub issue 2662.
2021-06-10 09:21:16 +01:00
Nicholas Marriott
5107e84897
Add an "always" value to the extended-keys option to always forward these keys
...
to applications inside tmux.
2021-06-10 09:21:09 +01:00
Nicholas Marriott
736a276cc9
Minor CHANGES and tmux.1 fixed, from Daniel Hahler, GitHub issue 2664.
2021-06-10 09:21:05 +01:00
Nicholas Marriott
825feac9f8
Add another couple of keys needed for extended keys, GitHub issue 2658.
2021-06-10 09:20:56 +01:00
Nicholas Marriott
d8c0069254
Use = not ==, from Leonardo Taccari.
2021-06-10 09:20:51 +01:00
Nicholas Marriott
33d4f854c0
back-to-indentation fixes, from Anindya Mukherjee.
2021-06-10 09:20:42 +01:00
Nicholas Marriott
9865ad27a5
Fix display-menu -xR, from Alexis Hildebrandt.
2021-06-10 09:20:33 +01:00
Nicholas Marriott
16b497e12b
Apple have broken strtonum so check it works, from Teubel Gyorgy.
2021-06-10 09:20:28 +01:00
Nicholas Marriott
a25af7d0f3
Adjust latest client when a client detaches, GitHub issue 2657.
2021-06-10 09:20:22 +01:00
Nicholas Marriott
a11aa870b3
Handle modifier 9 as Meta, GitHub issue 2647.
2021-06-10 09:20:15 +01:00
Nicholas Marriott
0431d4d639
Add crosscompiling fallbacks, from Hasso Tepper.
2021-06-10 09:20:07 +01:00
nicm
d863978464
%begin now has three arguments, not two. GitHubs issue 2646.
2021-06-10 09:20:02 +01:00
nicm
57d5f67552
Include modifiers when looking up an individual key.
2021-06-10 09:19:56 +01:00
nicm
bab7a9a085
Change how extended ctrl keys are processed to fix C-S-Tab and C-;.
2021-06-10 09:19:49 +01:00
Nicholas Marriott
2ab53d30d0
3.2a version.
2021-06-10 09:17:46 +01:00
Nicholas Marriott
d25738b61e
Update CHANGES.
2021-06-10 09:16:14 +01:00
nicm
a35c897f0f
Do not clear region based on current cursor position, this is not
...
necessary anymore and causes problems, GitHub issue 2735.
2021-06-10 07:59:31 +00:00
nicm
1e879ef458
Feature for the mouse since FreeBSD termcap does not have kmous.
2021-06-10 07:59:08 +00:00
nicm
43514f4af6
Fix rectangle selection, from Anindya Mukherjee, GitHub issue 2709.
2021-06-10 07:58:42 +00:00
nicm
8d75542986
Bump FORMAT_LOOOP_LIMIT and add a log message when hit, GitHub issue 2715.
2021-06-10 07:58:08 +00:00
nicm
3a5b576399
Fix <= operator.
2021-06-10 07:57:06 +00:00
nicm
77b1290698
More accurate vi(1) word navigation in copy mode and on the status line.
...
This changes the meaning of the word-separators option - setting it to
the empty string is equivalent to the previous behavior. From Will Noble
in GitHub issue 2693.
2021-06-10 07:56:47 +00:00
nicm
77bd6b9ec3
Do not use NULL client when source-file finishes, GitHub issue 2707.
2021-06-10 07:53:19 +00:00
nicm
1bbdd2aba2
Add -F for command-prompt and use it to fix "Rename" on the window menu,
...
GitHub issue 2699.
2021-06-10 07:52:56 +00:00
nicm
73bf358f6d
Do not expand the file given with -f so it can contain :s.
2021-06-10 07:52:29 +00:00
nicm
f706a7e236
Remove old shift function keys which interfere with xterm keys now.
...
GitHub issue 2696.
2021-06-10 07:52:07 +00:00
nicm
cfc7c9cf24
Fire check callback after cleaning up event so it does not get stuck,
...
from Jeongho Jang in GitHub issue 2695.
2021-06-10 07:51:43 +00:00
nicm
866117636e
Add different command historys for different types of prompts
...
("command", "search" etc). From Anindya Mukherjee.
2021-06-10 07:50:03 +00:00
nicm
6c659494f5
Fix warnings, from Jan Tache in GitHub issue 2692.
2021-06-10 07:45:43 +00:00
nicm
02a6b39db7
Improve logging of screen mode changes.
2021-06-10 07:43:44 +00:00
nicm
f02a6c34e0
Move "special" keys into the Unicode PUA rather than making them top bit
...
set, some compilers do not allow enums that are larger than int. GitHub
issue 2673.
2021-06-10 07:38:28 +00:00
nicm
f9f97c8145
Change cursor style handling so tmux understands which sequences contain
...
blinking and sets the flag appropriately, means that it works whether
cnorm disables blinking or not. GitHub issue 2682.
2021-06-10 07:36:47 +00:00
nicm
84e22168a5
Change resize timers and flags into one timer and a queue which is
...
simpler and fixes problems with vim when resized multiple times. GitHub
issue 2677.
2021-06-10 07:33:41 +00:00
nicm
b573dbba90
Do not count client (and crash) if no window.
2021-06-10 07:29:45 +00:00
nicm
0c5cbbbf5c
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").
2021-06-10 07:28:45 +00:00
nicm
9f38a8807c
Include current client in size calculation for new sessions, GitHub
...
issue 2662.
2021-06-10 07:24:45 +00:00
nicm
64c276c23b
Add an "always" value to the extended-keys option to always forward
...
these keys to applications inside tmux.
2021-06-10 07:24:10 +00:00
nicm
1ee231956c
back-to-indentation fixes, from Anindya Mukherjee.
2021-06-10 07:22:37 +00:00
nicm
788f56b40a
Fix display-menu -xR, from Alexis Hildebrandt.
2021-06-10 07:22:06 +00:00
nicm
c46a607dc1
Adjust latest client when a client detaches, GitHub issue 2657.
2021-06-10 07:21:46 +00:00
nicm
e5106bfb96
Add another couple of keys needed for extended keys, GitHub issue 2658.
...
Handle modifier 9 as Meta, GitHub issue 2647.
2021-06-10 07:21:09 +00:00
Nicholas Marriott
747423be67
Fix empty format strings, from Jean-Philippe Menil.
2021-06-10 08:08:31 +01:00
Nicholas Marriott
607e6b1c33
Do not clear region based on current cursor position, this is not necessary
...
anymore and causes problems, GitHub issue 2735.
2021-06-09 14:46:24 +01:00
Nicholas Marriott
7a236869ba
Feature for the mouse since FreeBSD termcap does not have kmous.
2021-06-08 10:49:40 +01:00
Nicholas Marriott
9ea971dc04
Fix rectangle selection, from Anindya Mukherjee, GitHub issue 2709.
2021-05-19 09:05:53 +01:00
Nicholas Marriott
5f7ff732fa
Bump FORMAT_LOOOP_LIMIT and add a log message when hit, GitHub issue 2715.
2021-05-19 09:04:45 +01:00
Nicholas Marriott
83024f57a6
Er, fix it properly.
2021-05-17 06:59:29 +01:00
Nicholas Marriott
01ba6a23f2
Fix <= operator.
2021-05-17 06:58:45 +01:00
Nicholas Marriott
022d0210c5
More accurate vi(1) word navigation in copy mode and on the status line. This
...
changes the meaning of the word-separators option - setting it to the empty
string is equivalent to the previous behavior. From Will Noble in GitHub issue
2693.
2021-05-13 08:49:58 +01:00
Nicholas Marriott
f03b27c72b
Do not use NULL client when source-file finishes, GitHub issue 2707.
2021-05-12 07:08:58 +01:00
Nicholas Marriott
4ca6b42c24
Add -F for command-prompt and use it to fix "Rename" on the window menu, GitHub
...
issue 2699.
2021-05-10 07:52:30 +01:00
Nicholas Marriott
bde3829131
Do not expand the file given with -f so it can contain :s.
2021-05-10 07:51:30 +01:00
Nicholas Marriott
d00d682069
Looks like evports on SunOS are broken also, disable them. GitHub issue 2702.
2021-05-10 07:42:35 +01:00
Nicholas Marriott
f2951bd4a5
Remove old shift function keys which interfere with xterm keys now. GitHub
...
issue 2696.
2021-05-05 07:23:23 +01:00
Nicholas Marriott
8da4573088
Fire check callback after cleaning up event so it does not get stuck, from
...
Jeongho Jang in GitHub issue 2695.
2021-05-03 10:49:51 +01:00
Nicholas Marriott
c03b57465b
Add different command historys for different types of prompts ("command",
...
"search" etc). From Anindya Mukherjee.
2021-05-03 07:39:32 +01:00
Nicholas Marriott
40467726e3
Fix warnings, from Jan Tache in GitHub issue 2692.
2021-05-03 06:39:17 +01:00
Nicholas Marriott
2e7ec8c0b9
Improve logging of screen mode changes.
2021-04-30 20:14:10 +01:00
Nicholas Marriott
32c97a7f2f
Ctrl keys are < 0x7f, not Unicode.
2021-04-28 20:20:53 +01:00
Nicholas Marriott
e2d01795d2
Move "special" keys into the Unicode PUA rather than making them high a top bit
...
set, some compilers cannot handle enums that are larger than int. GitHub issue
2673.
2021-04-28 09:18:04 +01:00
Nicholas Marriott
589d3eb48f
Change cursor style handling so tmux understands which sequences contain
...
blinking and sets the flag appropriately, means that it works whether cnorm
disables blinking or not. GitHub issue 2682.
2021-04-28 09:17:13 +01:00
Nicholas Marriott
cf6034da92
Change resize timers and flags into one timer and a queue to fix problems with
...
vim when resized multiple times. GitHub issue 2677.
2021-04-28 09:16:30 +01:00
Nicholas Marriott
ce8c56cc97
Mention S- for Shift, GitHub issue 2683.
2021-04-27 08:29:54 +01:00
Nicholas Marriott
43c292fa91
Revert "Revert "Add crosscompiling fallbacks, from Hasso Tepper.""
...
This reverts commit dda3bf896be9ce87b4066636cc7f94ab8030133a.
2021-04-23 17:18:51 +01:00
Nicholas Marriott
cb9a0627f0
Do not count client if no window.
2021-04-23 13:41:49 +01:00
Nicholas Marriott
7a6446ac17
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").
2021-04-22 09:01:22 +01:00
Nicholas Marriott
cd6af4a52e
Include current client in size calcultion for new sessions, GitHub issue 2662.
2021-04-21 09:47:03 +01:00
Nicholas Marriott
8363c6af2e
Add an "always" value to the extended-keys option to always forward these keys
...
to applications inside tmux.
2021-04-21 09:32:48 +01:00
Nicholas Marriott
6c2bf0e221
Minor CHANGES and tmux.1 fixed, from Daniel Hahler, GitHub issue 2664.
2021-04-20 06:37:01 +01:00
Nicholas Marriott
88575a27e2
Add another couple of keys needed for extended keys, GitHub issue 2658.
2021-04-20 06:35:54 +01:00
Nicholas Marriott
3a892228f4
Use = not ==, from Leonardo Taccari.
2021-04-18 08:48:03 +01:00
Nicholas Marriott
5fa8e5e13f
back-to-indentation fixes, from Anindya Mukherjee.
2021-04-18 08:47:11 +01:00
Nicholas Marriott
73cf767a35
Fix display-menu -xR, from Alexis Hildebrandt.
2021-04-16 12:12:50 +01:00
Nicholas Marriott
b2588eed03
Apple have broken strtonum so check it works, from Teubel Gyorgy.
2021-04-16 12:07:54 +01:00
Nicholas Marriott
9af78c8e69
Adjust latest client when a client detaches, GitHub issue 2657.
2021-04-16 11:59:08 +01:00
Nicholas Marriott
dda3bf896b
Revert "Add crosscompiling fallbacks, from Hasso Tepper."
...
This reverts commit bb6242675ad0c7447daef148fffced882e5b4a61.
2021-04-15 16:10:31 +01:00
Nicholas Marriott
98650658a7
Handle modifier 9 as Meta, GitHub issue 2647.
2021-04-15 08:22:36 +01:00
Thomas Adam
6f6b7f8261
Merge branch 'obsd-master' into master
2021-04-15 08:01:23 +01:00
Nicholas Marriott
bb6242675a
Add crosscompiling fallbacks, from Hasso Tepper.
2021-04-15 06:46:11 +01:00
nicm
33f9b08bbb
%begin now has three arguments, not two. GitHubs issue 2646.
2021-04-15 05:38:11 +00:00
Thomas Adam
e88d48f804
Merge branch 'obsd-master' into master
2021-04-13 18:01:17 +01:00
nicm
dfcc9f8cbc
Include modifiers when looking up an individual key.
2021-04-13 16:00:47 +00:00
Thomas Adam
16f1c5f0a1
Merge branch 'obsd-master' into master
2021-04-13 14:01:21 +01:00
nicm
bbb3509bc5
Change how extended ctrl keys are processed to fix C-S-Tab and C-;.
2021-04-13 12:26:34 +00:00
Nicholas Marriott
c5c2871d22
Merge branch '3.2-rc'
2021-04-13 08:46:21 +01:00
nicm
bc4681c83d
Move mode set/reset after sync so cursor doesn't flicker, from Avi
...
Halachmi.
2021-04-13 08:37:57 +01:00
nicm
f29d3c7f74
Handle C-Tab correctly with extended keys, GitHub issue 2642.
2021-04-13 08:37:57 +01:00
Thomas Adam
90614dfe05
Merge branch 'obsd-master' into master
2021-04-13 08:01:22 +01:00
Nicholas Marriott
30cf20d615
Update CHANGES.
2021-04-13 06:28:16 +01:00
Nicholas Marriott
c2048c5c65
Merge branch 'master' into 3.2-rc
2021-04-13 06:25:59 +01:00
nicm
ff860e5fe4
Move mode set/reset after sync so cursor doesn't flicker, from Avi
...
Halachmi.
2021-04-13 05:25:05 +00:00
nicm
715835510b
Handle C-Tab correctly with extended keys, GitHub issue 2642.
2021-04-13 05:23:34 +00:00
Thomas Adam
bedf2bd437
Merge branch 'obsd-master' into master
2021-04-12 12:01:32 +01:00
nicm
e6abe55134
Add a flag to disable keys to close a message, GitHub issue 2625.
2021-04-12 09:36:12 +00:00
Thomas Adam
83cd593b9c
Merge branch 'obsd-master' into master
2021-04-12 10:01:27 +01:00
nicm
cd208c9d72
Permit shortcut keys in buffer, client, tree modes to be configured with
...
a format; the default remains the line number. GitHub issue 2636.
2021-04-12 06:50:25 +00:00
Thomas Adam
7579097db6
Merge branch 'obsd-master' into master
2021-04-09 10:01:19 +01:00
nicm
73cbe46f8d
Change a type to fix a warning with some compilers.
2021-04-09 07:02:00 +00:00
Thomas Adam
caf7aeb3a9
Merge branch 'obsd-master' into master
2021-04-08 16:01:17 +01:00
nicm
30fb628388
Log the key written to the terminal as well as tmux's idea of what it
...
is.
2021-04-08 14:16:12 +00:00
Thomas Adam
a57c2bf97e
Merge branch 'obsd-master' into master
2021-04-07 18:01:20 +01:00
nicm
efb5e58c38
Restore previous behaviour so that C-X remains the same as C-x. Instead,
...
translate incoming extended keys so that they are consistent.
2021-04-07 15:46:12 +00:00
Thomas Adam
3cd63cc9e0
Merge branch 'obsd-master' into master
2021-04-07 16:01:21 +01:00
nicm
71fc9f3ee8
Add a current_file format for the config file being parsed. Originally
...
suggested by kn@, also GitHub issue 2638.
2021-04-07 12:50:12 +00:00
nicm
1ac47400d2
When display-message used in config file, show the message after the
...
config file finishes. GitHub issue 2637.
2021-04-07 12:49:33 +00:00
Thomas Adam
998a6b0aea
Merge branch 'obsd-master' into master
2021-04-07 10:01:19 +01:00
nicm
ba99996676
Fixes for extended keys: 1) allow C-x and C-X to be bound separately
...
since some terminals report them differently 2) use the "backspace"
option to translate backspace 3) map ctrl which are have the ctrl
implied (such as C-x) properly when the terminal reports both the key
and the modifier.
Note that any key bindings for C-X where C-x is meant must now be
changed.
2021-04-07 07:30:02 +00:00
Thomas Adam
db97bef60b
Merge branch 'obsd-master' into master
2021-04-05 16:01:23 +01:00
nicm
10470cea67
Move client-detached into server_client_lost so it is fired even if a
...
client is closed unexpectedly.
2021-04-05 14:11:05 +00:00
Thomas Adam
22ccae1c9d
Merge branch 'obsd-master' into master
2021-04-05 10:01:19 +01:00
nicm
5900b164a4
Fix a couple of edge cases with the jump-back-xxx commands, and also
...
update back-to-indentation to use grid_reader, thereby fixing line
wrapping issues. From Anindya Mukherjee, GitHub issue 2633.
2021-04-05 08:43:48 +00:00
Thomas Adam
b307fc8cd5
Merge branch 'obsd-master' into master
2021-04-01 12:01:25 +01:00
nicm
28cd956729
Change search-again with vi keys to work like actual vi(1), also some
...
other fixes. From Aaron Jensen with help from Anindya Mukherjee.
2021-04-01 06:46:12 +00:00
nicm
6c98f222e9
Missing commas, from Vipul Kumar.
2021-04-01 06:37:46 +00:00
Thomas Adam
8f5ff4bf66
Merge branch 'obsd-master' into master
2021-03-31 10:01:16 +01:00
nicm
a4b9b5a1e5
Do not exit if cannot write to normal log file, GitHub issue 2630.
2021-03-31 08:37:48 +00:00
Nicholas Marriott
4208641de7
Remove queue.h, from Simon Holesch.
2021-03-28 10:16:17 +01:00
Thomas Adam
be568ea3b2
Merge branch 'obsd-master' into master
2021-03-16 10:01:20 +00:00
nicm
8b800b41c9
Add client-detached notification in control mode, from Mohsin Kaleem.
2021-03-16 09:14:58 +00:00
Thomas Adam
60bb8fa86d
Merge branch 'obsd-master' into master
2021-03-15 14:01:17 +00:00
nicm
9017af2355
Do not crash if there is no item to show command error, from Anindya
...
Mukherjee.
2021-03-15 13:06:33 +00:00
Thomas Adam
7019937b52
Merge branch 'obsd-master' into master
2021-03-12 10:01:18 +00:00
nicm
e8224fb0d1
Fix so tmux correctly sends the cvvis (cursor very visible) capability
...
rather than sending it and then immediately undoing it with cnorm. Also
turn it off when the cursor shape is changed like xterm.
2021-03-12 08:39:17 +00:00
Nicholas Marriott
46cbbe3d45
Merge branch 'master' into 3.2-rc
2021-03-11 08:41:19 +00:00
Nicholas Marriott
ef9700816f
malloc_trim is itself very poor and gets slower and slower as the heap becomes
...
more fragmented. Run it only once an hour. GitHub issue 2551.
2021-03-11 08:39:41 +00:00
Thomas Adam
12cfd0d22b
Merge branch 'obsd-master' into master
2021-03-11 08:01:29 +00:00
nicm
ee0df1b8f8
Tidy old jobs every hour instead of every 30 seconds.
2021-03-11 07:08:18 +00:00
nicm
3eb91efba1
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.
2021-03-11 06:41:04 +00:00
nicm
d98f9f7fe5
Add split-window -Z to start the pane zoomed, GitHub issue 2591.
2021-03-11 06:31:05 +00:00
Thomas Adam
541872bc57
Merge branch 'obsd-master' into master
2021-03-09 14:01:24 +00:00
nicm
7f87280cd5
Allow cursor to be just after match if copying, GitHub issue 2602.
2021-03-09 13:07:50 +00:00
Thomas Adam
ff77658f27
Merge branch 'obsd-master' into master
2021-03-09 10:01:19 +00:00
nicm
81e5736510
Copy mode improvements from Anindya Mukherjee:
...
- Fix word and word-end for wrapped lines.
- Fix copying of selection end on wrapped lines.
- Fix wrapped word selection edge case.
- Update select-line to respect wrapped lines.
- Update window_copy_..._pos() functions to use grid_reader.
GitHub issue 2605.
2021-03-09 08:24:09 +00:00
Nicholas Marriott
7bef887fd1
Update version.
2021-03-08 08:59:58 +00:00
Nicholas Marriott
8995d571d8
Merge branch 'master' into 3.2-rc
2021-03-08 08:59:40 +00:00
Nicholas Marriott
0792b65863
Remove compat.h again.
2021-03-08 08:59:13 +00:00
Nicholas Marriott
de4ac37baa
3.3.
2021-03-02 12:37:52 +00:00
Nicholas Marriott
b243f1b2ee
No sys/queue.h.
2021-03-02 12:37:23 +00:00
Nicholas Marriott
d06c7197d4
Merge branch 'master' into 3.2-rc
2021-03-02 12:10:14 +00:00
Nicholas Marriott
fb039d5b82
paths.h is compat.
2021-03-02 12:09:59 +00:00
Nicholas Marriott
c01251d023
Merge branch 'master' into 3.2-rc
2021-03-02 12:08:34 +00:00
Nicholas Marriott
1466b570ee
Update CHANGES.
2021-03-02 12:05:41 +00:00
Thomas Adam
2301bee87d
Merge branch 'obsd-master' into master
2021-03-02 12:01:25 +00:00
nicm
81f9a23d25
Do not use NULL active window; also do not leak window name. GitHub
...
issue 2590 from Chester Liu.
2021-03-02 11:00:38 +00:00
nicm
c44750792a
Drop support for popups where the content is provided directly to tmux
...
(which does not have many practical uses) and only support running a
program in the popup. display-popup is now simpler and can accept
multiple arguments to avoid escaping problems (like the other commands).
2021-03-02 10:56:45 +00:00
Thomas Adam
48131c6d02
Merge branch 'obsd-master' into master
2021-03-01 20:01:20 +00:00
Thomas Adam
9d99dad9e8
Merge branch 'obsd-master' into master
2021-03-01 17:54:47 +00:00
jmc
de3a898e8a
escape quotes and remove some unneccessary Pp; ok nicm
2021-03-01 17:49:08 +00:00
Nicholas Marriott
9cd45ddad3
Reinstate del_curterm ifdef bits.
2021-03-01 10:51:24 +00:00
nicm
8a4a2153fd
There is no need to call del_curterm in the server anymore.
2021-03-01 10:50:14 +00:00
nicm
b6dfb9996a
Add some text with examples of ; as a separator, GitHub issues 2522 and
...
2580.
2021-03-01 10:44:38 +00:00
Thomas Adam
ba9f89c44e
Merge branch 'obsd-master' into master
2021-02-27 08:01:20 +00:00
nicm
40ad11b2b5
Handle NULL term_type.
2021-02-27 06:28:16 +00:00
Thomas Adam
a7d4703bfe
Merge branch 'obsd-master' into master
2021-02-27 00:01:19 +00:00
nicm
583aaebc0a
Check session, window, pane in the right order when working out format type.
2021-02-26 21:53:41 +00:00
Thomas Adam
9c6502fcc9
Merge branch 'obsd-master' into master
2021-02-26 10:01:22 +00:00
nicm
dd7006c850
Add a couple of format variables for active and last window index.
2021-02-26 07:53:26 +00:00
Thomas Adam
9710ec5244
Merge branch 'obsd-master' into master
2021-02-24 10:01:19 +00:00
nicm
6aaef3e705
Correct client_prefix so it returns 1 if in prefix, not 0.
2021-02-24 09:22:15 +00:00
Thomas Adam
0982a1a975
Merge branch 'obsd-master' into master
2021-02-22 12:01:18 +00:00
nicm
6d8efe9319
expand_paths needs the global environment to be set up, do that first.
2021-02-22 11:42:50 +00:00
Thomas Adam
0cd5ed9e9b
Merge branch 'obsd-master' into master
2021-02-22 10:01:22 +00:00
nicm
5f425ee318
Fix regex searching with wrapped lines, from Anindya Mukherjee; GitHub
...
issue 2570.
2021-02-22 08:31:19 +00:00
nicm
6876381276
Move config file path expansion much earlier, keep the list of paths
...
around rather than freeing later, and add a config_files format variable
containing it. Suggested by kn@ a while back.
2021-02-22 08:18:13 +00:00
Thomas Adam
cb7e6698f3
Merge branch 'obsd-master' into master
2021-02-22 08:01:22 +00:00
nicm
e858270006
There are many format variables now so allocating all the default ones
...
each time a tree is created is too expensive. Instead, convert them all
into callbacks and put them in a static table so they only allocate on
demand. The tree remains for the moment for extra (non-default)
variables added by for example copy mode or popups. Also reduce
expensive calls to localtime_r/strftime. GitHub issue 2253.
2021-02-22 07:09:06 +00:00
nicm
8986c8dfcd
Move jump commands to grid reader, make them UTF-8 aware, and tidy up,
...
from Anindya Mukherjee.
2021-02-22 06:53:04 +00:00
Thomas Adam
742e670805
Merge branch 'obsd-master' into master
2021-02-19 10:01:19 +00:00
nicm
b04f8acb70
Check return value of chdir() to stop a silly warning with some
...
compilers, GitHub issue 2573.
2021-02-19 09:09:16 +00:00
Thomas Adam
11e404ca3c
Merge branch 'obsd-master' into master
2021-02-18 16:01:18 +00:00
nicm
fb42ae3071
Reduce len when moving past spaces in OSC 11 parameter.
2021-02-18 13:30:24 +00:00
Thomas Adam
3a76a56824
Merge branch 'obsd-master' into master
2021-02-17 09:58:51 +00:00
Thomas Adam
ce5de76592
Merge branch 'obsd-master' into master
2021-02-17 09:58:12 +00:00
nicm
af3ffa9c41
Move the call to setupterm() into the client and have it pass the
...
results to the server over imsg, means the server does not need to enter
ncurses or read terminfo db. Old clients will not work with a new
server.
2021-02-17 07:18:36 +00:00
nicm
5c275c2a1a
Log missing keys when extended keys is on rather than fatal().
2021-02-16 09:41:55 +00:00
nicm
5df9b3650a
In the end UTF-8 did not become a terminal feature, should not be listed
...
in man page.
2021-02-16 09:40:00 +00:00
nicm
d768fc2553
Make SGR 6 (rapid blink) the same as SGR 5 (blink) and make SGR 21 to
...
the same as SGR 4:2, it is an old alternative. GitHub issue 2567.
2021-02-15 14:22:35 +00:00
Nicholas Marriott
0526d074d0
OSC 11 test.
2021-02-15 09:40:50 +00:00
nicm
6642706f7b
Support X11 colour names and some other variations for OSC 10/11, also
...
add OSC 110 and 111. GitHub issue 2567.
2021-02-15 09:39:37 +00:00
nicm
632636dba5
Do not care about the server socket closing if exiting anyway.
2021-02-12 06:52:48 +00:00
nicm
2b58c226db
Add a couple of helper functions, and flush imsgs on exit.
2021-02-11 09:39:29 +00:00
nicm
79e1984962
O_TRUNC is needed in case file exists.
2021-02-11 09:03:38 +00:00
nicm
e40831a002
Move file handling protocol stuff all into file.c so it can be reused
...
more easily.
2021-02-11 08:28:45 +00:00
Nicholas Marriott
679b2288e8
Restore utf8proc bits that went missing, GitHub issue 2564.
2021-02-10 17:18:37 +00:00
Thomas Adam
5b6d4c4fd1
Merge branch 'obsd-master' into master
2021-02-10 08:01:20 +00:00
nicm
32186950f5
Use ~/.tmux.conf as an example rather than /etc/passwd, suggested by
...
deraadt@.
2021-02-10 07:17:07 +00:00
Thomas Adam
c6215b55e0
Merge branch 'obsd-master' into master
2021-02-09 16:01:18 +00:00
nicm
1492ae11a5
Do not expand times and #() inside #().
2021-02-09 14:25:40 +00:00
Thomas Adam
8d7f341a85
Merge branch 'obsd-master' into master
2021-02-08 16:01:21 +00:00
nicm
e3005e5ec4
Add "pipe" variants of the "copy-pipe" commands which do not copy, from
...
Christian Zangl.
2021-02-08 14:46:53 +00:00
Thomas Adam
fe3ab51b78
Merge branch 'obsd-master' into master
2021-02-08 10:01:20 +00:00
nicm
c579be1f2a
Include "focused" in client flags, from Dan Aloni in GitHub issue 2558.
2021-02-08 08:33:54 +00:00
Thomas Adam
03430887be
Merge branch 'obsd-master' into master
2021-02-06 14:01:20 +00:00
nicm
1e29ebd412
In the end UTF-8 did not become a terminal feature, should not be listed
...
in man page.
2021-02-06 13:02:52 +00:00
Thomas Adam
39904f7fc6
Merge branch 'obsd-master' into master
2021-02-05 14:01:23 +00:00
nicm
3dddc11603
Send Unicode directional isolate characters around horizontal pane
...
borders if the terminal support UTF-8 and an extension terminfo(5)
capability "Bidi" is present. On terminals with BiDi support (ie, VTE)
this seems to be enough to display right-to-left text acceptably enough
to be usable (with some caveats about the mouse position). Requested by
and with help from Mahmoud Elagdar in GitHub issue 2425.
2021-02-05 12:29:18 +00:00
nicm
be471c328e
Add a -S flag to new-window to make it select the existing window if one
...
with the given name already exists rather than failing with an error.
Also add a format to check if a window or session name exists which
allows the same with other commands. Requested by and discussed with
kn@.
2021-02-05 12:23:49 +00:00
Nicholas Marriott
e3d71d9bdf
Add compat clock_gettime for older macOS. GitHub issue 2555.
2021-02-05 11:01:21 +00:00
Thomas Adam
3dd2e85075
Merge branch 'obsd-master' into master
2021-02-04 16:01:18 +00:00
nicm
c13f2e1135
Redraw status line and borders on pane enable/disable, GitHub issue 2554.
2021-02-04 14:02:24 +00:00
Thomas Adam
86955dbfe1
Merge branch 'obsd-master' into master
2021-02-02 14:01:19 +00:00
nicm
f0546b0ff8
Fix popup mouse position.
2021-02-02 13:03:03 +00:00
Thomas Adam
a5d69ab4b0
Merge branch 'obsd-master' into master
2021-02-02 08:01:19 +00:00
jmc
5c48086e5c
article fixes; from eddie youseph
2021-02-02 07:33:29 +00:00
Thomas Adam
0242513ce7
Merge branch 'obsd-master' into master
2021-02-01 10:01:20 +00:00
nicm
509221520c
Add a no-detached choice to detach-on-destroy which detaches only if
...
there are no other detached sessions to switch to, from Sencer Selcuk in
GitHub issue 2553.
2021-02-01 08:01:14 +00:00
Thomas Adam
545a610c6b
Merge branch 'obsd-master' into master
2021-01-29 12:01:21 +00:00
nicm
255802d8d7
Trim output overwritten by later text or clears completely rather than
...
only in a few cases. This means we can better track when a line should
wrap. GitHub issue 2537.
2021-01-29 09:48:43 +00:00
Thomas Adam
ffc159a456
Merge branch 'obsd-master' into master
2021-01-27 12:01:21 +00:00
nicm
8156d9ba41
Flush pending output before entering or exiting alternate screen rather
...
than leaking it, oss-fuzz issue 29959.
2021-01-27 10:42:52 +00:00
Thomas Adam
70a6af6287
Merge branch 'obsd-master' into master
2021-01-26 10:01:18 +00:00
nicm
d6542c333d
Always resize the original screen before copying when exiting the
...
alternate screen, GitHub issue 2536.
2021-01-26 09:32:52 +00:00
Thomas Adam
3b51abcf22
Merge branch 'obsd-master' into master
2021-01-22 14:01:18 +00:00
Thomas Adam
0898a868c6
Merge branch 'obsd-master' into master
2021-01-22 12:01:21 +00:00
nicm
9fcf413d87
Revert clear changes to writing as they don't work properly, better
...
change to come.
2021-01-22 11:28:33 +00:00
nicm
bba71f696f
Add rectangle-on and rectangle-off copy mode commands, GitHub isse 2546
...
from author at will dot party.
2021-01-22 10:24:52 +00:00
nicm
8d185395e4
Fix some cursor movement commands, from Anindya Mukherjee.
2021-01-22 10:21:24 +00:00
Thomas Adam
9ff017e908
Merge branch 'obsd-master' into master
2021-01-20 08:01:22 +00:00
nicm
fb774b77d0
Change so that window_flags escapes # automatically which means configs
...
will not have to change. A new format window_raw_flags contains the old
unescaped version.
2021-01-20 07:16:54 +00:00
Thomas Adam
82423975df
Merge branch 'obsd-master' into master
2021-01-18 14:01:21 +00:00
Thomas Adam
66da51b631
Merge branch 'obsd-master' into master
2021-01-18 12:01:22 +00:00
Nicholas Marriott
3c86fa2ad0
Add -Wno-format-y2k.
2021-01-18 11:14:37 +00:00
nicm
0730dce5ab
Hide some warnings on newer GCC versions, GitHUb issue 2525.
2021-01-18 11:14:23 +00:00
Nicholas Marriott
63f4a3c4e5
Extra result message.
2021-01-18 10:48:49 +00:00
nicm
91d112bf12
There is no need to clear every line entirely before drawing to it, this
...
means moving the cursor and messes up wrapping. Better to just clear the
sections that aren't written over. GitHub issue 2537.
2021-01-18 10:27:54 +00:00
Nicholas Marriott
4148417a2a
PKG_CHECK_MODULES needs to be separate.
2021-01-17 19:03:18 +00:00
Nicholas Marriott
607594f6e5
Show config.log on failure.
2021-01-17 18:47:14 +00:00
Nicholas Marriott
b18834be8a
Revert "Set CFLAGS also."
...
This reverts commit 032723c8740710cd34bdf6e7a0124f8fb18f6d70.
2021-01-17 18:24:52 +00:00
Nicholas Marriott
032723c874
Set CFLAGS also.
2021-01-17 18:21:54 +00:00
Nicholas Marriott
c6bcf3dba5
Fix yes/no for b64_ntop check.
2021-01-17 18:20:15 +00:00
Thomas Adam
24c15eda79
Merge branch 'obsd-master' into master
2021-01-17 18:01:21 +00:00
Nicholas Marriott
d4866d5fe6
Fix SEARCH_LIBS.
2021-01-17 17:55:14 +00:00
Nicholas Marriott
603280cb28
+compat.h
2021-01-17 17:52:10 +00:00
Nicholas Marriott
a3011be0d2
Look for libevent2 differently from libevent for platforms with both.
2021-01-17 17:21:51 +00:00
nicm
71c590a37f
Add -N flag to never start server even if command would normally do so,
...
GitHub issue 2523.
2021-01-17 16:17:41 +00:00
Thomas Adam
dc1e1125a5
Merge branch 'obsd-master' into master
2021-01-08 12:01:21 +00:00
nicm
a75aca4d6a
Missed from last commit.
2021-01-08 10:09:44 +00:00
Thomas Adam
9df33bc536
Merge branch 'obsd-master' into master
2021-01-08 10:01:20 +00:00
nicm
b96c5e3687
With incremental search, start empty and only repeat the previous search
...
if the user tries to search again with an empty prompt. This matches
emacs behaviour more closely.
2021-01-08 08:22:10 +00:00
Thomas Adam
fc28e2065a
Merge branch 'obsd-master' into master
2021-01-06 10:01:22 +00:00
nicm
199689954b
Insert joined pane before the target pane with -b, like for split. From
...
Takeshi Banse.
2021-01-06 07:32:23 +00:00
nicm
ccb8b9eb2a
Remove unused variable, from Ben Boeckel.
2021-01-06 07:29:49 +00:00
Thomas Adam
5a2db4c7e8
Merge branch 'obsd-master' into master
2021-01-04 10:01:20 +00:00
nicm
bd0fb22f0a
Add a variant of remain-on-exit that only keeps the pane if the program
...
failed, GitHub issue 2513.
2021-01-04 08:43:16 +00:00
Thomas Adam
f04cc39976
Merge branch 'obsd-master' into master
2021-01-01 10:01:21 +00:00
nicm
606bd5f8c6
Add a -C flag to run-shell to use a tmux command rather than a shell command.
2021-01-01 08:36:51 +00:00
Thomas Adam
f72deb092a
Merge branch 'obsd-master' into master
2020-12-30 22:01:23 +00:00
nicm
f97305af31
Use right format for session loop, GitHub issue 2519.
2020-12-30 18:29:40 +00:00
Thomas Adam
3cbe186efb
Merge branch 'obsd-master' into master
2020-12-28 12:01:21 +00:00
nicm
a98ee00dd9
Do not list user options with show-hooks.
2020-12-28 09:40:27 +00:00
nicm
c68baaad98
Remove current match indicator which can't work anymore since we only
...
search the visible region. From Anindya Mukherjee, GitHub issue 2508.
2020-12-28 09:36:26 +00:00
Thomas Adam
d936fde7ef
Makefile.am: add grid-reader.c
...
Add grid-reader.c to Makefile.am so it's included for compilation.
2020-12-24 22:22:10 +00:00
Thomas Adam
70a0eb3a22
Merge branch 'obsd-master' into master
2020-12-24 22:21:21 +00:00
nicm
c43f2dce1b
Break cursor movement in grid into a common set of functions that can
...
handle line wrapping and so on in one place and use them for the obvious
copy mode commands. From Anindya Mukherjee.
2020-12-22 09:22:14 +00:00
Thomas Adam
950e982001
Merge branch 'obsd-master' into master
2020-12-15 10:01:22 +00:00
nicm
8bd29a30bf
Make synchronize-panes a pane option and add -U flag to set-option to
...
unset an option on all panes. GitHub issue 2491 from Rostislav Nesin.
2020-12-15 08:31:50 +00:00
Nicholas Marriott
681c0d2bfb
Include compat.h after system headers, GitHub issue 2492.
2020-12-07 12:13:20 +00:00
Thomas Adam
caf096394b
Merge branch 'obsd-master' into master
2020-12-07 10:01:20 +00:00
nicm
f6095cad99
Do not include the status line size when working out the character for
...
the pane status line. GitHub issue 2493.
2020-12-07 09:46:58 +00:00
nicm
ed786309cc
Do not clear the wrapped flag on linefeeds if it is already set - this
...
does not appear to be what applications want. GitHub issue 2478 and 2414.
2020-12-07 09:23:57 +00:00
Thomas Adam
e288ea153c
Merge branch 'obsd-master' into master
2020-12-03 08:01:22 +00:00
nicm
fd451aa796
Redraw any visible modes when status line changes so that formats like
...
the pane title are updated. GitHub issue 2487. Also a man page fix from
jmc.
2020-12-03 07:12:11 +00:00
Thomas Adam
4724702d4e
Merge branch 'obsd-master' into master
2020-12-01 12:01:20 +00:00
nicm
f0c1233d4f
Leave newlines inside multiline quotes.
2020-12-01 10:48:03 +00:00
Thomas Adam
27634645e9
Merge branch 'obsd-master' into master
2020-12-01 10:01:22 +00:00
nicm
9a74bba007
Make replacement of ##s consistent when drawing formats, whether
...
followed by [ or not. Add a flag (e) to the q: format modifier to double
up #s and use it for the window_flags format variable so it doesn't end
up escaping any following text. GitHub issue 2485.
2020-12-01 08:12:58 +00:00
Thomas Adam
70a5207bd1
Merge branch 'obsd-master' into master
2020-11-30 16:01:22 +00:00
nicm
33046ecee2
Ignore running command when checking for no-hooks flag if it is blocked.
...
GitHub issue 2483.
2020-11-30 13:37:45 +00:00
Thomas Adam
bf8aa9804b
Merge branch 'obsd-master' into master
2020-11-26 14:01:19 +00:00
nicm
fd5c3e6122
Fix check for vertical centre.
2020-11-26 13:06:21 +00:00
Thomas Adam
82fbff4e08
Merge branch 'obsd-master' into master
2020-11-26 10:01:21 +00:00
nicm
76cfb5f471
Add -N flag to display-panes to ignore keys, GitHub issue 2473.
2020-11-26 09:19:10 +00:00
Nicholas Marriott
2f1578ef83
Update closefrom from OpenSSH for macOS code which is now needed.
2020-11-20 09:05:32 +00:00
Nicholas Marriott
bfdc4373d7
Update closefrom from OpenSSH for macOS code which is now needed.
2020-11-17 17:57:21 +00:00
Thomas Adam
3ee1addbb9
Merge branch 'obsd-master' into master
2020-11-17 10:01:22 +00:00
nicm
0d28ee9274
Log missing keys when extended keys is on rather than fatal().
2020-11-17 08:13:35 +00:00
Thomas Adam
e94bd5ccff
Merge branch 'obsd-master'
2020-11-10 10:01:22 +00:00
nicm
bbab5b7a30
Allow previous-word to scroll onto the first line, noticed by Anindya
...
Mukherjee.
2020-11-10 08:16:52 +00:00
Nicholas Marriott
3eb1519bd7
Scaffold for oss-fuzz, from Sergey Nizovtsev.
2020-11-09 16:44:39 +00:00
Thomas Adam
0dcb6e5eb4
Merge branch 'obsd-master'
2020-11-09 12:01:21 +00:00
nicm
f1193b4891
If mouse bits change, clear them all and set again to avoid problems
...
with some bits implying others. GitHub issue 2458.
2020-11-09 10:54:28 +00:00
Thomas Adam
5ddbf0c918
Merge branch 'obsd-master'
2020-11-09 10:01:27 +00:00
nicm
61e55fa50d
Change how escaping is processed for formats so that ## and # can be
...
used in styles. Also add a 'w' format modifier for the width. From Chas
J Owens IV in GitHub issue 2389.
2020-11-09 09:10:10 +00:00
Nicholas Marriott
72c46aa15e
Add support for Haiku, from David Carlier. GitHub issue 2453.
2020-11-09 09:00:41 +00:00
nicm
1326529f99
Remove some old debug logging.
2020-11-09 08:42:43 +00:00
Thomas Adam
dac285c92a
Merge branch 'obsd-master'
2020-11-03 10:01:21 +00:00
Nicholas Marriott
572a6b21b5
Back to 3.3.
2020-11-03 08:41:24 +00:00
Nicholas Marriott
5306bb0db7
Update to 3.2-rc3, bring in all the changes from master.
2020-11-03 08:37:08 +00:00
Nicholas Marriott
ba9962b568
Merge branch 'master' into 3.2-rc
2020-11-03 08:35:52 +00:00
nicm
9d83c5e948
Expand menu and popup -x and -y as a format, from teo_paul1 at yahoo dot
...
com in GitHub issue 2442.
2020-11-03 08:09:35 +00:00
Thomas Adam
ff53eed402
Merge branch 'obsd-master'
2020-11-02 10:01:20 +00:00
nicm
ac5045a00f
Add numeric comparisons for formats, from teo_paul1 at yahoo dot com in
...
GitHub issue 2442.
2020-11-02 08:21:30 +00:00
Thomas Adam
ffe39edf2f
Merge branch 'obsd-master'
2020-10-30 20:01:20 +00:00
nicm
95841ba16a
With csh, a tmux client gets SIGTERM before SIGCONT when killed with
...
"kill %%", so when the client tells the server it got SIGCONT, don't use
bits that may already have been freed when it got SIGTERM. Also don't
print anything on exit if we get SIGTERM while suspended. Reported by
Theo.
2020-10-30 18:54:23 +00:00
Thomas Adam
d064060904
Merge branch 'obsd-master'
2020-10-30 14:01:20 +00:00
Nicholas Marriott
0b8ae4de5c
Update CHANGES.
2020-10-30 12:29:40 +00:00
nicm
9726c4454e
Do not allow disabled items to be selected.
2020-10-30 12:00:01 +00:00
nicm
8e1d28453d
Limit range of repeat to avoid silly high numbers causing delays, from
...
Sergey Nizovtsev.
2020-10-30 11:34:13 +00:00
nicm
02197f20d0
Do not leak path when freeing screen, from Sergey Nizovtsev.
2020-10-30 11:33:41 +00:00
Thomas Adam
970e8f734c
Merge branch 'obsd-master'
2020-10-30 10:01:22 +00:00
Nicholas Marriott
ce2b6ff40e
Style trim test (currently failing).
2020-10-30 09:25:41 +00:00
nicm
910457f68d
There is no reason not to fire focus events when a pane is in a mode,
...
GitHub issue 2372.
2020-10-30 09:00:07 +00:00
nicm
649e5970e9
Add a -O flag to display-menu to change the mouse behaviour and not
...
close the menu when the mouse is released, from teo_paul1 at yahoo dot
com.
2020-10-30 08:55:56 +00:00
nicm
733abfcfc5
Do not write after the end of the array and overwrite the stack when
...
colon-separated SGR sequences contain empty arguments. Reported by Sergey
Nizovtsev.
2020-10-30 08:17:38 +00:00
Thomas Adam
7f321a4cc6
Merge branch 'obsd-master'
2020-10-29 18:01:21 +00:00
nicm
a868bacb46
Do not write after the end of the array and overwrite the stack when
...
colon-separated SGR sequences contain empty arguments. Reported by Sergey
Nizovtsev.
2020-10-29 16:33:01 +00:00
nicm
7a4aa14618
Do not require that there be no other clients before loading the config,
...
being the first client is enough. GitHub issue 2438.
2020-10-29 14:10:24 +00:00
Thomas Adam
d5fac75667
Merge branch 'obsd-master'
2020-10-29 14:05:21 +00:00
nicm
977cf3cf69
Set RGB flag if capabilities are present, GitHub issue 2418.
2020-10-29 13:48:03 +00:00
nicm
07ffed8b6f
Fix note for "previous-window" default key binding, from Sebastian
...
Falbesoner.
2020-10-29 13:47:50 +00:00
nicm
7ffb414299
Client could be NULL in select-window (for example in .tmux.conf), do
...
not set latest session if so. GitHub issue 2429 from Han Boetes.
2020-10-29 13:47:40 +00:00
nicm
3c298b98ce
SIGQUIT handler needs to be cleared before fork like the others,
...
reported by Simon Andersson.
2020-10-29 13:47:24 +00:00
nicm
b33a302235
Do not require that there be no other clients before loading the config,
...
being the first client is enough. GitHub issue 2438.
2020-10-28 10:09:10 +00:00
Thomas Adam
20e89605c9
Merge branch 'obsd-master'
2020-10-26 20:01:18 +00:00
nicm
31ed29e551
SIGQUIT handler needs to be cleared before fork like the others,
...
reported by Simon Andersson.
2020-10-26 19:00:37 +00:00
Thomas Adam
9a5b2c93a7
Merge branch 'obsd-master'
2020-10-19 10:01:18 +01:00
nicm
d8cda9286f
Client could be NULL in select-window (for example in .tmux.conf), do
...
not set latest session if so. GitHub issue 2429 from Han Boetes.
2020-10-19 06:39:28 +00:00
Thomas Adam
6125800876
Merge branch 'obsd-master'
2020-10-13 12:01:20 +01:00
nicm
4c8706d399
Fix note for "previous-window" default key binding, from Sebastian
...
Falbesoner.
2020-10-13 10:15:23 +00:00
Thomas Adam
9ab81e1879
Merge branch 'obsd-master'
2020-10-13 10:01:19 +01:00
nicm
d603dbdef0
Set RGB flag if capabilities are present, GitHub issue 2418.
2020-10-13 07:29:24 +00:00
Thomas Adam
30601d11a8
Merge branch 'obsd-master'
2020-10-09 22:01:22 +01:00
tim
4dc76e084b
Escape ! in Ql
...
OK jmc@ nicm@, agreement from schwarze@
2020-10-09 19:12:36 +00:00
Thomas Adam
7ca0b9ddfa
Merge branch 'obsd-master'
2020-10-07 10:01:19 +01:00
Nicholas Marriott
991d5a9c74
Add compat for getdtablesize, GitHub issue 2406.
2020-10-07 09:39:43 +01:00
nicm
3afcc6faac
Allow fnmatch(3) wildcards in update-environment, GitHub issue 2397.
2020-10-07 08:23:55 +00:00
Thomas Adam
57168f3f59
Merge branch 'obsd-master'
2020-10-06 10:01:20 +01:00
nicm
7e319756d2
Fix a last minute change in previous.
2020-10-06 07:36:42 +00:00
nicm
e369f64669
Add a state struct to store working state during format expansion
...
instead of modiyfing the format tree.
Use this to disable nested job expansion so that the result of #() is
not expanded again. Reported by Chas J Owens IV, GitHub issue 2390.
2020-10-06 07:36:05 +00:00
Nicholas Marriott
680e7a382f
glibc's malloc is very bad about returning memory from the kernel, add a call
...
to its malloc_trim to prompt it to do so. Reported by Sarunas Valaskevicius.
2020-10-06 08:18:42 +01:00
Thomas Adam
847a061e31
Merge branch 'obsd-master'
2020-10-05 14:01:19 +01:00
nicm
8d9ea1b97c
Trim "s from process names; also fix a default format in man page.
2020-10-05 11:04:40 +00:00
Thomas Adam
f5b7ebc540
Merge branch 'obsd-master'
2020-10-05 12:01:23 +01:00
nicm
1479e32e1a
Tidy the resize code, merge some common bits and add some comments. From
...
"Mike" in GitHub issue 2392.
2020-10-05 10:00:51 +00:00
nicm
c8f3736b07
Use the setal capability as well as (tmux's) Setulc.
2020-10-05 09:53:01 +00:00
Nicholas Marriott
92a2e7411f
Link to install wiki page.
2020-10-01 09:01:42 +01:00
Nicholas Marriott
9ec68db74f
Correct break-pane default format, from Gregory Pakosz.
2020-09-30 14:17:27 +01:00
Nicholas Marriott
f43e3e5b4f
Next version.
2020-09-30 13:36:58 +01:00
Nicholas Marriott
86433c6fb5
Merge tag '3.2-rc' into master
...
3.2-rc
2020-09-30 13:36:26 +01:00
Nicholas Marriott
cf8ef63c4a
Fix some warnings, GitHub issue 2382.
2020-09-30 13:35:51 +01:00
nicm
ec9e03d09a
Old Terminal.app versions do not respond correctly to secondary DA,
...
instead responding with the primary DA response. Ignore it. Reported by
Dave Vandervies.
2020-09-30 13:33:02 +01:00
Nicholas Marriott
3bece648bd
Trim "s from process names, from Gregory Pakosz.
2020-09-30 13:27:50 +01:00
nicm
68c2d5c48d
Escape+Up and the other arrow keys should be kept as Escape+Up and not
...
converted to M-Up. Do not give them the implied meta flag so they don't
match the M-Up entry in the output key tree. Fixes problem with vi
reported by jsing@.
2020-09-30 13:27:43 +01:00
Nicholas Marriott
f70eda3817
Check if UNIX 03 is needed for CMSG_DATA, for newer Solaris. From Eric N Vander
...
Weele.
2020-09-30 13:27:35 +01:00
Nicholas Marriott
a880237141
Also pkg-config.
2020-09-30 13:27:25 +01:00
Nicholas Marriott
9d597390ca
Mention build dependencies, based on a change from Mateusz Urbanek.
2020-09-30 13:27:21 +01:00
Nicholas Marriott
5f50e7d942
Trim "s from process names, from Gregory Pakosz.
2020-09-30 13:26:31 +01:00
Nicholas Marriott
4f638c0e31
Check if UNIX 03 is needed for CMSG_DATA, for newer Solaris. From Eric N Vander
...
Weele.
2020-09-25 10:04:52 +01:00
Nicholas Marriott
e2e5169f84
Also pkg-config.
2020-09-25 09:43:35 +01:00
Nicholas Marriott
ebf27f6900
Mention build dependencies, based on a change from Mateusz Urbanek.
2020-09-25 09:41:41 +01:00
Thomas Adam
476c185997
Merge branch 'obsd-master'
2020-09-23 18:01:17 +01:00
nicm
f2dfc2759e
Escape+Up and the other arrow keys should be kept as Escape+Up and not
...
converted to M-Up. Do not give them the implied meta flag so they don't
match the M-Up entry in the output key tree. Fixes problem with vi
reported by jsing@.
2020-09-23 14:57:33 +00:00
Thomas Adam
dc0c3aa391
Merge branch 'obsd-master'
2020-09-22 18:01:18 +01:00
nicm
d6680b9474
Move a sentence to the right command.
2020-09-22 15:45:20 +00:00
Thomas Adam
859a4c3460
Merge branch 'obsd-master'
2020-09-22 10:01:17 +01:00
nicm
b9392d5cb1
Do not wrap at end of text when positioning at end of match because the
...
length may include trailing spaces.
2020-09-22 08:41:27 +00:00
Thomas Adam
a34ceb1074
Merge branch 'obsd-master'
2020-09-22 08:01:18 +01:00
nicm
51909a107f
Resize screen to the correct size (borders need to be taken off).
2020-09-22 06:44:52 +00:00
nicm
86d6ac2f06
Fix warnings on some platforms with %llx and add a new message to handle
...
64-bit client flags.
2020-09-22 05:23:34 +00:00
Thomas Adam
ca5afb34bf
Merge branch 'obsd-master'
2020-09-18 14:01:19 +01:00
nicm
88b66e9e28
Free buffer earlier to avoid confusing some compilers, GitHub issue
...
2382.
2020-09-18 11:23:29 +00:00
nicm
ed946dccc7
Some other warnings, GitHub issue 2382.
2020-09-18 11:20:59 +00:00
Thomas Adam
eea85fb4c7
Merge branch 'obsd-master'
2020-09-16 22:01:18 +01:00
nicm
3206869ea5
Add -q flag to unbind-key to hide errors, GitHub issue 2381.
2020-09-16 19:12:59 +00:00
Thomas Adam
c3e1b841f9
Merge branch 'obsd-master'
2020-09-16 20:01:19 +01:00
nicm
869c0e860f
Fix some warnings, GitHub issue 2382.
2020-09-16 18:37:55 +00:00
Thomas Adam
3c1f34c208
Merge branch 'obsd-master'
2020-09-08 12:01:17 +01:00
nicm
1fed7e84a3
Allow -N without a command to change or add a note to an existing key.
2020-09-08 10:19:19 +00:00
Thomas Adam
634a2bb647
Merge branch 'obsd-master'
2020-09-04 14:01:18 +01:00
nicm
9b45ba82fd
calloc cb data so the client is NULL.
2020-09-04 12:24:25 +00:00
Nicholas Marriott
233d14f4da
Hide warnings due to Apple's stupidity with __dead, reported by Kurtis Rader.
2020-09-04 08:37:11 +01:00
Thomas Adam
2e931d4994
Merge branch 'obsd-master'
2020-09-03 14:01:18 +01:00
nicm
eadf18b9fa
Do not free old session working directory until after expanding the new
...
one because it may be needed.
2020-09-03 12:47:33 +00:00
Thomas Adam
cbbf5febff
Merge branch 'obsd-master'
2020-09-02 20:01:17 +01:00
nicm
e538bef757
Check started flag before looking for capability.
2020-09-02 17:19:58 +00:00
Thomas Adam
fc9ecdc665
Merge branch 'obsd-master'
2020-09-02 16:01:20 +01:00
nicm
37b1600d9c
Add a -w flag to set- and load-buffer to send to clipboard using OSC 52.
...
GitHub issue 2363.
2020-09-02 13:46:35 +00:00
Thomas Adam
a0fee328bf
Merge branch 'obsd-master'
2020-09-01 12:01:20 +01:00
nicm
60860aced8
Add -F to set-environment and source-file; GitHub issue 2359.
2020-09-01 09:19:01 +00:00
nicm
b2a262e353
Only print below number when there is enough space.
2020-09-01 08:50:14 +00:00
Thomas Adam
b895ffbf37
Merge branch 'obsd-master'
2020-08-27 10:01:20 +01:00
nicm
2ab289980a
Add pane_last format, GitHub issue 2353.
2020-08-27 06:55:54 +00:00
Thomas Adam
655134f77c
Merge branch 'obsd-master'
2020-08-25 14:01:19 +01:00
nicm
20fcdcfea1
Allow colour to be spelt as color, from Boris Verkhovsky. GitHub issue
...
2317.
2020-08-25 11:35:32 +00:00
Thomas Adam
aa084bb49e
Merge branch 'obsd-master'
2020-08-24 08:01:17 +01:00
nicm
e4a4fcfc90
Old Terminal.app versions do not respond correctly to secondary DA,
...
instead responding with the primary DA response. Ignore it. Reported by
Dave Vandervies.
2020-08-24 05:23:30 +00:00
nicm
43e3e53908
Do not run off end of string when stripping delays, reported by Dave
...
Vandervies.
2020-08-24 05:22:28 +00:00
Thomas Adam
769ae10658
Merge branch 'obsd-master'
2020-08-20 20:01:19 +01:00
nicm
d0957529ed
Add n: modifier to get length of a format, also automatically expand
...
variable name arguments again if they contain a #{.
2020-08-20 16:57:40 +00:00
Thomas Adam
5a55d1390a
Merge branch 'obsd-master'
2020-08-19 10:01:19 +01:00
nicm
d8b6560cbf
Set alert flag for the current window if the session is unattached.
...
GitHub issues 1182 and 2299. From Eric Garver.
2020-08-19 07:15:42 +00:00
nicm
f08bfa7cd1
Respond to colour requests if a colour is available, from Michal Goral.
2020-08-19 06:37:23 +00:00
Thomas Adam
93eb2c8c53
Merge branch 'obsd-master'
2020-08-07 10:01:19 +01:00
nicm
212c0c1f72
Do not force line width to grid width because it may need to be larger
...
to accomodate a wide character. GitHub issue 2336.
2020-08-07 07:02:57 +00:00
Thomas Adam
9f0973b711
Merge branch 'obsd-master'
2020-08-05 12:01:21 +01:00
nicm
df7fbcd7a5
Change searching to behave more like emacs and so that regex searching
...
doesn't overlap when searching forwards.
2020-08-05 09:11:09 +00:00
Thomas Adam
8d7e127b17
Merge branch 'obsd-master'
2020-08-04 12:01:18 +01:00
nicm
82c65e3f37
Also ignore SIGQUIT so it can't be used to kill the client when locked.
2020-08-04 08:50:01 +00:00
Thomas Adam
98aa835079
Merge branch 'obsd-master'
2020-07-30 10:01:18 +01:00
nicm
944177eec3
Trim newline from ctime, from Thomas Adam.
2020-07-30 07:32:52 +00:00
Thomas Adam
2fdd5fa507
Merge branch 'obsd-master'
2020-07-27 10:01:21 +01:00
nicm
40e65c5115
Add a -d option to display-message to set delay, from theonekeyg at
...
gmail dot com in GitHub issue 2322.
2020-07-27 08:03:10 +00:00
Thomas Adam
90158b5977
Merge branch 'obsd-master'
2020-07-24 10:01:19 +01:00
Nicholas Marriott
31bc4c4346
3.2-rc version.
2020-07-24 08:38:34 +01:00
nicm
d329b035ce
Add a hook when the pane title changed.
2020-07-24 07:05:37 +00:00
Thomas Adam
1f19355fb0
Merge branch 'obsd-master'
2020-07-23 16:01:17 +01:00
nicm
112b0f417c
Check all lists if option not found already.
2020-07-23 14:17:56 +00:00
Thomas Adam
e0d984597b
Merge branch 'obsd-master'
2020-07-22 08:01:18 +01:00
nicm
1f5e520def
Correct checks for window borders.
2020-07-22 06:21:46 +00:00
Thomas Adam
90de0c1a9b
Merge branch 'obsd-master'
2020-07-21 08:01:19 +01:00
nicm
743ab5728d
Fix show-buffer when run from inside tmux, GitHub issue 2314.
2020-07-21 05:24:33 +00:00
Thomas Adam
70a674dde1
Merge branch 'obsd-master'
2020-07-18 06:01:20 +01:00
daniel
3b089fc69f
Properly escape a backslash.
...
Found by CompCert which notes that \E is not a valid escape sequence.
ok nicm@
2020-07-18 02:53:47 +00:00
Thomas Adam
ab8d685302
Merge branch 'obsd-master'
2020-07-15 14:01:18 +01:00
nicm
5e008eefaa
Renumber after killing windows for choose-tree.
2020-07-15 11:03:17 +00:00
Thomas Adam
c973801f92
Merge branch 'obsd-master'
2020-07-15 12:01:19 +01:00
nicm
8f1179d656
Handle padding cells correctly when searching, GitHub issue 2301.
2020-07-15 10:09:54 +00:00
Thomas Adam
405b71e016
Merge branch 'obsd-master'
2020-07-13 12:01:17 +01:00
nicm
468be2a37f
Do not dereference NULL environment variable value, GitHub issue 2304.
2020-07-13 10:10:10 +00:00
Thomas Adam
7d6723b5f7
Merge branch 'obsd-master'
2020-07-13 10:01:18 +01:00
nicm
f26b7b7788
Clarify /tmp permissions and use, GitHub issue 2300.
2020-07-13 07:04:17 +00:00
Nicholas Marriott
a5f99e14c6
Update version.
2020-07-06 14:07:11 +01:00
Nicholas Marriott
b30989a964
Pull 3.2-rc up to master.
2020-07-06 14:03:33 +01:00
Thomas Adam
aa4f3a9b3d
Merge branch 'obsd-master'
2020-07-06 12:01:22 +01:00
nicm
2aa177d102
Do not eliminate redundant clears, the code is wrong and doing it
...
correctly wouldn't be worth it. GitHub issue 2298.
2020-07-06 10:07:02 +00:00
nicm
66d5e5de7a
Add a way for control mode clients to subscribe to a format and be
...
notified of changes rather than having to poll. GitHub issue 2242.
2020-07-06 09:14:20 +00:00
Thomas Adam
af82094439
Merge branch 'obsd-master'
2020-07-06 10:01:19 +01:00
nicm
2bf612a806
Always send xterm-style keys for M-Left and M-Right. GitHub issue 2296.
2020-07-06 07:27:39 +00:00
Thomas Adam
c0d9eaff9b
Merge branch 'obsd-master'
2020-07-04 16:01:20 +01:00
nicm
1e42689661
kill-window -a cannot just walk the list of windows because if
...
renumber-windows is on, the window it wants to keep could be moved.
Change to renumber afterwards and also behave better if the window is
linked into the session twice. GitHub issue 2287.
2020-07-04 14:24:02 +00:00
Nicholas Marriott
a109e839d1
Fix version.
2020-07-03 12:03:25 +01:00
Nicholas Marriott
6b01eac774
Merge branch '3.2-rc'
2020-07-03 12:03:07 +01:00
nicm
5661346c41
Missing word, from annihilannic at hotmail dot com, GitHub issue 2288.
2020-07-03 12:02:52 +01:00
nicm
0d0fc13aaa
Check if client is NULL before using it, GitHub issue 2295.
2020-07-03 12:02:46 +01:00
bket
83868ceb1a
Replace TAILQ concatenation loop with TAILQ_CONCAT
...
As a result remove unneeded variables
OK @nicm
2020-07-03 12:02:37 +01:00
Thomas Adam
0fa306d73c
Merge branch 'obsd-master'
2020-07-03 10:01:20 +01:00
nicm
43e1577b5d
Missing word, from annihilannic at hotmail dot com, GitHub issue 2288.
2020-07-03 07:07:50 +00:00
nicm
2b1e8d06e1
Check if client is NULL before using it, GitHub issue 2295.
2020-07-03 07:00:12 +00:00
Thomas Adam
a284664e71
Merge branch 'obsd-master'
2020-06-29 18:01:18 +01:00
bket
2a9bdb700d
Replace TAILQ concatenation loop with TAILQ_CONCAT
...
As a result remove unneeded variables
OK @nicm
2020-06-29 15:53:28 +00:00
nicm
629ba1b838
Check for no pane border status line separately from top/bottom.
2020-06-29 09:20:39 +01:00
nicm
c9b4d5a4a5
Fix 0x Unicode character parsing, GitHub issue 2286.
2020-06-29 09:20:32 +01:00
nicm
6cacaa94a5
Silently ignore -a or -b if the window index doesn't exist and create
...
using that index (this is how it used to work), reported by Romain
Francoise.
2020-06-29 09:20:25 +01:00
Thomas Adam
332aca754b
Merge branch 'obsd-master'
2020-06-27 12:01:18 +01:00
nicm
b6aeb86c20
Check for no pane border status line separately from top/bottom.
2020-06-27 10:23:10 +00:00
nicm
74df7071ad
Fix 0x Unicode character parsing, GitHub issue 2286.
2020-06-27 10:19:59 +00:00
Thomas Adam
04a1a84bb8
Merge branch 'obsd-master'
2020-06-25 12:01:17 +01:00
nicm
f69bdda950
Silently ignore -a or -b if the window index doesn't exist and create
...
using that index (this is how it used to work), reported by Romain
Francoise.
2020-06-25 08:56:02 +00:00
nicm
43295bd4a5
Correctly redraw pane border bottom line when the status line is on and
...
at the bottom, reported by Kaushal Modi.
2020-06-23 16:32:40 +01:00
nicm
e215a566a4
Use xvasprintf not vasprintf.
2020-06-23 16:32:40 +01:00
Thomas Adam
2a2ebf315f
Merge branch 'obsd-master'
2020-06-23 16:01:18 +01:00
nicm
5340bf556e
Correctly redraw pane border bottom line when the status line is on and
...
at the bottom, reported by Kaushal Modi.
2020-06-23 14:10:43 +00:00
Thomas Adam
1f515663d1
Merge branch 'obsd-master'
2020-06-23 08:01:18 +01:00
nicm
2964dde903
Use xvasprintf not vasprintf.
2020-06-23 05:23:26 +00:00
Nicholas Marriott
e450416c93
3.2-rc.
2020-06-22 12:55:10 +01:00
Nicholas Marriott
b730083d7a
Add to CHANGES.
2020-06-22 12:53:43 +01:00
Nicholas Marriott
3a1fc7315c
Add getline compat.
2020-06-18 21:01:55 +01:00
Nicholas Marriott
3df68d6b00
Fix regress test for am.
2020-06-18 21:01:45 +01:00
Thomas Adam
6c437d45ac
Merge branch 'obsd-master'
2020-06-18 12:01:22 +01:00
nicm
068b92b051
The redraw callback could be fired with a NULL pane if it updates while
...
in a mode, problem reported by Martin Vahlensieck.
2020-06-18 08:41:56 +00:00
nicm
2372b0fdc6
Add a flag to make a client wait for an empty line before exiting in
...
control mode to avoid stray commands ending up in the shell.
2020-06-18 08:34:22 +00:00
Thomas Adam
eb448daa1a
Merge branch 'obsd-master'
2020-06-16 10:01:21 +01:00
nicm
1bf9555e4f
d and D keys to reset to default in customize mode.
2020-06-16 08:18:34 +00:00
nicm
afe4ea4250
Correctly move to previous line when looking for previous word, from
...
Derry Jing.
2020-06-16 07:28:57 +00:00
Thomas Adam
824efe7be4
Merge branch 'obsd-master'
2020-06-13 12:01:20 +01:00
nicm
1c78155e70
Add -b flags to insert a window before (like the existing -a for after)
...
to break-pane, move-window, new-window. GitHub issue 2261.
2020-06-13 09:05:53 +00:00
Thomas Adam
4000052d92
Merge branch 'obsd-master'
2020-06-12 12:01:17 +01:00
nicm
d52ac7d027
Do not wait on shutdown for commands started with run -b.
2020-06-12 10:31:12 +00:00
Thomas Adam
bd3fb2fb10
Merge branch 'obsd-master'
2020-06-12 10:01:19 +01:00
nicm
d8d7769104
Check if a pane needs to be paused when output is written rather than
...
just when it is queued.
2020-06-12 08:35:01 +00:00
nicm
4c3bdc5a36
move-pane also defaults to marked pane now, reported by Ben Challenor.
2020-06-12 07:52:38 +00:00
nicm
cf63465eb0
Fix quoting with newlines and single quotes.
2020-06-12 07:10:43 +00:00
Thomas Adam
b5c86fdc0c
Merge branch 'obsd-master'
2020-06-11 22:01:23 +01:00
nicm
63c2ed1483
Add some formats for search in copy mode (search_present, search_match).
...
GitHub issue 2268.
2020-06-11 19:43:34 +00:00
Thomas Adam
2e5b496053
Merge branch 'obsd-master'
2020-06-11 14:01:19 +01:00
Thomas Adam
e8c99496cd
Merge branch 'obsd-master'
2020-06-11 12:01:19 +01:00
nicm
cf13d1e110
Fix a crash when completing sessions, from Anindya Mukherjee.
2020-06-11 10:56:19 +00:00
nicm
50ee41423f
Add a -A option to pause a pane manually.
2020-06-11 09:55:47 +00:00
Thomas Adam
ea4425b9bd
Merge branch 'obsd-master'
2020-06-10 10:01:20 +01:00
nicm
23d79cfda8
Instead of a buffer size limit on each pane, set a limit of 300 seconds
...
of data for each client in control mode.
2020-06-10 07:27:10 +00:00
Thomas Adam
8b673cc4f2
Merge branch 'obsd-master'
2020-06-10 08:01:19 +01:00
nicm
fddcad6957
When the pause-after flag is set, send an alternative %extended-output
...
form instead of %output with the age of the output.
2020-06-10 06:23:43 +00:00
Thomas Adam
208d9449b7
Merge branch 'obsd-master'
2020-06-09 12:01:18 +01:00
nicm
fee585ea14
Include width in error message.
2020-06-09 10:37:00 +00:00
Thomas Adam
30eaf885c4
Merge branch 'obsd-master'
2020-06-09 10:01:17 +01:00
nicm
c60389acbf
It is not sensible to store pointers into an array we are going to
...
realloc (duh), use two trees instead.
2020-06-09 08:34:33 +00:00
Thomas Adam
9ffdcc7656
Merge branch 'obsd-master'
2020-06-06 14:01:17 +01:00
nicm
a4a3d89598
Use bitshifts instead of a union for encoding UTF-8 into 32 bits, which
...
is more friendly to GCC3.
Reported by and ok aoyama@.
2020-06-06 12:38:32 +00:00
Nicholas Marriott
0d8ba2e57f
Add to CHANGES.
2020-06-05 14:56:55 +01:00
Thomas Adam
92c8cc17c3
Merge branch 'obsd-master'
2020-06-05 14:01:19 +01:00
nicm
d919fa1ed0
Change how panes are resized so that the code is clearer and if the pane
...
is resized multiple times during one event loop, it is forced to resize
at the end. Also don't zoom/unzoom in switch-client if the pane hasn't
changed. GitHub issue 2260.
2020-06-05 11:20:51 +00:00
Thomas Adam
47a5afe5bf
Merge branch 'obsd-master'
2020-06-05 12:01:18 +01:00
nicm
03b2998abe
Do not take the address of a potentially unaligned member.
2020-06-05 09:35:41 +00:00
nicm
c908d2039f
Fix various confusion about am vs xenl.
2020-06-05 09:32:15 +00:00
Thomas Adam
a06cf900c7
Merge branch 'obsd-master'
2020-06-05 10:01:22 +01:00
nicm
4e5e2c19d0
Now that we mostly only search visible text, the rate limit on repeating
...
search does not seem to be necessary, remove it for the moment.
2020-06-05 07:44:42 +00:00
nicm
c586208991
Add support for pausing a pane when the output buffered for a control
...
mode client gets too far behind. The pause-after flag with a time is set
on the pane with refresh-client -f and a paused pane may be resumed with
refresh-client -A. GitHub issue 2217.
2020-06-05 07:33:57 +00:00
Thomas Adam
976cf6c60f
Merge branch 'obsd-master'
2020-06-05 00:01:19 +01:00
nicm
d9cd493d09
Reset wrapped flag when clearing or moving lines, GitHub issue 2215.
2020-06-04 21:41:31 +00:00
nicm
2154e1f4fb
Search marks outside the visible text are not useful, so there is no
...
point in allocating a big buffer to store them - just allocate the
visible text size, and ignore any outside.
2020-06-04 21:40:27 +00:00
Thomas Adam
8b43fcd82b
Merge branch 'obsd-master'
2020-06-04 22:01:17 +01:00
nicm
c4732af006
Some improvements to performance of searching:
...
- Do not allow searches to be repeated at intervals of less than 50
milliseconds, to prevent a huge queue of repeat key presses blocking
up everything for ages.
- If the search text hasn't changed, the match count can't have changed
and there is no need to do a full search, so only search the visible
text. This includes both scrolling and repeating the search.
- Do not redraw twice when jumping to the search location.
GitHub issue 2258.
2020-06-04 20:41:57 +00:00
Thomas Adam
c8bddfba2b
Merge branch 'obsd-master'
2020-06-04 18:01:17 +01:00
nicm
4403afe29c
A } can go on the same line as a command.
2020-06-04 16:06:01 +00:00
Thomas Adam
81ba6477ff
Merge branch 'obsd-master'
2020-06-04 12:01:20 +01:00
Nicholas Marriott
23a3742dc8
Update CHANGES.
2020-06-04 11:43:11 +01:00
nicm
4ea3370316
Shorten some long lines.
2020-06-04 10:36:28 +00:00
nicm
a9bf5367da
Correct respawn-* - they don't always use the creation command.
2020-06-04 10:34:40 +00:00
nicm
dc74d2e054
Make the -no-clear command variants not clear the search marks either.
2020-06-04 10:24:14 +00:00
Thomas Adam
b0a6025897
Merge branch 'obsd-master'
2020-06-04 10:01:20 +01:00
nicm
d3c5202f50
Allow strings to span multiple lines - newlines and any leading
...
whitespace are removed, as well as any following comments that couldn't
be part of a format. This allows long formats or other strings to be
annotated and indented.
2020-06-04 08:30:44 +00:00
nicm
b3782d2dc8
Instead of using a custom parse function to process {}, treat it as a
...
set of statements and parse with yacc, then convert back to a string as
the last step. This means the rules are consistent inside and outside
{}, %if and friends work at the right time, and the final result isn't
littered with unnecessary newlines.
2020-06-04 07:12:05 +00:00
Thomas Adam
f837dcdd58
Merge branch 'obsd-master'
2020-06-03 18:01:17 +01:00
nicm
3f6af4156f
Make paste -p the default for ], GitHub issue 2248.
2020-06-03 16:35:40 +00:00
Thomas Adam
62c0617d79
Merge branch 'obsd-master'
2020-06-03 00:01:20 +01:00
Thomas Adam
3d5decb305
Merge branch 'obsd-master'
2020-06-02 22:01:20 +01:00
nicm
4694e9a2b6
Move the code to set up a padding cell into grid.c.
2020-06-02 20:51:46 +00:00
nicm
2a4d4bda2b
Allow UTF-8 characters of width 0 to be stored, it is useful to be able
...
to put padding cells in as width 0.
2020-06-02 20:10:23 +00:00
nicm
f5366ff828
Missing ; in previous.
2020-06-02 19:16:46 +00:00
nicm
5fbae8c8c6
Fire copy-pipe command even if there is no text, means it works if it
...
has side effects.
2020-06-02 19:10:26 +00:00
Thomas Adam
ebe866c378
Merge branch 'obsd-master'
2020-06-02 20:01:18 +01:00
nicm
7e501f1993
UTF-8 keys need to be big endian so the size bits are at the top.
2020-06-02 17:17:44 +00:00
Thomas Adam
049ccb4a4b
Merge branch 'obsd-master'
2020-06-02 14:01:17 +01:00
nicm
822ee4e0a6
Fail rather than fatal on UTF-8 width 0.
2020-06-02 11:29:00 +00:00
Thomas Adam
31a51cae1d
Merge branch 'obsd-master'
2020-06-02 11:29:48 +01:00
nicm
f3931497f8
Use CLOCK_MONOTONIC for timer measurement and add a timestamp to control
...
mode %output blocks.
2020-06-02 08:17:27 +00:00
nicm
563b7331da
Remove blocks from queue when pane disappears.
2020-06-01 21:08:05 +00:00
nicm
8339702d47
Check the right thing for maximum client buffer size.
2020-06-01 20:58:42 +00:00
nicm
9819470058
Change format callback to return value rather than storing it in the entry.
2020-06-01 19:39:25 +00:00
Thomas Adam
191a836560
Merge branch 'obsd-master'
2020-06-01 18:01:18 +01:00
nicm
674ec410b7
Try without cursor/keypad flags if a key doesn't exist, and limit ctrl
...
key translation to ASCII keys. Fixes send-keys, GitHub issue 2247.
2020-06-01 16:09:35 +00:00
Thomas Adam
91e40de2da
Merge branch 'obsd-master'
2020-06-01 12:01:20 +01:00
nicm
a54a88edd6
Instead of sending all data to control mode clients as fast as possible,
...
add a limit of how much data will be sent to the client and try to use
it for panes with some degree of fairness. GitHub issue 2217, with
George Nachman.
2020-06-01 09:43:00 +00:00
Thomas Adam
5ef790a6c4
Merge branch 'obsd-master'
2020-05-29 16:01:19 +01:00
nicm
175e45005f
Add -i to find-window to ignore case.
2020-05-29 13:42:13 +00:00
Nicholas Marriott
ce6b3a539d
utf8proc_unicode_version is too new.
2020-05-28 08:41:56 +01:00
Thomas Adam
86159fca82
Merge branch 'obsd-master'
2020-05-27 16:01:18 +01:00
nicm
bda2a0282a
Fix ASCII keys with send-keys -l.
2020-05-27 14:45:35 +00:00
Thomas Adam
38ce6adab6
Merge branch 'obsd-master'
2020-05-27 08:01:19 +01:00
nicm
f336599a3a
Make padding cell a valid character.
2020-05-27 06:23:23 +00:00
Thomas Adam
fd8652ceda
Merge branch 'obsd-master'
2020-05-26 16:01:19 +01:00
nicm
2ced370bee
Tweak some out of date bits, reported by bcgraham.
2020-05-26 13:19:21 +00:00
Thomas Adam
a4cb700269
Merge branch 'obsd-master'
2020-05-26 14:02:15 +01:00
nicm
ff6f2ff6d9
Return new character properly when converting to data.
2020-05-26 12:50:03 +00:00
nicm
392b381d1c
Apply -n when only one pane in the window.
2020-05-26 09:01:03 +00:00
nicm
370f0bb98d
Remove leftover debug logging and fix comparison.
2020-05-26 08:56:48 +00:00
nicm
ca0166f26f
Do not try to use the last marked pane if it is invalid.
2020-05-26 08:47:50 +00:00
nicm
ea610a3119
Pass the stdout file descriptor from the client as well as stdin and use
...
them for control clients directly instead of passing everything via the
client.
2020-05-26 08:41:47 +00:00
Nicholas Marriott
bc2e0cf7ff
Remove bad merge.
2020-05-26 08:54:05 +01:00
Nicholas Marriott
d73fcfc176
Put the fix back for wcwidth() failing.
2020-05-26 08:49:36 +01:00
Thomas Adam
967e5f8be3
Merge branch 'obsd-master'
2020-05-26 08:42:55 +01:00
Nicholas Marriott
fd4d3e8793
Set IUTF8 again when it exists.
2020-05-26 06:15:57 +01:00
nicm
6f03e49e68
Use the internal representation for UTF-8 keys instead of wchar_t and
...
drop some code only needed for that.
2020-05-25 18:57:24 +00:00
nicm
35779d655d
Fix definition of padding cells so they are not extended cells.
2020-05-25 18:55:36 +00:00
nicm
49ec074271
Tidy up new UTF-8 code and make it more generic.
2020-05-25 18:19:29 +00:00
nicm
dc893405e1
Fix some error strings, from Kris Katterjohn.
2020-05-25 18:17:14 +00:00
Thomas Adam
b34af611a5
Merge branch 'obsd-master'
2020-05-25 18:01:20 +01:00
nicm
bbfb44e9b2
Make some data types consistent.
2020-05-25 15:02:25 +00:00
Thomas Adam
32ce468b22
Merge branch 'obsd-master'
2020-05-25 14:01:19 +01:00
nicm
4589297e43
Do not attempt to divide by zero when working out copy position.
2020-05-25 12:12:58 +00:00
nicm
26e8e467e8
Include title for the width of the menu.
2020-05-25 11:59:50 +00:00
Thomas Adam
bb5a1925ab
Merge branch 'obsd-master'
2020-05-25 12:01:19 +01:00
nicm
3a5219c6d0
Instead of storing all UTF-8 characters in the extended cell which means
...
that 14 bytes are wasted for each character in the BMP, only store
characters of three bytes or less in the cell itself and store others
(outside the BMP or with combining characters) in a separate global
tree. Can reduce grid memory use for heavy Unicode users by around 30%.
2020-05-25 09:32:10 +00:00
Thomas Adam
e16191dbfc
Merge branch 'obsd-master'
2020-05-24 16:01:20 +01:00
nicm
14a9fd58d5
Remove leftover call to control_free_offsets and do not use for
...
non-control clients.
2020-05-24 14:45:00 +00:00
Thomas Adam
aeefd585a0
Merge branch 'obsd-master'
2020-05-24 12:01:21 +01:00
nicm
18aab90959
Give control code its own state struct.
2020-05-24 09:40:17 +00:00
nicm
6c82982711
Now the tty has a pointer back to the client there is no point (and a
...
bit confusing) in it keeping a copy of the fd as well. Remove it.
2020-05-24 09:13:06 +00:00
Thomas Adam
e71c5efd58
Merge branch 'obsd-master'
2020-05-22 18:01:20 +01: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
b3e5a99c8f
And tweak again.
2020-05-22 17:22:03 +01:00
Nicholas Marriott
6ae26a6b54
Fix utf8proc version logging.
2020-05-22 17:20:35 +01:00
Nicholas Marriott
87a59efc94
Log ncurses and utf8proc versions.
2020-05-22 17:14:35 +01:00
nicm
033d6472cb
FocusIn keys can also update the latest client, like normal keys.
2020-05-22 15:43:38 +00:00
nicm
a06a0e1392
xterm* can have focus too.
2020-05-22 15:08:38 +00:00
Thomas Adam
d48f0e114e
Merge branch 'obsd-master'
2020-05-22 13:40:33 +01:00
nicm
9a0763c3a0
Move client offset stuff into control.c since only control clients will
...
need it.
2020-05-22 11:07:04 +00:00
Thomas Adam
2420bd8584
spawn.c: fix up bad merge
2020-05-21 09:02:36 +01:00
Thomas Adam
40126ee96c
Merge branch 'obsd-master'
2020-05-21 08:55:31 +01:00
nicm
31e3f2d530
Support code for control mode flow control: allow clients to have
...
separate offsets (used and acknowleged) into the pane buffers; turn off
reading from panes when no clients can accept the data; and add a -A
flag to refresh-client to let clients turn receiving a pane on and off.
2020-05-21 07:24:13 +00:00
Nicholas Marriott
98a18d064a
Fix a regression test, size is not updated until end of event loop.
2020-05-21 08:20:37 +01:00
Thomas Adam
5ac5cd995e
Merge branch 'obsd-master'
2020-05-20 10:01:19 +01:00
nicm
6bde1c1837
Fix a couple more places where the key flags need to be masked off.
2020-05-20 07:11:45 +00:00
Thomas Adam
fa835339fd
Merge branch 'obsd-master'
2020-05-20 08:01:18 +01:00
nicm
b53e60f4c6
Remove a redundant if statement.
2020-05-20 06:18:22 +00:00
nicm
2a9e2b556a
Key strings need to include the cursor and keypad flags now since the
...
output key lookup expects them already set.
2020-05-20 06:13:09 +00:00
Thomas Adam
fb9e53ba19
Merge branch 'obsd-master'
2020-05-19 14:01:17 +01:00
Nicholas Marriott
e10f5a72ce
Add FreeBSD CI, from Jan Beich.
2020-05-19 12:34:34 +01:00
nicm
8425084b8a
Some other ctrl keys need to be translated with extended keys on.
2020-05-19 10:59:09 +00:00
Nicholas Marriott
dc56b3cd32
No paths.h.
2020-05-16 20:27:00 +01:00
Thomas Adam
2bc05db54f
remove vis.h: portable doesn't need this
2020-05-16 18:42:53 +01:00
Thomas Adam
bd87f6bf00
Merge branch 'obsd-master'
2020-05-16 18:36:35 +01:00
nicm
574a9e4b6c
Move lazy resize from the pane to the window, there is no point in
...
resizing the window unless it is the current window, and if we do and
don't resize the pane until later there are problems if the size changes
from A to B then back to A.
2020-05-16 16:50:55 +00:00
nicm
844b363baf
On select-window, make this client the latest client for the window.
2020-05-16 16:45:55 +00: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
292b335ca5
Separate key flags and modifiers, log key flags, make the "xterm" flag
...
more explicit and fix M- keys with a leading escape.
2020-05-16 16:35:13 +00:00
nicm
e2a26740b9
Add an option to set the pane border lines style from a choice of single
...
lines (ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or
number (the pane numbers). Lines that won't work on a non-UTF-8 terminal
are translated back into ACS when they are output.
2020-05-16 16:26:34 +00:00
nicm
ecbdcc256f
Add screen write flags instead of individual bits and fix line length
...
calculation with padding.
2020-05-16 16:22:01 +00:00
nicm
303d342d5f
Add a client flag 'active-pane' which stores the active pane in the
...
client and allows it to be changed independently from the real active
pane stored in the window. This is can be used with session groups which
allow an independent current window (although it would be nice to have a
flag for this too and remove session groups). The client active pane is
only really useful interactively, many things (hooks, window-style,
zooming) still use the window active pane.
2020-05-16 16:20:59 +00:00
nicm
c914abfa19
Expand target from client and use it to expand the prompt.
2020-05-16 16:16:07 +00:00
nicm
72984c4834
Move editor stuff to common code in popup.c.
2020-05-16 16:13:09 +00:00
nicm
ff8dd150e0
Add a mark in copy mode. Set with set-mark command (bound to 'X') by
...
default and the mark and cursor position are swapped with 'jump-to-mark'
(bound to M-x). The line containing the mark is shown in
copy-mode-mark-style with the horizontal position in reverse.
From Anindya Mukherjee in GitHub issue 2209.
2020-05-16 16:10:28 +00:00
nicm
dceb6a15d0
Add a -D flag to ask tmux not to daemonize, useful both for running a
...
debugger (lldb does not have follow-fork-mode) and for running with a
managed supervisor init system. GitHub issue 2190.
2020-05-16 16:07:55 +00:00
nicm
126bacb473
Do not loop forever when search finds an empty match, GitHub issue 2203.
2020-05-16 16:03:57 +00:00
nicm
592f141dee
Fix next-matching-bracket logic, from Chris Barber.
2020-05-16 16:03:30 +00:00
nicm
d67245c734
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.
2020-05-16 16:02:24 +00:00
nicm
472d77fd0f
Support embedded styles in the display-message message, GitHub issue
...
2206.
2020-05-16 15:54:20 +00:00
nicm
6ea6d46d0a
Store and restore cursor position when copy mode is resized, from
...
Anindya Mukherjee.
2020-05-16 15:49:20 +00:00
nicm
daa95810b5
Allow a custom time format to be given to the t format modifier.
2020-05-16 15:48:35 +00:00
nicm
367b4e4e0f
Change message log to be per server rather than per client and include
...
every command that is run.
2020-05-16 15:47:22 +00:00
nicm
4de0bd4c5c
Add M-+ and M-- to expand and collapse all items in tree mode.
2020-05-16 15:46:01 +00:00
nicm
cf9baddd6f
Change the existing client flags for control mode to apply for any
...
client, use the same mechanism for the read-only flag and add an
ignore-size flag.
refresh-client -F has become -f (-F stays for backwards compatibility)
and attach-session and switch-client now have -f flags also. A new
format "client_flags" lists the flags and is shown by list-clients by
default.
This separates the read-only flag from "ignore size" behaviour (new
ignore-size) flag - both behaviours are useful in different
circumstances.
attach -r and switchc -r remain and set or toggle both flags together.
2020-05-16 15:45:29 +00:00
nicm
469eda7e44
Only redraw popup on the client it belongs to.
2020-05-16 15:41:54 +00:00
nicm
4e053685df
Export TERM_PROGRAM and TERM_PROGRAM_VERSION like various other
...
terminals.
2020-05-16 15:40:44 +00:00
nicm
beb214bcb3
Add formats for after hook command arguments.
2020-05-16 15:40:04 +00:00
nicm
d056144aa1
Try to search the entire history first for up to 200 ms so a search
...
count can be shown. If it takes too long, search the visible text only.
2020-05-16 15:38:14 +00:00
nicm
3fb4d4df43
Do not need to work out status line offset, we already have it.
2020-05-16 15:36:57 +00:00
nicm
2df75aa117
Use VIS_CSTYLE for paste buffers also.
2020-05-16 15:35:19 +00:00
nicm
9605b080f6
Do not hoke into struct window_pane from the tty code and instead set
...
everything up in tty_ctx. Provide a way to initialize the tty_ctx from a
callback and use it to let popups draw directly through input_parse in
the same way as panes do, rather than forcing a full redraw on every
change.
2020-05-16 15:34:08 +00:00
nicm
379ca54c80
Rename and tidy some stuff in struct tty_ctx.
2020-05-16 15:27:08 +00:00
nicm
edeb81ba9e
Add -e for new-session to set environment variables.
2020-05-16 15:25:24 +00:00
nicm
78595457f9
Add 'e' key in buffer mode to open the buffer in an editor.
2020-05-16 15:24:28 +00:00
nicm
a3cbc014c3
Use formats for status-style and message-style.
2020-05-16 15:19:04 +00:00
nicm
58fb81d19a
Complete partial window indexes properly.
2020-05-16 15:18:17 +00:00
nicm
463864f5a2
Add -W and -T flags to command-prompt to only complete a window and a
...
target, also complete aliases.
2020-05-16 15:16:36 +00:00
nicm
2391fe23ab
Copy mode search improvements:
...
- Add styles for the search marking styles (copy-mode-match-style and
copy-mode-current-match-style).
- Show the current match (the one with the cursor on it) in a different style.
- Copying without a selection will copy the current match if there is one.
2020-05-16 15:11:52 +00:00
nicm
80e52545a0
Improve command prompt completion:
...
- Show a menu with completions if there are multiple.
- Don't complete argument stuff (options, layouts) at start of text.
- For -t and -s, if there is no : then complete sessions but if there is
a :, show a menu of all windows in the session rather than trying to
complete the window name which is a bit useless if there are
duplicates.
2020-05-16 15:06:03 +00:00
nicm
f03b61131b
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.
2020-05-16 15:01:30 +00:00
nicm
0487029fc5
Call format_defaults_window for panes as well.
2020-05-16 14:55:38 +00:00
nicm
5bf96c2f2c
Use a grid cell not a style for the pane style.
2020-05-16 14:53:23 +00:00
nicm
428137d876
Instead of forbidding invalid session names, sanitize them like window
...
names.
2020-05-16 14:49:50 +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
21a39c997b
Do not redraw or update mode if nothing has changed.
2020-05-16 14:42:06 +00:00
nicm
aebeeec1e9
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.
2020-05-16 14:39:40 +00:00
nicm
26312a7774
Move terminal features into a single file.
2020-05-16 14:30:17 +00:00
nicm
a29196ca6a
Build list of paths and weed out duplicates before loading configs, and
...
add TMUX_SOCK like TMUX_PATH for the socket directory.
2020-05-16 14:26:33 +00:00
nicm
4e0a718666
Add extension terminfo(5) capabilities for margins.
2020-05-16 14:22:51 +00:00
nicm
41dec585df
Response is iTerm2 not not ITerm2.
2020-05-16 14:18:39 +00:00
nicm
9dd58470e4
Remove support for iTerm2's DSR 1337 extension and use the CSI > q
...
extension now supported by a few different terminals.
2020-05-16 14:16:25 +00:00
nicm
471f697423
Add an attribute for ACS.
2020-05-16 14:13:37 +00:00
nicm
0dd1944206
Tweak the default choose modes formats:
...
- Only show pane title if it is not default and not empty.
- Add a prettier time format and use that instead of long ctime().
- Remove clutter and change the order.
2020-05-16 14:10:29 +00:00
Nicholas Marriott
57fe03dc5a
Move lazy resize from the pane to the window, there is no point in resizing the
...
window unless it is the current window, and if we do and don't resize the pane
until later there are problems if the size changes from A to B then back to A.
2020-05-16 14:57:36 +01:00
Nicholas Marriott
53c84fd4aa
If the application has not requested extended keys, then C-1 sends 1 not
...
nothing.
2020-05-16 07:39:22 +01:00
Nicholas Marriott
740f047a85
Need to update features after all the sequences come in.
2020-05-16 07:32:46 +01:00
Nicholas Marriott
c2167c5ee8
On select-window, make this client the latest client for the window.
2020-05-15 22:52:55 +01:00
Nicholas Marriott
e8ca5a4c7d
List needs to be sorted.
2020-05-15 19:17:56 +01:00
Nicholas Marriott
67090dd91d
XTerm not xterm.
2020-05-15 19:10:06 +01:00
Nicholas Marriott
401f197750
Er, misread this and it is not needed.
2020-05-15 18:58:13 +01:00
Nicholas Marriott
ca60aabab5
Translate special CSI u keys on input.
2020-05-15 18:25:44 +01:00
Nicholas Marriott
7317a0865c
Get == and != the right way round.
2020-05-15 17:49:58 +01:00
Nicholas Marriott
0b828b91a5
Only send XDA on 0.
2020-05-15 17:49:07 +01:00
Nicholas Marriott
dcf537519f
Fix default values for new escape sequences.
2020-05-15 17:48:21 +01:00
Nicholas Marriott
c364a7142c
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-15 17:40:24 +01:00
Nicholas Marriott
3a4f3ee087
Mask off flags bits in menu keys.
2020-05-15 16:17:20 +01: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
e6b17e77db
C-M-S keys need the implied flag also.
2020-05-15 15:11:08 +01:00
Nicholas Marriott
e23c73457a
Stop at end of buffer.
2020-05-15 15:05:49 +01:00
Nicholas Marriott
3e60ab1caf
Send conventional \033 sequences for keys with just Meta even if they came in
...
as an extended CSI u key sequence. It is much more useful for applications that
don't understand CSI u to receive \033> for M-S-. rather than \033[62;3u.
2020-05-15 13:15:12 +01:00
Nicholas Marriott
7501e297dd
Send CSI u sequences for any keys that do not have a defined sequence already -
...
this should only be similar sequences sent by the terminal outside tmux if
enabled.
2020-05-15 12:39:37 +01:00
Nicholas Marriott
340fd691cb
Separate key flags and modifiers, log key flags, make the "xterm" flag more
...
explicit and fix M- keys with a leading escape.
2020-05-15 12:16:41 +01:00
Nicholas Marriott
031d4864a9
Rename KEYC_ESCAPE to KEYC_META.
2020-05-15 11:24:30 +01:00
Nicholas Marriott
2cf967ee67
Always set xterm flag.
2020-05-15 11:20:12 +01:00
Nicholas Marriott
e95b644139
Recognise extended key sequences on input (both the forms xterm offers).
2020-05-15 11:09:32 +01:00
Nicholas Marriott
5ee4d991b6
xterm-keys has been on by default for 5 years and all other modern terminals
...
use these key sequences by default. Merge the code into the main tty and input
tree processing (convering the latter to use a tree rather than a table at the
same time) and make the option a no-op.
2020-05-15 10:31:54 +01:00
Nicholas Marriott
c4d8100b2f
Draw outside correctly with pane numbers.
2020-05-14 16:58:14 +01:00
Nicholas Marriott
bef70132ac
Check if outside the window before checking if on the border so that cells that
...
are outside in one direction but not the other are not given the wrong type.
2020-05-14 16:53:04 +01:00
Nicholas Marriott
31621036ad
Add an option to set the pane border lines style from a choice of single lines
...
(ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or number (the
pane numbers). Lines that won't work on a non-UTF-8 terminal are translated
back into ACS when they are output.
2020-05-14 16:49:08 +01:00
Nicholas Marriott
97c8374855
Tweak CHANGES.
2020-05-14 14:07:26 +01:00
Nicholas Marriott
4dc0f3ee6b
Update CHANGES.
2020-05-14 14:01:32 +01:00
Nicholas Marriott
09a66451ce
Add screen write flags instead of individual bits and fix line length
...
calculation with padding.
2020-05-14 13:18:05 +01:00
Nicholas Marriott
0bdbf47ef9
Add a client flag 'active-pane' which stores the active pane in the client and
...
allows it to be changed independently from the real active pane stored in the
window. This is can be used with session groups which allow an independent
current window (although it would be nice to have a flag for this too and
remove session groups). The client active pane is only really useful
interactively, many things (hooks, window-style, zooming) still use the window
active pane.
2020-05-14 11:18:19 +01:00
Nicholas Marriott
12eceaf2b3
Expand target from client and use it to expand the prompt.
2020-05-14 10:35:26 +01:00
Nicholas Marriott
09a2246b00
Use safe loop for freeing client files.
2020-05-13 21:11:46 +01:00
Nicholas Marriott
e6d9f3f90c
Add -Z to customize-mode binding.
2020-05-13 20:58:42 +01:00
Nicholas Marriott
3f55d05386
Tidy up border redrawing, fix some errors in how the window border connects
...
with panes.
2020-05-13 17:49:37 +01:00
Nicholas Marriott
4cb1d3d7a9
Move editor stuff to common code in popup.c.
2020-05-13 06:58:07 +01:00
Nicholas Marriott
6214cd0726
Add a mark in copy mode. Set with set-mark command (bound to 'X') by default
...
and the mark and cursor position are swapped with 'jump-to-mark' (bound to
M-x). The line containing the mark is shown in copy-mode-mark-style with the
horizontal position in reverse.
From Anindya Mukherjee in GitHub issue 2209.
2020-05-13 06:29:57 +01:00
Thomas Adam
9d44df9da9
Merge branch 'master' of github.com:tmux/tmux
2020-05-13 01:15:31 +01:00
Thomas Adam
212cf53ea9
Merge branch 'obsd-master'
2020-05-13 01:05:04 +01:00
Nicholas Marriott
ba20e46bdc
Do not log NULL text.
2020-05-12 10:36:31 +01:00
Nicholas Marriott
8d238491d0
Show default key bindings in customize mode.
2020-05-12 10:22:38 +01:00
Nicholas Marriott
5a34f51d33
Include key bindings in customize mode.
2020-05-12 08:57:55 +01:00
Nicholas Marriott
c489bf0a1e
Support embedded styles in the display-message message, GitHub issue 2206.
2020-05-11 09:18:35 +01:00
Nicholas Marriott
8502517d30
Add to CHANGES.
2020-05-10 17:06:31 +01:00
Nicholas Marriott
0070313e28
Fix comparison of tty name.
2020-05-10 16:57:33 +01:00
Nicholas Marriott
d01e7aac89
Add a -D flag to ask tmux not to daemonize, useful both for running a debugger
...
(lldb does not have follow-fork-mode) and for running with a managed supervisor
init system. GitHub issue 2190.
2020-05-10 16:52:46 +01:00
Nicholas Marriott
5fa377d927
Do not loop forever when search finds an empty match, GitHub issue 2203.
2020-05-10 10:01:20 +01:00
Nicholas Marriott
79a9a7b931
Fix next-matching-bracket logic, from Chris Barber.
2020-05-09 16:15:08 +01:00
Nicholas Marriott
532d06c399
Initialize return code in case something mysterious happens.
2020-05-09 16:08:13 +01:00
Nicholas Marriott
013d857ef8
Wrap all lines in customize mode, not just the description.
2020-05-09 15:29:14 +01:00
Nicholas Marriott
690d72adb3
Remove unused variables.
2020-05-09 14:38:00 +01:00
Nicholas Marriott
ca18990826
Fix some warnings, from Jan Polensky.
2020-05-09 14:33:25 +01:00
Nicholas Marriott
5e97d79eb1
Fix some customize mode drawing nits.
2020-05-08 22:09:31 +01:00
Nicholas Marriott
a61cbf1c33
Add a customize mode where options may be browsed and changed, includes adding
...
a brief description of each option. Bound to "C" by default.
2020-05-08 19:10:09 +01:00
nicm
aa7dccf8e1
imsg.h needs uio.h, pointed out by deraadt
2020-05-08 14:15:11 +00:00
Nicholas Marriott
708e9bc072
Allow a custom time format to be given to the t format modifier.
2020-05-07 11:04:43 +01:00
Nicholas Marriott
b0fa36734e
Fix pretty time function to actually work and allow time format to be applied
...
to any string that is suitable.
2020-05-07 09:55:06 +01:00
Nicholas Marriott
63e17d8cad
Do not use client if NULL, from Thomas Adam.
2020-05-07 05:55:42 +01:00
Nicholas Marriott
66ecb1dff4
Update CHANGES.
2020-05-06 15:48:27 +01:00
Nicholas Marriott
7a95e9bf7e
Change message log to be per server rather than per client and include every
...
command that is run.
2020-05-06 13:43:22 +01:00
Nicholas Marriott
c80fc6bf9e
Add M-+ and M-- to expand and collapse all items in tree mode.
2020-05-05 16:33:58 +01:00
Nicholas Marriott
2f89d2e7d8
Change the existing client flags for control mode to apply for any client, use
...
the same mechanism for the read-only flag and add an ignore-size flag.
refresh-client -F has become -f (-F stays for backwards compatibility) and
attach-session and switch-client now have -f flags also. A new format
"client_flags" lists the flags and is shown by list-clients by default.
This separates the read-only flag from "ignore size" behaviour (new
ignore-size) flag - both behaviours are useful in different circumstances.
attach -r and switchc -r remain and set or toggle both flags together.
2020-05-05 15:42:20 +01:00
Nicholas Marriott
deacfedc65
Remove an extra space in clients output.
2020-05-05 13:34:53 +01:00
Nicholas Marriott
32c134f5a9
Wrap a line.
2020-05-05 12:39:20 +01:00
Nicholas Marriott
23b4e1b9d8
pane_path is not #T, from Chris Rawnsley.
2020-05-05 11:35:33 +01:00
Nicholas Marriott
e810f15272
Store and restore cursor position when copy mode is resized, from Anindya
...
Mukherjee.
2020-05-05 10:20:57 +01:00
Nicholas Marriott
1f6c00f8ef
Only redraw popup on the client it belongs to.
2020-05-05 10:02:47 +01:00
Nicholas Marriott
63390d2dd6
Export TERM_PROGRAM and TERM_PROGRAM_VERSION like various other terminals.
2020-05-05 06:31:14 +01:00
Nicholas Marriott
9991a14e81
Add formats for after hook command arguments.
2020-05-05 06:19:29 +01:00
Nicholas Marriott
fc13e9bc2b
Turn off cursor in menus again.
2020-05-04 17:37:03 +01:00
Nicholas Marriott
a08f1c8c59
Merge branch '3.1b-rc'
2020-05-04 09:14:36 +01:00
Nicholas Marriott
a10c4c60cb
Add to CHANGES.
2020-05-04 09:06:57 +01:00
Nicholas Marriott
c89ed7c092
Try to search the entire history first for up to 200 ms so a search count can
...
be shown. If it takes too long, search the visible text only.
2020-05-03 15:58:29 +01:00
Nicholas Marriott
e7aeb77bd9
Use the cursor position not the current position when working out which marks
...
are current.
2020-05-03 15:44:38 +01:00
Nicholas Marriott
cb09705df3
Need musl-gcc for static also.
2020-05-03 12:37:38 +01:00
Nicholas Marriott
4fcbd6700f
Add musl builds.
2020-05-03 12:33:47 +01:00
Nicholas Marriott
ff5e3d1a88
Ugh, enable not with.
2020-05-03 12:20:08 +01:00
Nicholas Marriott
fbc8fca067
Use termcap instead.
2020-05-03 12:18:04 +01:00
Nicholas Marriott
1cfa6b0d5c
Try w/o database.
2020-05-03 12:12:47 +01:00
Nicholas Marriott
b203f7f19f
Better ncurses URL and some other fixes.
2020-05-03 12:03:50 +01:00
Nicholas Marriott
97d490204b
Add build of everything.
2020-05-03 11:47:28 +01:00
Nicholas Marriott
55901367d0
Add more stuff.
2020-05-03 11:16:30 +01:00
Nicholas Marriott
ff250aa30e
Fix exclude.
2020-05-03 11:12:51 +01:00
Nicholas Marriott
955d9d22b9
Add static build.
2020-05-03 11:09:36 +01:00
Nicholas Marriott
daef6f6b67
Merge branch '3.1b-rc'
2020-05-03 10:49:35 +01:00
Nicholas Marriott
846b99e0cb
Portable does not need sys/queue.h.
2020-05-03 10:49:16 +01:00
Nicholas Marriott
d9a4449307
Do not need to work out status line offset, we already have it.
2020-05-02 16:44:31 +01:00
Nicholas Marriott
af69289e0e
Clamping to area needs to use the offset without the status line, since that is
...
where the window offsets are based.
2020-05-02 16:17:44 +01:00
Nicholas Marriott
cb1131a294
menu_mode_cb needs to return a screen also.
2020-05-02 15:15:52 +01:00
Nicholas Marriott
e078f975c5
Update CHANGES.
2020-05-01 18:24:20 +01:00
Nicholas Marriott
bf84359dfb
Use VIS_CSTYLE for paste buffers also.
2020-05-01 17:59:13 +01:00
Nicholas Marriott
1fa9bcc183
Turn off overlay check when we know we are inside.
2020-05-01 17:55:08 +01:00
Nicholas Marriott
3f1fc9cde3
Get the whole overlay screen not just the mode so cursor changes are included.
2020-05-01 17:30:28 +01:00
Nicholas Marriott
8110c7a25f
Do not hoke into struct window_pane from the tty code and instead set
...
everything up in tty_ctx. Provide a way to initialize the tty_ctx from a
callback and use it to let popups draw directly through input_parse in the same
way as panes do, rather than forcing a full redraw on every change.
2020-05-01 17:01:36 +01:00
Nicholas Marriott
dbebdb2d36
Rename tty_pane_full_width to tty_full_width.
2020-05-01 13:22:08 +01:00
Nicholas Marriott
93dca5ab3f
Move size to tty_ctx.
2020-05-01 13:19:05 +01:00
Nicholas Marriott
5ce194f15d
Rename some tty_ctx members.
2020-05-01 13:01:55 +01:00
Nicholas Marriott
af21e76fdb
Add -e for new-session.
2020-05-01 12:01:58 +01:00
Nicholas Marriott
ec61aa3025
Solaris at least does not have _PATH_VI.
2020-05-01 09:11:56 +01:00
Nicholas Marriott
5c888e168e
Typo in man page.
2020-05-01 09:05:56 +01:00
Nicholas Marriott
cc19203be2
Add 'e' key in buffer mode to open the buffer in an editor.
2020-05-01 09:02:44 +01:00
Thomas Adam
7af5817245
Merge branch 'obsd-master'
2020-04-30 16:01:27 +01:00
Nicholas Marriott
3d33a19102
Merge tag '3.1b'
...
3.1b
2020-04-30 15:21:47 +01:00
Nicholas Marriott
6a33a12798
Do not remove the automatic-rename option from the global set, only from
...
the window (it must stay in the global set or tmux will crash). GitHub
issue 2188.
2020-04-30 15:20:08 +01:00
Nicholas Marriott
8e01221d02
Allow formats for message-style.
2020-04-30 14:59:58 +01:00
Nicholas Marriott
272f3dbf2e
Use format for status-style.
2020-04-30 14:56:46 +01:00
nicm
048f1ff18a
Do not remove the automatic-rename option from the global set, only from
...
the window (it must stay in the global set or tmux will crash). GitHub
issue 2188.
2020-04-30 13:31:22 +00:00
Nicholas Marriott
66bab1f6cf
Complete partial window indexes properly.
2020-04-30 13:05:21 +01:00
Nicholas Marriott
25487757bc
Add -W and -T flags to command-prompt to only complete a window and a target.
2020-04-30 12:02:21 +01:00
Nicholas Marriott
5af6943940
Complete aliases as well as commands.
2020-04-29 19:55:20 +01:00
Nicholas Marriott
7324442b42
Add to CHANGES.
2020-04-29 19:48:26 +01:00
Nicholas Marriott
6f700904a9
Copy mode search improvements:
...
- Add styles for the search marking styles (copy-mode-match-style and
copy-mode-current-match-style).
- Show the current match (the one with the cursor on it) in a different style.
- Copying without a selection will copy the current match if there is one.
2020-04-29 18:08:21 +01:00
Nicholas Marriott
881b8e9bb5
Handle cells outside any pane correctly.
2020-04-29 16:50:20 +01:00
Nicholas Marriott
a9743fa047
Did not mean to commit this bit.
2020-04-29 15:27:38 +01:00
Nicholas Marriott
04033add19
Close menu on backspace with TAB flag.
2020-04-29 15:26:49 +01:00
Nicholas Marriott
d9fa122fd2
Do not want -O0 by default.
2020-04-29 15:21:15 +01:00
Nicholas Marriott
fe601e5417
Update CHANGES.
2020-04-29 15:19:39 +01:00
Nicholas Marriott
b06235c345
Improve command prompt completion:
...
- Show a menu with completions if there are multiple.
- Don't complete argument stuff (options, layouts) at start of text.
- For -t and -s, if there is no : then complete sessions but if there is a :,
show a menu of all windows in the session rather than trying to complete the
window name which is a bit useless if there are duplicates.
Lots of scope for being more sophisticated left here.
2020-04-29 13:56:10 +01:00
Nicholas Marriott
7c52d702e4
Remove an unnecessary comma.
2020-04-29 08:59:20 +01:00
Nicholas Marriott
3d76748161
Need to redraw borders now when some things change. Also change default so that
...
the active border colour is different in a mode or with synchronize-panes on.
2020-04-29 08:55:21 +01:00
Nicholas Marriott
2d151d8ca5
Apply format to pane status line also.
2020-04-29 08:24:09 +01:00
Nicholas Marriott
24316bed49
Apply a format when redrawing pane borders.
2020-04-29 08:21:29 +01:00
Nicholas Marriott
c1acfb4341
Start with style initialized to default.
2020-04-28 17:27:07 +01:00
Nicholas Marriott
1f8256fc50
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.
2020-04-28 13:50:07 +01:00
Nicholas Marriott
a43a156846
Call format_defaults_window for panes as well.
2020-04-28 10:53:35 +01:00
Nicholas Marriott
79b4d83952
Use a grid cell not a style for the pane style.
2020-04-27 15:15:12 +01:00
Nicholas Marriott
c30e765c7b
Add some additional format helper functions.
2020-04-27 14:33:17 +01:00
Thomas Adam
e62db55713
Merge branch 'obsd-master'
2020-04-27 10:01:27 +01:00
Nicholas Marriott
266bbba484
Merge branch '3.1a-rc'
2020-04-27 09:39:17 +01:00
Nicholas Marriott
d0fa520788
Update CHANGES.
2020-04-27 09:38:04 +01:00
Nicholas Marriott
646bfe403e
Do not close stdout file descriptor in control mode since it will be needed for
...
printing the exit messages.
2020-04-27 09:36:30 +01:00
nicm
1574126e8a
Do not close the stdout file descriptor in control mode as it will be
...
needed for printing the exit messages. Fixes a bug when detaching with
iTerm2.
2020-04-27 08:35:09 +00:00
Nicholas Marriott
5811dd7ceb
Do not close stdout file descriptor in control mode since it will be needed for
...
printing the exit messages.
2020-04-27 09:33:46 +01:00
Nicholas Marriott
f3d6d4e802
CUD is not a requirement and tweak some comments.
2020-04-24 16:47:38 +01:00
Nicholas Marriott
9b571dacee
Instead of forbidding invalid session names, sanitize them.
2020-04-24 16:40:10 +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
e67d65064e
rxvt needs XT also for the moment.
2020-04-24 14:20:33 +01:00
Nicholas Marriott
c107708bcc
Focus reporting no longer under XT.
2020-04-24 14:20:17 +01:00
Nicholas Marriott
a477c03ad5
Do not update mode until actually drawing something.
2020-04-24 12:14:53 +01:00
Nicholas Marriott
ae73fd363b
Do not redraw at all if nothing has changed.
2020-04-24 11:56:44 +01:00
Nicholas Marriott
650d38962f
tmux 3.1.
2020-04-24 09:57:49 +01:00
Nicholas Marriott
bb107d2979
All of this stuff can be const.
2020-04-24 07:47:16 +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
2d8fd35de2
Add a feature for strikethrough.
2020-04-24 06:51:15 +01:00
Nicholas Marriott
8650f44340
Move terminal features into a single file.
2020-04-24 06:40:51 +01:00
Thomas Adam
ca13208b6b
Merge branch 'obsd-master'
2020-04-24 00:01:27 +01:00
jmc
18886cb510
ce examples of "Ar arg Ar arg" with "Ar arg arg" and stop the spread;
2020-04-23 21:28:09 +00:00
Nicholas Marriott
d1c1e05ea7
Update CHANGES.
2020-04-23 18:27:27 +01:00
Nicholas Marriott
d53e1fedd5
Add TMUX_SOCK like TMUX_PATH for the socket directory.
2020-04-23 18:15:02 +01:00
Nicholas Marriott
0d3fdae7b6
Build list of paths and weed out duplicates before loading configs.
2020-04-23 17:56:45 +01:00
Nicholas Marriott
f87be8d052
Add XDG_CONFIG home to the configuration search paths.
2020-04-23 17:27:39 +01:00
Nicholas Marriott
351c5423f0
time.h is needed.
2020-04-23 16:55:20 +01:00
Nicholas Marriott
ac91635f82
Add extension terminfo(5) capabilities for margins.
2020-04-23 12:12:02 +01:00
Nicholas Marriott
0c73dbb7e1
Response is iTerm2 not not ITerm2.
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
Nicholas Marriott
c74572da92
Remove support for iTerm2's DSR 1337 extension and use the CSI > q extension
...
now supported by a few different terminals.
2020-04-23 10:29:03 +01:00
Thomas Adam
e94a15b3d6
Merge branch 'obsd-master'
2020-04-23 10:01:26 +01:00
Nicholas Marriott
1a612a5936
Add an attribute for ACS.
2020-04-23 07:15:17 +01:00
nicm
e25fa4ba1b
Fix a couple of memory leaks, one when creating a new pane and one when
...
adding formats onto the queue item.
2020-04-23 05:48:42 +00:00
nicm
906dfe9f5c
Fix a couple of memory leaks, one when creating a new pane and one when
...
adding formats onto the queue item.
2020-04-23 05:48:42 +00:00
Nicholas Marriott
106e5d07be
Tweak the default choose modes formats:
...
- Only show pane title if it is not default and not empty.
- Add a prettier time format and use that instead of long ctime().
- Remove clutter and change the order.
2020-04-23 06:30:15 +01:00
Thomas Adam
63f2034f29
Merge branch 'obsd-master'
2020-04-23 04:01:30 +01:00
Thomas Adam
cf5f93b2b3
Merge branch 'obsd-master'
2020-04-23 02:01:33 +01:00
nicm
e46cf86d30
Improve join-pane, move-pane and break-pane:
...
- There is no need for join-pane and move-pane to be different.
- break-pane can just behave like move-window if the source has only one
pane, instead of failing.
- Add -a to break-pane like move-window.
Also add missing man page bits for previous window-tree.c changes.
GitHub issue 2176.
2020-04-22 21:15:33 +00:00
nicm
950af33636
Improve join-pane, move-pane and break-pane:
...
- There is no need for join-pane and move-pane to be different.
- break-pane can just behave like move-window if the source has only one
pane, instead of failing.
- Add -a to break-pane like move-window.
Also add missing man page bits for previous window-tree.c changes.
GitHub issue 2176.
2020-04-22 21:15:33 +00:00
Thomas Adam
4a31eedc26
Merge branch 'obsd-master'
2020-04-22 22:01:35 +01:00
nicm
4b21fd2ed1
Indicate the marked pane in choose mode in reverse and add key to set
...
and clear it (m and M) and a key to jump to the starting pane (H).
2020-04-22 21:01:28 +00:00
nicm
899b3d2436
Indicate the marked pane in choose mode in reverse and add key to set
...
and clear it (m and M) and a key to jump to the starting pane (H).
2020-04-22 21:01:28 +00:00
nicm
662728d6c7
Add a session_marked format like window_marked.
2020-04-22 20:47:00 +00:00
Thomas Adam
b4a21b5d80
Merge branch 'obsd-master'
2020-04-22 14:01:33 +01:00
Nicholas Marriott
bb31776dd3
Merge branch '3.1-rc'
2020-04-22 13:00:43 +01:00
Nicholas Marriott
ccd7368cc5
Update CHANGES.
2020-04-22 12:59:50 +01:00
Nicholas Marriott
ecb6db6b6a
Update CHANGES.
2020-04-22 12:59:10 +01:00
Nicholas Marriott
d4826aa1aa
Nope, OS X kqueue is still broken...
...
This reverts commit 94c90385d2e728a4d37a25ce78b55b2ffeb429f9.
2020-04-22 12:18:11 +01:00
Nicholas Marriott
df1bce40f0
Call the event_init wrapper again.
2020-04-22 12:09:25 +01:00
Thomas Adam
8ae3915cc2
Merge branch 'obsd-master'
2020-04-22 12:01:38 +01:00
nicm
4b5a16567a
Update the cursor position when deleting lines from screens without
...
history, GitHub issue 2173.
2020-04-22 08:48:44 +00:00
nicm
b72498c4ff
Update the cursor position when deleting lines from screens without
...
history, GitHub issue 2173.
2020-04-22 08:48:44 +00:00
nicm
5935100181
Change so main-pane-width and height can be given as a percentage.
2020-04-22 06:57:13 +00:00
nicm
de5163a634
Change so main-pane-width and height can be given as a percentage.
2020-04-22 06:57:13 +00:00
Thomas Adam
dd5299841a
Merge branch 'obsd-master'
2020-04-21 16:01:30 +01:00
nicm
445dfa8512
Move the background colour to clear with (if any) up as well as the data
...
when scrolling, redraw problem reported by sthen@.
2020-04-21 13:48:56 +00:00
Thomas Adam
291b85746f
Merge branch 'obsd-master'
2020-04-21 14:01:25 +01:00
Thomas Adam
2cbca7ce16
Merge branch 'obsd-master'
2020-04-21 12:01:35 +01:00
nicm
9a60d41db4
256 and RGB features can imply AX (for aixterm colours).
2020-04-21 10:37:11 +00:00
nicm
bd91015b13
256 and RGB features can imply AX (for aixterm colours).
2020-04-21 10:37:11 +00:00
Thomas Adam
985bc0ee4a
Merge branch 'obsd-master'
2020-04-21 08:01:30 +01:00
nicm
18671a27b6
Turn off the block flag to reset the state or the cursor will not be
...
moved back to the right place.
2020-04-21 06:34:13 +00:00
nicm
57bd6e0447
Turn off the block flag to reset the state or the cursor will not be
...
moved back to the right place.
2020-04-21 06:34:13 +00:00
nicm
d524cb64e7
Do not clear client pane redraw flags until the redraw actually happens.
2020-04-21 06:32:40 +00:00
nicm
d0b8f5340e
Do not clear client pane redraw flags until the redraw actually happens.
2020-04-21 06:32:40 +00:00
nicm
1cabccbb2b
xterm* needs XT also.
2020-04-21 05:26:13 +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
4a5182e665
Always start sync for output in panes that are not the active pane.
2020-04-20 15:49:05 +00:00
nicm
117ec1b2e6
Apply terminal-overrides after terminal detection, it always takes
...
precedence.
2020-04-20 15:37:32 +00:00
nicm
2083a6ea20
Change how sync works to always send the end sequence after all output
...
is done when we are returning to the event loop (since we always move
the cursor at that point). Also a man fix from jmc.
2020-04-20 14:59:31 +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
3898d4e7c8
Merge branch 'obsd-master'
2020-04-20 12:01:32 +01:00
nicm
86862c976a
Also redraw panes which aren't pane 0. Problem reported by tb@.
2020-04-20 09:07:55 +00:00
Thomas Adam
b1be668a3e
Merge branch 'obsd-master'
2020-04-20 08:01:31 +01:00
nicm
b846ec2665
Only trim blank lines when the source pane is not the target pane,
...
otherwise the cursor moves which is a bit strange.
2020-04-20 06:08:37 +00:00
nicm
4bc0a83d51
Need to check for pane redrawing even if just the window flag is set
...
(the pane flag may not have been previously set to avoid looping the
windows).
2020-04-20 06:07:39 +00:00
Thomas Adam
8c9bbc3749
Merge branch 'obsd-master'
2020-04-19 00:01:31 +01:00
nicm
62ff5e4b01
The PANE_REDRAW flag bit might be needed by other panes so we can't
...
clear it on the first redraw, and it can't be set when we are finished
or they would be redrawn again, so if the redraw is deferred for a
client, copy the redraw flag into a separate set of bits just for that
client.
2020-04-18 21:35:32 +00:00
Thomas Adam
7da5418758
Merge branch 'obsd-master'
2020-04-18 20:01:29 +01:00
nicm
100db552d1
A resize can realloc so cannot cache the value of the list pointer.
2020-04-18 17:20:25 +00:00
Thomas Adam
2b83ee5557
Merge branch 'obsd-master'
2020-04-18 18:01:28 +01:00
nicm
deffef6f13
Reset background colour on scrolled line.
2020-04-18 15:22:05 +00:00
nicm
ea5fdd5331
There is no point in keeping a bunch of different text buffers for each
...
line when writing, we only need one as big as the line width - there
can't be any more text than that since newer will overwrite older.
2020-04-18 15:12:28 +00:00
Thomas Adam
2ccf15e5d8
Merge branch 'obsd-master'
2020-04-18 16:01:34 +01:00
nicm
4a93294152
Use size_t not u_int for the bytes counters and fix a const missing.
2020-04-18 14:21:39 +00:00
Thomas Adam
d55510ebc8
Merge branch 'obsd-master'
2020-04-18 12:01:31 +01:00
Nicholas Marriott
94c90385d2
Apple appear to have fixed kqueue in some OS X version (will wonder never
...
cease!) so use it since it appears to be faster.
2020-04-18 11:45:49 +01:00
Thomas Adam
e1799ed7c8
Merge branch 'obsd-master'
2020-04-18 10:01:31 +01:00
nicm
c87595326c
Use peek line function instead of hoking in the array directly.
2020-04-18 09:00:31 +00:00
nicm
b0a37e7514
Bring back previons fix to only redraw panes that need it after a redraw
...
is deferred, but clear the pane flags when they are actually redrawn
rather than every time.
2020-04-18 07:32:53 +00:00
nicm
e153b928ff
Add formats for pane written/skipped bytes for debugging.
2020-04-18 07:19:28 +00:00
Thomas Adam
349617a818
Merge branch 'obsd-master'
2020-04-18 08:01:37 +01:00
nicm
baf1fca273
Only update mode when actually going to redraw something.
2020-04-18 06:52:36 +00:00
nicm
1d2bd864f2
Add a flag to protect against nested syncs and add some extra logging to
...
redrawing.
2020-04-18 06:20:50 +00:00
nicm
d94bdf7420
Revert previous, there is still a problem.
2020-04-18 06:15:07 +00:00
nicm
5289d4ed13
When a redraw is deferred because the terminal hasn't finished reading
...
the data from the last one, other panes could update while waiting, so
we set the flag to redraw them all when the new redraw actually
happened. But this means a lot of redrawing panes unnecessarily if they
haven't changed - so instead set a flag to say "at least one pane needs
to be redrawed" then look at the invidual pane flags to see which ones
need it.
2020-04-18 06:10:15 +00:00
Thomas Adam
87d79e6d36
Merge branch 'obsd-master'
2020-04-18 00:01:30 +01:00
nicm
a7a9460d27
Set mode properly before and after redrawing, and don't bother
...
calculating cursor position if it won't be used.
2020-04-17 22:16:28 +00:00
nicm
a877a5d8c9
Do not move the cursor to the existing y position if it is invalid, go
...
home instead.
2020-04-17 21:33:18 +00:00
Thomas Adam
857fca1095
Merge branch 'obsd-master'
2020-04-17 18:01:30 +01:00
nicm
bbd6e899a8
There is no point allocating a new item and putting it on the list when
...
the whole line is cleared line, there is never any point in doing it
more than once. Instead store the background colour alone.
2020-04-17 15:44:58 +00:00
Thomas Adam
7a21e911e1
Merge branch 'obsd-master'
2020-04-17 16:01:33 +01:00
nicm
282a7a8d96
Make sure the cursor position is still on screen after we have trimmed
...
empty lines. Also improve some log messages.
2020-04-17 14:06:42 +00:00
Thomas Adam
abeb31dd3d
Merge branch 'obsd-master'
2020-04-17 12:01:30 +01:00
nicm
7f2925a01d
Support the application escape sequence mintty (means tmux doesn't have
...
to delay to wait for Escape).
2020-04-17 09:06:10 +00:00
Thomas Adam
413c4cfd1b
Merge branch 'obsd-master'
2020-04-17 10:01:38 +01:00
nicm
5aba26f2cb
Add a copy-command option and change copy-pipe and friends to pipe to it
...
if used without arguments, allows all copy key bindings to be changed to
pipe with one option.
2020-04-17 08:03:22 +00:00
Thomas Adam
2846be326a
Merge branch 'obsd-master'
2020-04-17 00:01:35 +01:00
nicm
5f18844b32
Return to sending sync around clears.
2020-04-16 21:46:43 +00:00
nicm
d8433add47
Do not need to set up a tty context for clearing lines now.
2020-04-16 21:16:24 +00:00
nicm
d90ca7ecd6
Collect up line clears like text within the available data so we don't
...
need to flush everything.
2020-04-16 20:32:51 +00:00
Thomas Adam
9edef17698
Merge branch 'obsd-master'
2020-04-16 20:01:31 +01:00
nicm
c1b015f24e
Log what caused a flush for better visibility on what could be improved.
2020-04-16 17:24:28 +00:00
nicm
9311ed049b
Start menu with top item selected if no mouse, GitHub issue 2169.
2020-04-16 17:20:23 +00:00
Thomas Adam
21eb2ba419
Merge branch 'obsd-master'
2020-04-16 18:01:32 +01:00
nicm
2e347d6a38
Only start and stop sync for operations like clear and scroll where
...
there is a better chance more data will be on the way.
2020-04-16 16:13:56 +00:00
nicm
363d950ac0
Send secondary device attributes instead of primary which gives us a bit
...
more useful information on some terminals.
2020-04-16 15:14:25 +00:00
Thomas Adam
5e38d26257
Merge branch 'obsd-master'
2020-04-16 16:01:35 +01:00
nicm
5ec80bd249
Move the UTF-8 flag to terminal flags.
2020-04-16 14:25:35 +00:00
nicm
4744aa43af
Add a helper function to get the terminal flags.
2020-04-16 14:03:51 +00:00
nicm
b2443aa2f9
Add support for the iTerm2 sychronized updates escape sequence which
...
drastically reduces flickering.
2020-04-16 13:35:24 +00:00
Nicholas Marriott
b3cadf8260
Fix sys_signame check.
2020-04-16 10:15:33 +01:00
Nicholas Marriott
1aa2845026
Check for sys_signame.
2020-04-16 10:08:16 +01:00
Thomas Adam
dd66ede38b
Merge branch 'obsd-master'
2020-04-16 10:01:33 +01:00
nicm
a2e47b5279
Show signal name when process exits rather than number.
2020-04-16 07:28:36 +00:00
Thomas Adam
3aa1e5810c
Merge branch 'obsd-master'
2020-04-16 08:01:26 +01:00
nicm
b6dfca9b4d
Don't miss the last line off the screen when writing after resize, from
...
Anindya Mukherjee.
2020-04-16 05:22:08 +00:00
Thomas Adam
8dc06446ec
Merge branch 'obsd-master'
2020-04-15 22:01:31 +01:00
nicm
fc1855f514
Clear the selection and repeat the search on refresh same as resize.
2020-04-15 19:06:49 +00:00
Thomas Adam
6d6309014e
Merge branch 'obsd-master'
2020-04-15 20:01:27 +01:00
nicm
53a29a2ffa
Instead of fixing with the cursor position when the copied screen is
...
created, resize it and let the resize/reflow code fix it up and return
it. Solves various problems with cursor position and resizing when in
copy mode. With Anindya Mukherjee.
2020-04-15 17:50:02 +00:00
Thomas Adam
ebeb457385
Merge branch 'obsd-master'
2020-04-15 18:01:27 +01:00
nicm
1e72f5ea43
Use mode-style for selected items, like choose modes. GitHub issue 2166.
2020-04-15 16:11:23 +00:00
Thomas Adam
fe1778e377
Merge branch 'obsd-master'
2020-04-15 16:01:27 +01:00
nicm
c7883d5c87
Use grid_empty_line rather than memset when adding new lines on resize.
...
Also remove some old test code.
2020-04-15 12:59:20 +00:00
Nicholas Marriott
c2c9b77f14
Do not use the command if the kernel didn't return the full size.
2020-04-15 13:04:53 +01:00
Thomas Adam
533c5ee7ad
Merge branch 'obsd-master'
2020-04-14 22:01:27 +01:00
nicm
b9a00cbe8a
Leave the cursor above empty lines.
2020-04-14 19:07:10 +00:00
nicm
e11295f42d
Adjust cursor and scroll positions when entering copy mode so that the
...
cursor line is still visible even if the source and target panes are
different heights.
2020-04-14 18:33:01 +00:00
Thomas Adam
c68291f627
Merge branch 'obsd-master'
2020-04-14 16:01:27 +01:00
nicm
1ef9a69f4f
Send keys when they are complete not before (!= vs ==).
2020-04-14 13:22:05 +00:00
Thomas Adam
6d9b3704f5
Merge branch 'obsd-master'
2020-04-14 08:01:33 +01:00
nicm
63ec791854
Provide an accessor for the running queue item and use it to not let
...
hooks recurse.
2020-04-14 06:00:52 +00:00
Thomas Adam
653a159225
Merge branch 'obsd-master'
2020-04-14 00:01:41 +01:00
Thomas Adam
2159ff3256
Merge branch 'obsd-master'
2020-04-13 22:01:30 +01:00
nicm
fc83517913
Missed a few warnings in previous.
2020-04-13 20:54:15 +00:00
nicm
3f7f9a0e20
Make client -c and -t handling common in cmd-queue.c and try to be
...
clearer about whether the client is the target client (must have a
session) or not.
2020-04-13 20:51:57 +00:00
nicm
187277eaad
Add helpers for the simple case of parse string and add to command queue.
2020-04-13 18:59:41 +00:00
Thomas Adam
acc00cd13a
Merge branch 'obsd-master'
2020-04-13 18:01:43 +01:00
nicm
34804f2709
When parsing strings, put all commands in one group even if there are
...
newlines. This means that for example bind q { a \n b } and bind q "a ;
b" are the same. Also log commands in different groups separated by ;;
rather than ; (a command list like this should never be user visible).
2020-04-13 16:19:37 +00:00
nicm
3f86d6d460
When adding a list of commands to the queue, instead of automatically
...
creating a new state for each group of commands, require the caller to
create one and use it for all the commands in the list. This means the
current target works even with list with multiple groups (which can
happen if they are defined with newlines).
2020-04-13 15:55:51 +00:00
Thomas Adam
0a11f1607b
Merge branch 'obsd-master'
2020-04-13 16:01:46 +01:00
nicm
adb76fd1ce
Move cmdq_state into cmd-queue.c.
2020-04-13 14:46:04 +00:00
nicm
9a65102bfc
Rename cmdq_shared to cmdq_state which will better reflect what it is
...
(going to be) used for.
2020-04-13 14:04:25 +00:00
nicm
77d5b0cc53
Store a key event not a mouse event in the shared data.
2020-04-13 13:42:35 +00:00
nicm
53d6b94e8a
Move the NOHOOKS flag into the shared flags.
2020-04-13 13:32:09 +00:00
Thomas Adam
8f2b5d714a
Merge branch 'obsd-master'
2020-04-13 14:01:45 +01:00
nicm
04cdd03525
Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make its
...
use more clearly defined and preparation for some future work).
2020-04-13 10:59:58 +00:00
Thomas Adam
b117c3b812
Merge branch 'obsd-master'
2020-04-13 10:30:00 +01:00
nicm
c20eb0c0ae
Make struct cmd local to cmd.c and move it out of tmux.h.
2020-04-13 08:26:27 +00:00
nicm
9cbe9675ea
Change so that the appropriate hooks for windows and panes belong to
...
pane/window options rather than all being session options. This is
useful for example to create a pane that is automatically closed on some
condition. From Anindya Mukherjee.
2020-04-13 07:25:33 +00:00
nicm
ad38ef6ff4
Print empty arguments properly.
2020-04-12 20:54:28 +00:00
nicm
de6b30a51c
Mention RGB, pointed out by Jody Frankowski.
2020-04-12 20:16:36 +00:00
nicm
da4034944d
Add a -f filter argument to the list commands like choose-tree.
2020-04-12 08:36:18 +00:00
nicm
756591b4ca
Add a -f filter argument to the list commands like choose-tree.
2020-04-12 08:36:18 +00:00
nicm
70534cfde6
Clarify a couple of style options.
2020-04-12 08:13:41 +00:00
nicm
1c433f1354
Remove unused define, also a man fix from jmc.
2020-04-10 20:53:54 +00:00
nicm
c0602f357d
Now that copy mode copies the pane content rather than keeping a
...
reference to it, it isn't necessary that the pane in copy mode is the
same as the one copying from. Add a -s flag to copy-mode to specify a
different pane for the source content. This means it is possible to view
two places in a pane's history at the same time in different panes, or
copy from a pane's history into an editor or shell in the same pane.
From Anindya Mukherjee.
2020-04-10 07:44:26 +00:00
nicm
a1fc8f8b23
More style nits.
2020-04-09 15:35:27 +00:00
Thomas Adam
52e3d960e7
Merge branch 'obsd-master'
2020-04-09 16:01:45 +01:00
nicm
26f5dfbe46
Fix history-bottom to use the right line when working out the length.
2020-04-09 14:30:28 +00:00
nicm
e9e5facb0e
Some minor style nits.
2020-04-09 14:23:34 +00:00
nicm
b0b07fb585
Tweak how the default size is worked out so it is more obvious.
2020-04-09 13:57:18 +00:00
nicm
886fdb1f7e
A couple of other redundant checks/assignments.
2020-04-09 13:56:46 +00:00
nicm
5288801d3e
Do not try to use the client if the item containing it is NULL.
2020-04-09 13:54:38 +00:00
nicm
315961faec
Some more, and use of wp->window before wp NULL check in format.c.
2020-04-09 13:53:50 +00:00
nicm
b96ac80901
Some unnecessary assignments and unused variables.
2020-04-09 13:52:31 +00:00
nicm
c4d0089edb
Pass correct flags to fnmatch.
2020-04-09 13:49:21 +00:00
Thomas Adam
916c3787d7
Merge branch 'obsd-master'
2020-04-09 14:01:32 +01:00
Thomas Adam
9e0e860031
Merge branch 'obsd-master'
2020-04-09 13:41:59 +01:00
nicm
0e8710f507
Wait until the initial command sequence is done before sending a device
...
attributes request and other bits that prompt a reply from the terminal.
This means that stray relies are not left on the terminal if the command
has attached and then immediately detached and tmux will not be around
to receive them. Prompted by a problem report from espie@.
2020-04-09 12:16:16 +00:00
nicm
ff135b34a4
Mention paste at same place as copy, suggested by John Boyle.
2020-04-09 06:28:55 +00:00
nicm
5d0eb619f1
Restore pane_current_path format from portable tmux, it is no longer
...
used by default and is very useful.
2020-04-08 11:26:07 +00:00
nicm
d388dbdea9
Pass the cmd item to format expansion so that mouse formats work.
2020-04-08 10:58:09 +00:00
Thomas Adam
6a2f32b4fd
Merge branch 'obsd-master'
2020-04-07 16:01:29 +01:00
nicm
1c8f7c1f7a
Do not restore history flag if it was never set.
2020-04-07 13:55:24 +00:00
nicm
eff881b15a
Do not send mouse events if the program has not requested them.
2020-04-07 13:38:30 +00:00
nicm
a2efdb21a8
Limit size to 1x1 (total size 3x3).
2020-04-07 13:33:00 +00:00
Thomas Adam
8fa0b0cd26
Merge branch 'obsd-master'
2020-04-06 20:01:33 +01:00
nicm
77b827f879
Change copy mode to make copy of the pane history so it does not need to
...
freeze updates (which does not play nicely with some applications, a
longstanding problem) and will allow some other changes later. From
Anindya Mukherjee.
2020-04-06 17:51:34 +00:00
Nicholas Marriott
0953b994ff
Merge branch '3.1-rc'
2020-04-06 16:17:34 +01:00
Nicholas Marriott
9077b212c3
job_run needs fewer arguments.
2020-04-06 16:14:09 +01:00
Nicholas Marriott
a4e19bcd80
Various fixes for copy mode from master.
2020-04-06 16:09:49 +01:00
nicm
bc36b473f1
Check previous line rather than an extra line, from Anindya Mukherjee.
2020-04-06 16:07:20 +01:00
nicm
10975961de
Only search the visible part of the history when marking (highlighting)
...
search terms, much faster than searching the whole history.
2020-04-06 16:06:14 +01:00
nicm
8d2af4fb54
Add a 10 second timeout to prevent searches taking too much time, from
...
Anindya Mukherjee.
2020-04-06 16:04:51 +01:00
nicm
ac050b2583
Stop logging the entire command queue every time we add something,
...
spotted by tb & sthen.
2020-04-06 16:04:10 +01:00
nicm
3234017260
Add an argument to list-commands to show only a single command.
2020-04-06 16:03:39 +01:00
nicm
938ad5a98c
Use new window and new pane as well for -P to new-session or new-window.
2020-04-06 16:03:33 +01:00
Thomas Adam
71ab50eddd
Merge branch 'obsd-master'
2020-04-06 04:01:42 +01:00
nicm
fccce69cf0
Add an argument to list-commands to show only a single command.
2020-04-05 08:40:31 +00:00
nicm
832b8a8cf5
Use new window and new pane as well for -P to new-session or new-window.
2020-04-03 13:54:31 +00:00
nicm
c9b9b0c7c3
Stop logging the entire command queue every time we add something,
...
spotted by tb & sthen.
2020-04-03 12:59:22 +00:00
nicm
b65eab5505
Check previous line rather than an extra line, from Anindya Mukherjee.
2020-04-03 05:18:02 +00:00
Thomas Adam
450315aa74
Merge branch 'obsd-master'
2020-04-02 20:01:26 +01:00
nicm
a20d96000e
Only search the visible part of the history when marking (highlighting)
...
search terms, much faster than searching the whole history.
2020-04-02 17:03:10 +00:00
Thomas Adam
9bcf5c0b90
Merge branch 'obsd-master'
2020-04-02 08:01:29 +01:00
nicm
90f4e149c1
Add a W position to display-menu -y to use the line above (or below) the
...
status line containing the window list. Leave S meaning above (or below)
all status lines. GitHub issue 2145.
2020-04-02 05:35:15 +00:00
Thomas Adam
7e6db00dd2
Merge branch 'obsd-master'
2020-04-01 14:01:25 +01:00
nicm
05a15215c5
Do not ignore triple-click and send to pane.
2020-04-01 11:47:44 +00:00
Thomas Adam
66db12db31
Merge branch 'obsd-master'
2020-04-01 12:01:27 +01:00
nicm
567b27e10a
Add a 10 second timeout to prevent searches taking too much time, from
...
Anindya Mukherjee.
2020-04-01 09:36:37 +00:00
Nicholas Marriott
faf2ed48fb
Merge branch '3.1-rc'
2020-04-01 10:10:48 +01:00
Nicholas Marriott
9f378a163f
3.1-rc4.
2020-04-01 10:09:49 +01:00
nicm
a5922546ac
Do not go down the regex search path (which is expensive because we need
...
to convert the grid data into a string for regexec and reverse it to
find the grid position) if the search string does not contain any regex
special characters.
2020-04-01 10:09:03 +01:00
nicm
3476eccf48
Use a comparison to check for wrap and avoid an expensive modulus.
2020-04-01 10:08:54 +01:00
nicm
0dbf414578
Performance improvements for regex searching, most notably:
...
- Use the grid data directly instead of copying it.
- Special case the most typical one byte character cells and use memcmp
for multiple bytes instead of a handrolled loop.
- Hoist regcomp out of the loop into the calling functions.
GitHub issue 2143.
Also a man page from from jmc@.
2020-04-01 10:08:39 +01:00
nicm
8dedccaa20
Add non-regex search variants to avoid the performance cost for people
...
with large histories or long lines.
2020-04-01 10:08:09 +01:00
nicm
dd2fdcda79
Support mouse in popups.
2020-04-01 09:05:27 +00:00
Thomas Adam
e54d4e7fe0
Merge branch 'obsd-master'
2020-04-01 10:01:30 +01:00
Nicholas Marriott
0ced25ce50
Fix configure.ac.
2020-04-01 09:30:29 +01:00
Nicholas Marriott
1d4cdbc227
Merge branch '3.1-rc'
2020-04-01 09:30:12 +01:00
Nicholas Marriott
e5fd85415d
Update CHANGES.
2020-04-01 09:29:44 +01:00
Nicholas Marriott
b8356c650a
Update CHANGES.
2020-04-01 09:29:02 +01:00
nicm
cd30633d10
Do not go down the regex search path (which is expensive because we need
...
to convert the grid data into a string for regexec and reverse it to
find the grid position) if the search string does not contain any regex
special characters.
2020-04-01 08:07:05 +00:00
nicm
b66d62d2d0
Do not go down the regex search path (which is expensive because we need
...
to convert the grid data into a string for regexec and reverse it to
find the grid position) if the search string does not contain any regex
special characters.
2020-04-01 08:07:05 +00:00
nicm
c129ed3233
Use a comparison to check for wrap and avoid an expensive modulus.
2020-04-01 07:52:07 +00:00
nicm
46092f2760
Use a comparison to check for wrap and avoid an expensive modulus.
2020-04-01 07:52:07 +00:00
nicm
89d2a20e56
Performance improvements for regex searching, most notably:
...
- Use the grid data directly instead of copying it.
- Special case the most typical one byte character cells and use memcmp
for multiple bytes instead of a handrolled loop.
- Hoist regcomp out of the loop into the calling functions.
GitHub issue 2143.
Also a man page from from jmc@.
2020-04-01 07:35:10 +00:00
nicm
46ed81fc45
Performance improvements for regex searching, most notably:
...
- Use the grid data directly instead of copying it.
- Special case the most typical one byte character cells and use memcmp
for multiple bytes instead of a handrolled loop.
- Hoist regcomp out of the loop into the calling functions.
GitHub issue 2143.
Also a man page from from jmc@.
2020-04-01 07:35:10 +00:00
Thomas Adam
bb6630af31
Merge branch 'obsd-master'
2020-04-01 00:01:25 +01:00
Thomas Adam
dfd29977e0
Merge branch 'obsd-master'
2020-03-31 20:01:34 +01:00
nicm
38f1546a66
Add a way to mark environment variables as "hidden" so they can be used
...
by tmux but are not passed into the environment of new panes.
2020-03-31 17:14:40 +00:00
nicm
cc8b41f294
Add a way to mark environment variables as "hidden" so they can be used
...
by tmux but are not passed into the environment of new panes.
2020-03-31 17:14:40 +00:00
nicm
e221ef203c
Add a -T flag to resize-pane to trim lines below the cursor, moving
...
lines out of the history. GitHub issue 2134.
2020-03-31 17:13:20 +00:00
nicm
e6cddcf752
Add a -T flag to resize-pane to trim lines below the cursor, moving
...
lines out of the history. GitHub issue 2134.
2020-03-31 17:13:20 +00:00
nicm
e6d1b6770c
Add non-regex search variants to avoid the performance cost for people
...
with large histories or long lines.
2020-03-31 16:53:23 +00:00
nicm
2624edde46
Add non-regex search variants to avoid the performance cost for people
...
with large histories or long lines.
2020-03-31 16:53:23 +00:00
Thomas Adam
0bb1a50b88
Merge branch 'obsd-master'
2020-03-31 16:01:29 +01:00
nicm
2ca95840d1
Add session_path from Chris Ruegge in GitHub issue 2142.
2020-03-31 11:58:05 +00:00
nicm
2a4714e76b
Add session_path from Chris Ruegge in GitHub issue 2142.
2020-03-31 11:58:05 +00:00
nicm
0dd4977d5c
Add a "second click" key type which is fired for the second click of a
...
double click, even if the timer hasn't expired to confirm it isn't
actually a triple click. Provides a way for people who don't care about
triple clicks or can make their commands have no side effects to avoid
the double click timer delay.
2020-03-31 11:38:35 +00:00
nicm
01b3bb8e2c
Add a "second click" key type which is fired for the second click of a
...
double click, even if the timer hasn't expired to confirm it isn't
actually a triple click. Provides a way for people who don't care about
triple clicks or can make their commands have no side effects to avoid
the double click timer delay.
2020-03-31 11:38:35 +00:00
Thomas Adam
c9cd8f9b5d
Merge branch 'obsd-master'
2020-03-31 10:01:29 +01:00
nicm
3bbd66c013
Move alternate screen into the screen rather than the pane.
2020-03-31 07:00:34 +00:00
nicm
eedf059d00
Detach reply escape sequences from the pane so they work in popups.
2020-03-31 06:35:38 +00:00
Thomas Adam
588865152a
Merge branch 'obsd-master'
2020-03-30 18:01:28 +01:00
nicm
1fb504d0d5
Tweak key numbers to avoid some special keys crossing over with modifier bits.
2020-03-30 16:16:48 +00:00
nicm
34de379c7d
Add to rather than replace flags with -c.
2020-03-30 15:49:23 +00:00
Nicholas Marriott
a46916b452
Tweak text.
2020-03-30 14:18:29 +01:00
Nicholas Marriott
df633c527d
Add to CHANGES.
2020-03-30 14:17:58 +01:00
Thomas Adam
aa264ae568
Merge branch 'obsd-master'
2020-03-30 12:01:25 +01:00
Thomas Adam
ecde339f59
Merge branch 'obsd-master'
2020-03-30 10:01:27 +01:00
nicm
c713b65b9e
Do not check flags after the popup struct has been freed.
2020-03-30 07:42:44 +00:00
nicm
586cafff0f
Do not check flags after the popup struct has been freed.
2020-03-30 07:42:44 +00:00
Thomas Adam
5aa9e425b4
Merge branch 'obsd-master'
2020-03-28 16:01:24 +00:00
Thomas Adam
374f5ea60c
Merge branch 'obsd-master'
2020-03-28 14:01:28 +00:00
Thomas Adam
88ca500546
Merge branch 'obsd-master'
2020-03-28 10:01:27 +00:00
nicm
6d0376a679
Change default position for menu and popup to centre rather than top left.
2020-03-28 09:55:30 +00:00
nicm
8036d0f834
Change default position for menu and popup to centre rather than top left.
2020-03-28 09:55:30 +00:00
nicm
852a2f2e1f
Make two -E only close popup automatically if the command exited with 0.
2020-03-28 09:51:12 +00:00
nicm
593fddf84b
Make two -E only close popup automatically if the command exited with 0.
2020-03-28 09:51:12 +00:00
nicm
4346098e97
Fix how popup height is calculated to take embedded newlines into account.
2020-03-28 09:39:44 +00:00
nicm
e0b17e796b
Add formats for top paste buffer by default. Also a tmux.1 fix from jmc.
2020-03-28 09:39:27 +00:00
Thomas Adam
f986539e3c
Merge branch 'master' of github.com:tmux/tmux
2020-03-26 11:12:18 +00:00
Thomas Adam
8a57d14f4b
Merge branch 'obsd-master'
2020-03-26 11:11:37 +00:00
Nicholas Marriott
75a93207d4
Update capture-pane test, from Johannes Altmanninger.
2020-03-26 10:16:05 +00:00
nicm
55b14cdc6a
Add support for overlay popup boxes to show text or output temporarily
...
above the normal layout. These work similarly to menus and are created
with the display-popup command.
2020-03-24 08:09:43 +00:00
nicm
8a838b0372
Add support for overlay popup boxes to show text or output temporarily
...
above the normal layout. These work similarly to menus and are created
with the display-popup command.
2020-03-24 08:09:43 +00:00
Thomas Adam
f652d777a6
Merge branch 'obsd-master'
2020-03-21 16:01:25 +00:00
Thomas Adam
5123bb7db4
Merge branch 'obsd-master'
2020-03-21 14:01:27 +00:00
nicm
edca27ae45
AIX colours are always stored as 90-97, not 100-107. From Johannes
...
Altmanninger.
2020-03-21 13:51:30 +00:00
nicm
af6ae35900
Set end position correctly, GitHub issue 2129 from Anindya Mukherjee.
2020-03-21 13:19:56 +00:00
nicm
8828b958f0
Break code to convert an argument as a percentage into a common function.
2020-03-21 13:16:15 +00:00
nicm
5aeab5ab40
Preserve exit status from run-shell and pass to the client.
2020-03-21 13:15:38 +00:00
Thomas Adam
c6d4baa4e5
Merge branch 'obsd-master'
2020-03-20 22:01:26 +00:00
nicm
9a55f65702
Fix select-word when not on a word, from Anindya Mukherjee.
2020-03-20 20:12:39 +00:00
Thomas Adam
e4efd59fe0
Merge branch 'obsd-master'
2020-03-20 20:01:34 +00:00
nicm
1a4e64ba69
Apply same menu items to view mode like copy mode.
2020-03-20 18:35:53 +00:00
nicm
7c25f22074
Similarly, disable zoom if only one pane.
2020-03-20 18:22:37 +00:00
nicm
b66501df0c
Put swap down back in the right place.
2020-03-20 18:20:58 +00:00
nicm
4d6805284b
Disable swap entries if nothing to swap with.
2020-03-20 18:19:22 +00:00
nicm
68cf61aa46
Still want the per-mode menus outside copy mode.
2020-03-20 18:11:56 +00:00
nicm
005cd48620
Oops, typo in key binding.
2020-03-20 18:05:22 +00:00
Thomas Adam
9894e50c42
Merge branch 'obsd-master'
2020-03-20 18:01:25 +00:00
nicm
06c3079d66
Make the mouse_word and mouse_line formats work in copy mode and enable
...
the default pane menu in copy mode.
2020-03-20 17:59:39 +00:00
nicm
7bbca49395
Fix positioning of menu in choose modes and a couple of keys in tree mode.
2020-03-20 17:26:14 +00:00
Thomas Adam
5b71943f89
Merge branch 'obsd-master'
2020-03-20 14:01:26 +00:00
nicm
a3ff5a9e25
select_word_end needs to forward no_reset flag or select-word selects
...
too much.
2020-03-20 13:12:04 +00:00
Thomas Adam
159e648ccb
Merge branch 'obsd-master'
2020-03-20 08:01:26 +00:00
nicm
c3e96cce4e
Another fix to make other-end forget the selection mode, from Anindya Mukherjee.
2020-03-20 06:09:19 +00:00
Thomas Adam
35c4897d8f
Merge branch 'obsd-master'
2020-03-19 16:01:29 +00:00
nicm
74ed17d41b
Little bit of tidying.
2020-03-19 14:23:58 +00:00
Nicholas Marriott
c15396459b
No util.h.
2020-03-19 14:06:37 +00:00
nicm
de34436d4c
Change input path so it doesn't require a pane.
2020-03-19 14:03:48 +00:00
Thomas Adam
17e4f2394a
Merge branch 'obsd-master'
2020-03-19 14:01:31 +00:00
nicm
ce61bf931b
Do not set the history flag if there is no history.
2020-03-19 13:46:10 +00:00
nicm
e8273a993e
Add a flag to run a background process in a pty as well, not used for
...
anything yet.
2020-03-19 13:43:18 +00:00
nicm
581ed718e7
Add C position for terminal centre with display-menu -x and -y.
2020-03-19 13:32:49 +00:00
nicm
2cd8ea7680
Various fixes to copying with select-word and select-line, including
...
making it consistent with keys and with the mouse, and using other-end.
From Anindya Mukherjee.
2020-03-19 13:28:52 +00:00
Thomas Adam
7595b22e72
Merge branch 'obsd-master'
2020-03-18 10:01:26 +00:00
nicm
7b0e688a96
Break position calculation into a helper function.
2020-03-18 09:13:49 +00:00
Nicholas Marriott
af4b62d10b
3.1-rc3.
2020-03-18 07:55:33 +00:00
nicm
0c06409c9d
getopt is not required to set optarg to NULL when there is no argument
...
and some do not, so set it explicitly each time.
2020-03-18 07:54:37 +00:00
Thomas Adam
18cfd9befa
Merge branch 'obsd-master'
2020-03-17 18:01:27 +00:00
Nicholas Marriott
76f373ab35
Merge branch '3.1-rc'
2020-03-17 16:17:09 +00:00
nicm
617136c234
Turn off mouse mode 1003 as well as the rest when exiting.
2020-03-17 16:16:23 +00:00
nicm
f16085a362
Fix C-Space key string.
2020-03-17 16:16:09 +00:00
nicm
4ffbebedce
Terminate the output buffer for control mode output - it is now used as
...
a string. GitHub issue 2114.
2020-03-17 16:14:51 +00:00
nicm
c0d74661b7
Do not attempt to close a NULL pane when failing to create a new one.
2020-03-17 16:14:25 +00:00
Nicholas Marriott
b21a9b1c4e
getopt varies too much between platforms, and we already use compat/getopt.c
...
for Linux so just use it everywhere.
2020-03-17 16:14:12 +00:00
Nicholas Marriott
80f20b8e4e
getopt varies too much between platforms, and we already use compat/getopt.c
...
for Linux so just use it everywhere.
2020-03-17 16:07:06 +00:00
nicm
bd0342b0a7
getopt is not required to set optarg to NULL when there is no argument
...
and some do not, so set it explicitly each time.
2020-03-17 16:02:38 +00:00
Thomas Adam
5717633cf5
Merge branch 'obsd-master'
2020-03-17 14:01:25 +00:00
nicm
1ddc128860
Do not return early if no bits changed because may still need to change the style.
2020-03-17 12:20:12 +00:00
Thomas Adam
0610f66fa9
Merge branch 'obsd-master'
2020-03-17 12:01:28 +00:00
nicm
115bb33257
Ignore default-shell (and use /bin/sh) if it invalid not just if it is
...
tmux itself, also refuse to set the option to something invalid in the
first place. GitHub issue 2120.
2020-03-17 11:10:12 +00:00
Thomas Adam
71eb965dd9
Merge branch 'obsd-master'
2020-03-16 20:01:24 +00:00
nicm
fb396286ff
Do not attempt to close a NULL pane when failing to create a new one.
2020-03-16 18:08:39 +00:00
Thomas Adam
c18a46cf56
Merge branch 'obsd-master'
2020-03-16 16:01:26 +00:00
Nicholas Marriott
62c646ac32
Add couple of CHANGES tweaks.
2020-03-16 15:13:35 +00:00
Nicholas Marriott
372841f70a
Add to CHANGES.
2020-03-16 15:12:20 +00:00
Nicholas Marriott
69eff51538
Add.
2020-03-16 15:11:34 +00:00
nicm
7021757c9d
Adjust selection correctly when scrolling, from Anindya Mukherjee.
2020-03-16 14:17:56 +00:00
Thomas Adam
cae2dfc95a
Merge branch 'obsd-master'
2020-03-16 12:01:26 +00:00
nicm
37b7a29cca
VTE treats each mouse mode bit as independent, so turning off 1000
...
doesn't also turn off 1001, so don't rely on that behaviour. GitHub
issue 2116.
2020-03-16 10:49:06 +00:00
Thomas Adam
45be93f604
Merge branch 'obsd-master'
2020-03-16 10:01:27 +00:00
nicm
7cae4e8e89
Turn off mouse mode 1003 as well as the rest when exiting.
2020-03-16 09:18:47 +00:00
nicm
7815b30c7d
Terminate the output buffer for control mode output - it is now used as
...
a string. GitHub issue 2114.
2020-03-16 09:12:44 +00:00
nicm
9abeff7f0b
FIx type for %u, from Thomas Adam.
2020-03-16 08:23:24 +00:00
Thomas Adam
f584fe1b00
Merge branch 'obsd-master'
2020-03-16 08:01:27 +00:00
nicm
d162ff48f3
Send mouse down event immediately rather than waiting for double click
...
to finish which would now mean it was out of order. Reported by Mark
Kelly.
2020-03-16 06:12:42 +00:00
Thomas Adam
55aeaffb1a
Merge branch 'obsd-master'
2020-03-15 22:01:27 +00:00
nicm
882d0b785d
Reset selection flag when clearing or stopping selection, from Mark
...
Kelly.
2020-03-15 20:44:19 +00:00
nicm
fa3871b1be
Fix C-Space key string.
2020-03-15 20:35:52 +00:00
Thomas Adam
c859748210
Merge branch 'obsd-master'
2020-03-13 08:01:24 +00:00
nicm
fa36e9bc88
Do not add a reference to the session if no session is present.
2020-03-13 06:19:33 +00:00
Thomas Adam
c91a0948e3
Merge branch 'obsd-master'
2020-03-12 16:01:28 +00:00
Thomas Adam
6385bd1e08
Merge branch 'obsd-master'
2020-03-12 14:01:29 +00:00
nicm
6571dd50f8
Tidy up the default mouse key bindings and:
...
- Add double and triple click bindings to copy a word or line outside
copy mode. The text is selected for a short period to show what has
been copied. This is in line with the existing mouse selection where
the text is copied and the selection is cleared when the mouse button
is released.
- Change the existing double and triple click bindings in copy mode to
behave in the same way.
- Add a button 2 binding to paste the top buffer.
2020-03-12 13:48:32 +00:00
nicm
516f6099fc
Add a -d flag to run-shell to wait for delay before running the command,
...
also allow run-shell to accept no command to just delay.
2020-03-12 13:25:45 +00:00
nicm
7863445e5d
Add a copy-mode -H flag to hide the position marker in the top right.
2020-03-12 13:19:20 +00:00
nicm
f7bc753442
Change how double and triple clicks works so that one or the other is
...
fired - a double click is no longer triggered on the way to a triple
click.
2020-03-12 13:16:16 +00:00
Thomas Adam
5625c62044
Merge branch 'obsd-master'
2020-03-12 12:01:25 +00:00
Thomas Adam
1a2e66f345
Merge branch 'obsd-master'
2020-03-12 10:01:25 +00:00
nicm
b8b48e2e37
Add C-g to cancel command prompt with vi(1) keys as well as emacs, and q
...
in command mode.
2020-03-12 09:49:43 +00:00
nicm
2a5702a936
When the server socket is given by the user with -S, create it with
...
umask 177 instead of 117 because it may not be in a safe directory like
the default directory in /tmp. The user can chmod it more open after it
is created if they want.
2020-03-12 09:26:34 +00:00
Thomas Adam
39dc809751
Merge branch 'obsd-master'
2020-03-11 20:01:26 +00:00
nicm
4eba98313c
Start a new selection if outside the existing selection after a word has
...
been selected. From Anindya Mukherjee.
2020-03-11 18:46:42 +00:00
Nicholas Marriott
e4898de98d
Only need one lm.
2020-03-11 18:41:14 +00:00
Thomas Adam
256f7e8f38
Merge branch 'master' of github.com:tmux/tmux
2020-03-11 17:24:42 +00:00
Thomas Adam
e512a3642a
Merge branch 'obsd-master'
...
Also add a check for -lm via AC_SEARCH_LIBS in configure.ac for
portablility fixes.
2020-03-11 17:23:38 +00:00
Nicholas Marriott
6d9beccb41
Will need fmod.
2020-03-11 16:33:55 +00:00
Nicholas Marriott
8d1d7fd775
Lock much more quickly.
2020-03-11 14:41:25 +00:00
nicm
c820585dd0
Add some number operators for formats, from Tyler Culp.
2020-03-11 14:17:55 +00:00
Nicholas Marriott
07bf5cbd27
3.2 next.
2020-03-11 06:41:13 +00:00
Nicholas Marriott
444e9f3c58
Bump 3.1-rc up to master.
2020-03-11 06:38:43 +00:00
Thomas Adam
59cb022c42
Merge branch 'obsd-master'
2020-03-07 12:01:25 +00:00
nicm
2991f4aad0
Use correct width of right marker so it doesn't draw over status right
...
when more than one character. Reported by Tyler Culp.
2020-03-07 10:58:32 +00:00
Thomas Adam
9e4d0b2b6d
Merge branch 'obsd-master'
2020-03-06 18:01:26 +00:00
nicm
add75a06cd
Update latest client for target session on switch-client.
2020-03-06 15:35:03 +00:00
Thomas Adam
ccd24c9cb2
Merge branch 'obsd-master'
2020-03-02 23:09:48 +00:00
nicm
8be179de46
Use current session for cwd of new sessions, not the new session which
...
doesn't have one yet. GitHub issue 2091.
2020-03-02 08:30:30 +00:00
nicm
f65b9c0d36
Change mouse selection so that after selecting a word, dragging selects
...
only words and similar for lines. From Anindya Mukherjee.
2020-02-24 09:53:59 +00:00
Nicholas Marriott
549b3599ef
Update CHANGES.
2020-02-20 20:42:26 +00:00
Thomas Adam
4694afbed4
Merge branch 'obsd-master'
2020-02-20 10:01:29 +00:00
nicm
229be034fb
Add selection_active format for when the selection is present but not
...
moving with the cursor, from Mark Kelly.
2020-02-20 07:34:57 +00:00
Thomas Adam
ba542e42b7
Merge branch 'obsd-master'
2020-02-19 16:01:27 +00:00
nicm
b20753f2a3
A few fixes to make modifier keys and dragging work - need to remove the
...
modifiers before checking for the dragging marker key, and apply them
before looking up the end key. Also fix key-to-string with modifiers for
special keys.
2020-02-19 14:25:00 +00:00
Nicholas Marriott
22e9cf04ca
Add GitHub.
2020-02-19 06:01:54 +00:00
Nicholas Marriott
37919a6b6a
This site is too stupid.
2020-02-17 12:20:53 +00:00
Nicholas Marriott
fdbc1116ef
Add to FUNDING.yml.
2020-02-17 12:19:04 +00:00
Thomas Adam
0c6c8c4efc
Merge branch 'obsd-master'
2020-02-15 16:01:25 +00:00
nicm
a1f6bd55b6
Add -a to list-keys to also list keys without notes with -N, suggested
...
by Shehu Dikko.
2020-02-15 15:08:08 +00:00
Thomas Adam
c391d50cbb
Merge branch 'obsd-master'
2020-02-14 16:01:26 +00:00
nicm
58b47bf01b
Fix top/bottom pane calculation with pane border status enabled,
...
reported by Stanislav Spassov.
2020-02-14 13:57:58 +00:00
Nicholas Marriott
9900ccd04e
Change lock.yml options.
2020-02-14 11:43:12 +00:00
Nicholas Marriott
24cd726dae
Add lock.yml file.
2020-02-14 11:40:32 +00:00
Thomas Adam
6c28d0dd06
Merge branch 'obsd-master'
2020-02-13 10:01:27 +00:00
nicm
f48b041cf2
Do not jump to next word end if already on a word end when selecting a
...
word. Fixes select-word with single character words and vi(1) keys. From
Mark Kelly.
2020-02-13 09:02:07 +00:00
Thomas Adam
a4d8437bc2
Merge branch 'obsd-master'
2020-02-11 08:01:30 +00:00
nicm
dc882adb2e
Remove unused variables from Ben Boeckel, and a Pp from jmc.
2020-02-11 07:01:08 +00:00
Nicholas Marriott
470cba356d
Merge branch '3.1-rc'
2020-02-07 16:43:41 +00:00
Nicholas Marriott
ae9ca620bd
Remove duplicates, from Thomas Sattler.
2020-02-07 16:42:10 +00:00
Nicholas Marriott
400750bb26
Merge branch '3.1-rc'
2020-02-06 12:49:50 +00:00
nicm
096f0d35a6
Make list-keys description clearer in tmux.1 and remove an unused variable.
2020-02-06 12:49:02 +00:00
Thomas Adam
54553903de
Merge branch 'obsd-master'
2020-02-05 14:01:26 +00:00
nicm
fb29242168
Make list-keys description clearer in tmux.1 and remove an unused variable.
2020-02-05 13:06:49 +00:00
Nicholas Marriott
c915cfc7e4
Merge branch '3.1-rc'
2020-02-04 07:46:59 +00:00
Nicholas Marriott
3ad4a7a571
Style nit in CHANGES.
2020-02-04 07:46:26 +00:00
Nicholas Marriott
47174f5130
Next is 3.2.
2020-02-04 07:45:29 +00:00
Nicholas Marriott
4822130b3c
Merge branch '3.1-rc'
2020-02-04 07:44:49 +00:00
Nicholas Marriott
0bf153daa6
Update CONTRIBUTING.md
2020-02-04 07:43:34 +00:00
Nicholas Marriott
63a69fe085
3.1-rc.
2020-02-04 07:21:04 +00:00
Nicholas Marriott
43b36752ce
Remove a duplicate entry.
2020-02-03 20:26:03 +00:00
Thomas Adam
19d5f4a0bd
Merge branch 'obsd-master'
2020-02-03 14:01:25 +00:00
nicm
265164d251
Instead of passing titles through vis() which doubles backslashes, just
...
ignore any containing control characters or invalid UTF-8. GitHub issue 2070.
2020-02-03 13:46:27 +00:00
Thomas Adam
6f0241e645
Merge branch 'obsd-master'
2020-01-30 10:01:24 +00:00
nicm
87bcc0c7e0
Remove bind-key -c which doesn't do anything and is undocumented.
2020-01-30 08:02:25 +00:00
Thomas Adam
32be954bdd
Merge branch 'obsd-master'
2020-01-29 18:01:24 +00:00
nicm
44dad918f8
Warn if a message type that is no longer used is received.
2020-01-29 16:22:32 +00:00
Thomas Adam
bc36700d05
Merge branch 'obsd-master'
2020-01-29 16:01:24 +00:00
nicm
531daba584
Do not send DA and DSR again if already have a response.
2020-01-29 15:07:49 +00:00
Thomas Adam
8b22da69b6
Merge branch 'obsd-master'
2020-01-29 10:01:25 +00:00
nicm
7a15d10bf4
Remove extra Pp (from jmc) and add a missing word.
2020-01-29 08:28:17 +00:00
Nicholas Marriott
7f3feb1896
Add to CHANGES.
2020-01-28 15:52:04 +00:00
Thomas Adam
7eada28f96
Merge branch 'obsd-master'
2020-01-28 14:01:25 +00:00
nicm
b905c5d455
If ALL clients are readonly, allow them to affect the size, suggested by Thomas Sattler.
2020-01-28 13:23:24 +00:00
nicm
e388702260
Ignore empty commands rather than adding them to the command list rather
...
than trying to skip them later, fixes problem reported by M Kelly.
2020-01-28 13:10:14 +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
nicm
84995ae172
-V also needs to go in usage.
2020-01-28 11:31:31 +00:00
Nicholas Marriott
685eb381de
Fix for version changes.
2020-01-28 11:28:30 +00:00
Thomas Adam
ee3d3db364
Merge branch 'obsd-master'
2020-01-28 11:17:08 +00:00
nicm
90e962fff8
Add support for the iTerm2 DSR 1337 sequence to get the terminal version.
2020-01-28 10:59:29 +00:00
nicm
f165221dc4
Reduce a difference with portable tmux by adding the -V flag and
...
#{version} format; on OpenBSD these just report the OpenBSD version.
2020-01-28 10:44:30 +00:00
nicm
32816eaebd
Set up working directory before killing the existing pane on respawn.
2020-01-28 10:21:21 +00:00
Thomas Adam
7cdf5ee9bc
Merge branch 'obsd-master'
2020-01-28 10:01:25 +00:00
nicm
24350879cd
Add a define for flags meaning a client is not attached, and fix
...
unattached counter, reported by Thomas Sattler.
2020-01-28 08:06:11 +00:00
Thomas Adam
f3ea318a04
Merge branch 'obsd-master'
2020-01-27 10:01:27 +00:00
nicm
2c38e01b54
Expand description of start-server.
2020-01-27 09:04:47 +00:00
nicm
d0b8d036be
Add support for adding a note to a key binding (with bind-key -N) and
...
use this to add descriptions to the default key bindings. A new -N flag
to list-keys shows key bindings with notes rather than the default
bind-key command used to create them. Change the default ? binding to
use this to show a readable summary of keys.
Also extend command-prompt to return the name of the key pressed and add
a default binding (/) to show the note for the next key pressed
Suggested by Alex Tremblay in GitHub issue 2000.
2020-01-27 08:53:13 +00:00
nicm
2e39b621c9
Change so that assignments may be specified alone - a command isn't
...
required. GitHub issue 2062.
2020-01-27 08:23:42 +00:00
Thomas Adam
0eb7b54731
Merge branch 'obsd-master'
2020-01-25 18:01:26 +00:00
Nicholas Marriott
74b424075c
Use FNM_IGNORECASE if present, from Eric N Vander Weele in GitHub issue 2067.
2020-01-25 16:41:49 +00:00
nicm
9169ee0e87
Mention swap-window -d, GitHub issue 2068.
2020-01-25 16:40:32 +00:00
Nicholas Marriott
cdf138372c
Add to CHANGES.
2020-01-14 16:02:22 +00:00
Thomas Adam
a01c9ffc6c
Merge branch 'obsd-master'
2020-01-13 14:01:25 +00:00
nicm
da515570dc
Stop handling DA and DSR after a second (they should be the first thing
...
sent) so this should be plenty.
2020-01-13 11:59:21 +00:00
Thomas Adam
8457f54edc
Merge branch 'obsd-master'
2020-01-13 10:01:27 +00:00
nicm
835a6c0cf0
Be more specific in the DSR we are looking for so it doesn't get
...
confused with mouse sequences. Also set a flag and don't bother checking
for it if we have already seen it (same for DA), and don't check if we
never asked for it.
2020-01-13 08:12:53 +00:00
nicm
04eee2410d
Treat plausible but invalid keys (like C-BSpace) as literal like any
...
other unrecognised string passed to send-keys. Reported by Anthony
Sottile in GitHub issue 2049.
2020-01-13 07:51:54 +00:00
Thomas Adam
3e701309a4
Merge branch 'obsd-master'
2020-01-13 00:01:24 +00:00
Thomas Adam
e9b1294331
Merge branch 'obsd-master'
2020-01-12 22:01:26 +00:00
nicm
381333c4a9
Detect iTerm2 and enable DECSLRM.
2020-01-12 22:00:20 +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
nicm
deb734c7f6
Loop over all DA features, don't skip the first.
2020-01-12 20:20:20 +00:00
Thomas Adam
61b075a263
Merge branch 'obsd-master'
2020-01-08 16:01:23 +00:00
nicm
36eb16ce7d
Do not hang in format_trim_* on invalid UTF-8 characters.
2020-01-08 14:40:52 +00:00
Thomas Adam
ed16f51e26
Merge branch 'obsd-master'
2020-01-08 08:01:24 +00:00
nicm
6628e542b5
Add -Z to default switch-client command in tree mode, matches previous
...
behaviour.
2020-01-08 06:38:55 +00:00
Thomas Adam
507816b1d6
Merge branch 'obsd-master'
2020-01-05 22:01:24 +00:00
nicm
73b8c2ef3c
Common function to free key bindings.
2020-01-05 20:39:25 +00:00
Thomas Adam
36169d8a68
Merge branch 'obsd-master'
2020-01-05 14:01:23 +00:00
nicm
7c6c66cc3c
Send errors to stdout in control mode so they don't get reordered with
...
other output, reported by George Nachman in GitHub issue 2048.
2020-01-05 12:51:43 +00:00
Thomas Adam
6d3d47c25b
Merge branch 'obsd-master'
2020-01-04 20:01:26 +00:00
nicm
1870cc70ef
Add ~ to quoted characters for %%%, reported by tb@.
2020-01-04 18:01:56 +00:00
Thomas Adam
6b0091e185
Merge branch 'obsd-master'
2020-01-02 14:01:26 +00:00
nicm
a770a3bf7e
Add CMD_FIND_DEFAULT_MARKED to join-pane like move-pane, from
...
davidegirardi in GitHub issue 2046.
2020-01-02 13:44:17 +00:00
Thomas Adam
7110226b96
Merge branch 'obsd-master'
2020-01-02 00:01:29 +00:00
nicm
ac85a3e0d3
Document client exit messages.
2020-01-01 22:12:05 +00:00
nicm
9cc603cbad
Fix format expansion in window names, reported by Suraj N Kurapati.
2020-01-01 21:51:33 +00:00
Thomas Adam
566ab9aa28
Merge branch 'obsd-master'
2019-12-30 22:01:25 +00:00
nicm
206d878127
Do not let readonly clients limit the size, suggested by Max Barraclough
...
in GitHub issue 2042.
2019-12-30 21:24:55 +00:00
Thomas Adam
47d06cb023
Merge branch 'obsd-master'
2019-12-27 20:01:24 +00:00
nicm
4ea07716de
Support regex search in copy mode, from Anindya Mukherjee in GitHub
...
issue 2038.
2019-12-27 18:42:49 +00:00
Thomas Adam
0aa6c6f647
Merge branch 'obsd-master'
2019-12-26 16:01:25 +00:00
nicm
88ee5b1a73
Pass correct value into iterator callback for time formats.
2019-12-26 14:48:29 +00:00
Thomas Adam
b931bbb319
Merge branch 'obsd-master'
2019-12-26 12:01:26 +00:00
nicm
817d199cbb
Add a number of new formats to inspect what sessions and clients a
...
window is present or active in. From Tyler Culp in GitHub issue 2034.
2019-12-26 11:04:58 +00:00
Thomas Adam
67d2408279
Merge branch 'obsd-master'
2019-12-24 12:01:25 +00:00
nicm
07e37479c2
Fix name of option, GitHub issue 2030.
2019-12-24 09:57:11 +00:00
Thomas Adam
a6b1cbba02
Merge branch 'obsd-master'
2019-12-21 18:01:24 +00:00
tim
5cd00eda0b
Restore source-file -q behaviour, broken in r1.42; OK nicm@
2019-12-21 17:30:48 +00:00
Thomas Adam
745233d6a1
Merge branch 'obsd-master'
2019-12-19 10:01:26 +00:00
nicm
1764f66b7d
When adding a list with multiple commands to the queue, the next item to
...
insert after needs to be the last one added, not the first. Reported by
Jason Kim in GitHub issue 2023.
2019-12-19 09:22:33 +00:00
Nicholas Marriott
54efe33799
Add back utempter code, reported by Peter Schellenbach.
2019-12-18 15:58:06 +00:00
Thomas Adam
d0cd68d5e4
Merge branch 'obsd-master'
2019-12-18 08:01:23 +00:00
nicm
ef54a08080
Do not rely on errno after glob(3) fails.
2019-12-18 07:48:56 +00:00
Thomas Adam
4223293ed8
Merge branch 'obsd-master'
2019-12-17 12:01:24 +00:00
nicm
f8cb759bdb
Use the message that has already been built rather than the va_list.
2019-12-17 11:43:23 +00:00
Nicholas Marriott
3879509426
Define FNM_CASEFOLD to 0 for AIX, from Eric N Vander Weele.
2019-12-16 21:34:36 +00:00
Nicholas Marriott
479d411dda
Remove imsg.h.
2019-12-16 20:01:26 +00:00
Thomas Adam
52b6ca5706
Merge branch 'obsd-master'
2019-12-16 18:01:31 +00:00
nicm
1bdd4828bd
If /dev/fd/X is a symlink and realpath() expands symlinks, /dev/fd/X
...
ends up pointing to the wrong place before it is passed to the client.
The path is only used internally so there is no real need for
realpath(), remove it and move the get_path function to file.c where all
the callers are.
2019-12-16 16:39:03 +00:00
nicm
b4520aaf2c
Need to include message size in the maximum buffer calculation.
2019-12-16 16:09:28 +00:00
nicm
eaa58d28dc
Instead of using large buffers in imsgs, add the data or path onto the end.
2019-12-16 15:48:50 +00:00
Nicholas Marriott
e6b02dec19
Add to CHANGES.
2019-12-13 11:31:53 +00:00
Thomas Adam
00723f1f5c
Merge branch 'obsd-master'
2019-12-13 10:01:24 +00:00
nicm
21f9b39f06
Show UTF-8 in choose-buffer mode. From KOIE Hidetaka.
2019-12-13 09:15:13 +00:00
Thomas Adam
e24e9867ec
Merge branch 'obsd-master'
2019-12-13 08:01:24 +00:00
nicm
6ce943f4d9
Need to check in the error callback also.
2019-12-13 07:00:22 +00:00
nicm
828001ecc5
Do not spin waiting for exit, instead check in the write callback.
2019-12-13 06:55:12 +00:00
Thomas Adam
58908b045b
Merge branch 'obsd-master'
2019-12-12 15:38:33 +00:00
nicm
dcf41ec927
Do not crash in tree modes if the pane is only 1 in width, reported by
...
KOIE Hidetaka in GitHub issue 2015.
2019-12-12 15:03:13 +00:00
nicm
2b2b193791
Add function to the right file.
2019-12-12 15:01:54 +00:00
Thomas Adam
7922f4ee7b
Merge branch 'obsd-master'
2019-12-12 14:33:47 +00:00
nicm
5134666702
Change source-file to use new file code which allows it to read from
...
stdin.
2019-12-12 12:49:36 +00:00
nicm
268f2b047a
Do not check if client is dead if it is NULL.
2019-12-12 11:51:32 +00:00
nicm
c284ebe0ad
Rewrite the code for reading and writing files. Now, if the client is
...
not attached, the server process asks it to open the file, similar to
how works for stdin, stdout, stderr. This makes special files like
/dev/fd/X work (used by some shells). stdin, stdout and stderr and
control mode are now just special cases of the same mechanism. This will
also make it easier to use for other commands that read files such as
source-file.
2019-12-12 11:39:56 +00:00
Thomas Adam
0d99519c3d
Merge branch 'obsd-master'
2019-12-11 20:01:25 +00:00
nicm
64fb7e472a
Tweak previous to check the wrapped flag and stop if not set.
2019-12-11 18:30:29 +00:00
nicm
ab630f72ed
Allow search across wrapped lines and fix some inconsistencies in how th
...
position is represented, GitHub issue 2014 from Anindya Mukherjee.
2019-12-11 18:23:34 +00:00
Thomas Adam
96abf400a5
Merge branch 'obsd-master'
2019-12-11 14:01:25 +00:00
nicm
f733d3f3eb
Do not set cursor colour to default unless it has been changed, GitHub
...
issue 2013.
2019-12-11 12:13:37 +00:00
Nicholas Marriott
6aeb679066
Add to CHANGES.
2019-12-10 19:02:27 +00:00
Nicholas Marriott
15d7e564dd
Add ~/.config/tmux/tmux.conf to the default search path for configuration files
...
(in Makefile.am, so portable tmux only).
2019-12-10 16:31:01 +00:00
Thomas Adam
5b2048fbb9
Merge branch 'obsd-master'
2019-12-10 16:01:25 +00:00
nicm
55eb3e4773
Make TMUX_CONF a list of files and expand leading $FOO or ~.
2019-12-10 14:22:15 +00:00
Nicholas Marriott
92ecd611f6
Check each _PATH_* define individually (Solaris has paths.h but not all of the
...
defines). From Eric N Vander Weele.
2019-12-03 18:53:23 +00:00
Thomas Adam
875139f5fa
Merge branch 'obsd-master'
2019-12-03 12:01:26 +00:00
nicm
7826d40ff9
Style nits in function arguments.
2019-12-03 10:47:22 +00:00
Thomas Adam
edf96b06a5
Merge branch 'obsd-master'
2019-12-02 20:01:24 +00:00
nicm
ec1b8e5f05
Remove client menu, I don't think it adds anything.
2019-12-02 19:25:52 +00:00
Nicholas Marriott
2173365f4f
Fix keys in CHANGES.
2019-12-01 21:15:21 +00:00
Nicholas Marriott
7836779e21
Merge branch '3.0a-rc'
2019-12-01 09:00:46 +00:00
Nicholas Marriott
25ae028695
Add to CHANGES.
2019-12-01 08:53:10 +00:00
nicm
1b0cc4503e
REG_STARTEND is not portable, but it turns out we don't actually need
...
it. From Evan Green, GitHub issue 1982.
2019-12-01 08:52:47 +00:00
Nicholas Marriott
a52fe9cf7f
Add to CHANGES.
2019-12-01 08:50:45 +00:00
Thomas Adam
866b053f25
Merge branch 'obsd-master'
2019-11-29 18:01:24 +00:00
nicm
48897fbc44
Fix respawn-pane/window if default-command is set, reported by Janos Barbero.
2019-11-29 17:21:32 +00:00
nicm
67d995d100
If a window appears in only one attached session, there is no point in
...
worrying about which is the latest client (there is only one).
2019-11-29 16:04:07 +00:00
nicm
ad98fad9a3
Do not crash when a format doesn't exist, reported by Thomas Sattler.
2019-11-28 22:23:40 +00:00
Thomas Adam
34084fe666
Merge branch 'obsd-master'
2019-11-28 22:01:24 +00:00
nicm
c5d74b1deb
Do not crash when a format doesn't exist, reported by Thomas Sattler.
2019-11-28 21:18:38 +00:00
Nicholas Marriott
3bb11ec484
Revert "add missing definition"
...
This reverts commit 743939ec84f4652f1d3288e70a4c1aca327a0e07.
2019-11-28 14:36:32 +00:00
Thomas Adam
743939ec84
add missing definition
2019-11-28 12:31:43 +00:00
Nicholas Marriott
e00730d149
Fix bad merge.
2019-11-28 12:30:43 +00:00
nicm
640149337f
Missing after-kill-pane option.
2019-11-28 12:22:32 +00:00
Thomas Adam
5f5f029e3b
Merge branch 'obsd-master'
2019-11-28 12:18:41 +00:00
nicm
fa409194d3
Missing after-kill-pane option.
2019-11-28 10:55:45 +00:00
nicm
08e2828592
Parse out DA features.
2019-11-28 10:17:22 +00:00
nicm
bc5881c4d2
Long lines and spacing fixes.
2019-11-28 09:56:25 +00:00
nicm
c416fe0da4
Add xrecallocarray.
2019-11-28 09:51:58 +00:00
nicm
9ea05b2fb3
Bump the escape sequence timeout to five seconds to allow for longer
...
legitimate sequences.
2019-11-28 09:50:09 +00:00
nicm
2349b1dbef
Make a best effort to set xpixel and ypixel for each pane and add
...
formats for them.
2019-11-28 09:45:15 +00:00
nicm
067604bf8c
Store xpixel/ypixel from TIOCGWINSZ and add formats.
2019-11-28 09:05:34 +00:00
nicm
7fb8eec8f1
status-left and status-right need push-default also, reported by Eric
...
Pruitt in GitHub issue 1989.
2019-11-28 08:38:04 +00:00
Thomas Adam
c13838436e
Merge branch 'obsd-master'
2019-11-27 22:01:24 +00:00
Nicholas Marriott
7a30e6b941
Merge branch '3.0-rc' into 3.0a-rc
2019-11-27 20:55:19 +00:00
nicm
eb4d60b1ce
REG_STARTEND is not portable, but it turns out we don't actually need
...
it. From Evan Green, GitHub issue 1982.
2019-11-27 20:54:30 +00:00
Nicholas Marriott
0134574a67
3.0a.
2019-11-27 20:49:59 +00:00
Nicholas Marriott
c942f11ba8
Use a malloc'd buffer for lsk since commands can be very long, from Gregory Pakosz.
2019-11-27 20:48:30 +00:00
nicm
5afe7eb850
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-11-27 20:48:03 +00:00
nicm
b2fd161b07
Do not crash trying to fix layout size if only one cell, from Azat Khuzhin.
2019-11-27 20:47:27 +00:00
Thomas Adam
d0655f321f
Merge branch 'obsd-master'
2019-11-26 16:01:25 +00:00
nicm
fef8ee23c0
Add default # and * binding with vi(1) keys.
2019-11-26 15:35:56 +00:00
Nicholas Marriott
c16faa4fed
Fixes to CHANGES.
2019-11-26 14:12:05 +00:00
Nicholas Marriott
bbcb199174
3.0 version.
2019-11-26 13:16:51 +00:00
nicm
47c0405b33
Some old tmux versions can sometimes generate layout strings which have
...
the incorrect size for the top cell. Previously tmux didn't care but now
that panes can be partly hidden, the size matters and is checked more
strictly. So add some code to fix up the most common problem and a
sanity check to reject layouts with any other size problems. Reported by
Aleksandrs Ledovskis in GitHub issue 1930.
2019-11-26 13:14:00 +00:00
Thomas Adam
f378a0b24d
Merge branch 'obsd-master'
2019-11-26 00:01:25 +00:00
nicm
58f870ef6e
Don't use motion flag uninitialized.
2019-11-25 22:38:36 +00:00
Thomas Adam
eaf526b1ea
Merge branch 'obsd-master'
2019-11-25 22:01:56 +00:00
nicm
87a11a9214
Fix a warning in previous.
2019-11-25 20:43:32 +00:00
nicm
c2fde58701
Do not clear search marks on cursor movement with vi(1) keys, from Eric
...
Pruitt in GitHub issue 1985.
2019-11-25 20:42:18 +00:00
Thomas Adam
daa93b3fdc
Merge branch 'obsd-master'
2019-11-25 16:01:27 +00:00
nicm
1ebd8c1234
Add p format modifier for padding to width.
2019-11-25 15:04:15 +00:00
nicm
5d0504ee11
Allow multiple substitutions in a single format.
2019-11-25 15:02:48 +00:00
Thomas Adam
81d4f95c2f
Merge branch 'obsd-master'
2019-11-24 20:01:24 +00:00
nicm
20c1f1aec6
Only substitute patterns starting with ^ once.
2019-11-24 18:37:23 +00:00
Thomas Adam
82d0d85675
Merge branch 'obsd-master'
2019-11-20 12:01:23 +00:00
nicm
3c312a9150
Do not check the client readonly flag when there is no client, GitHub issue 1980.
2019-11-20 11:42:51 +00:00
Nicholas Marriott
0ed96c4609
Update CHANGES.
2019-11-18 12:56:24 +00:00
Thomas Adam
0d3f306c8e
Merge branch 'obsd-master'
2019-11-18 10:01:25 +00:00
nicm
350a434939
Add -f for full size to join-pane (like split-window), from Theo Buehler.
2019-11-18 09:43:31 +00:00
nicm
4bc445f080
Keep modifiers on backspace when translating it.
2019-11-18 09:42:09 +00:00
Thomas Adam
dbdff241b2
Merge branch 'obsd-master'
2019-11-15 12:01:27 +00:00
nicm
5dfe9db788
Do not add path if it is NULL, duh.
2019-11-15 11:21:32 +00:00
nicm
f3dc38dcae
Handle OSC 7 (a VTE extension) and put the result in a new format (pane_path).
2019-11-15 11:16:53 +00:00
Thomas Adam
48cbbb8757
Merge branch 'obsd-master'
2019-11-14 18:01:24 +00:00
nicm
1f966c495c
Change window-size default from smallest to latest.
2019-11-14 16:23:23 +00:00
Thomas Adam
b67fd8f472
Merge branch 'obsd-master'
2019-11-14 16:01:25 +00:00
nicm
16b7719418
Fix parsing of DA with only one argument in the response and add 65 for VT520.
2019-11-14 15:37:19 +00:00
Thomas Adam
518a687886
Merge branch 'obsd-master'
2019-11-14 10:01:29 +00:00
nicm
2dbf062a89
Change new-session -A without a session name (that is, no -s option
...
also) to attach to the best existing session like attach-session rather
than creating a new one.
2019-11-14 08:00:30 +00:00
nicm
eb399e64d5
CUB and CUF are also limited by the margins so use CUP instead when
...
margins are enabled (we already do this for linefeed).
2019-11-14 07:56:32 +00:00
nicm
08b07b1a08
Add an option to set the key sent by backspace for those whose system
...
uses ^H rather than ^?. GitHub issue 1969.
2019-11-14 07:55:01 +00:00
Thomas Adam
eb215d3d3f
Merge branch 'obsd-master'
2019-11-07 08:01:26 +00:00
nicm
c225262e13
Add -F flag to send-keys to expand formats in search-backward and
...
forward copy mode commands, this makes it easier to use the cursor_word
and cursor_line formats. From Anindya Mukherjee in GitHub issue 1964.
2019-11-07 07:11:25 +00:00
Thomas Adam
4408df1e8a
Merge branch 'obsd-master'
2019-11-01 22:01:24 +00:00
nicm
bad95db878
Limit lazy resize to panes in attached sessions only - those in
...
unattached are likely to have been resized by something like
split-window where the user probably wants the resize to happen
immediately. GitHub issue 1963.
2019-11-01 20:26:21 +00:00
Thomas Adam
4fc8741794
Merge branch 'obsd-master'
2019-11-01 10:01:25 +00:00
nicm
d9c95c900c
Handle the various different forms of rgb colour strings.
2019-11-01 09:09:53 +00:00
Nicholas Marriott
a1006db91b
Create FUNDING.yml
2019-10-29 16:59:15 +00:00
Thomas Adam
57948a0dfc
Merge branch 'obsd-master'
2019-10-28 10:01:25 +00:00
nicm
ccdebead79
Start with empty rather than NULL window name to avoid NULL printf if
...
window_name is evaluated early. Reported by Mikolaj Kucharski.
2019-10-28 09:07:59 +00:00
Thomas Adam
4e5f80dc62
Merge branch 'obsd-master'
2019-10-23 16:01:25 +01:00
nicm
6700018ce5
Document Any key, from Jason Felice.
2019-10-23 14:10:13 +00:00
Thomas Adam
b5de0a20d8
Merge branch 'obsd-master'
2019-10-23 10:01:27 +01:00
nicm
f7fb5df543
Use the existing code in format.c to add foramts for word and line at
...
cursor position in copy mode, from Anindya Mukherjee.
2019-10-23 07:42:05 +00:00
Thomas Adam
004ee66227
Merge branch 'obsd-master'
2019-10-19 22:01:25 +01:00
nicm
56e5067c46
Add formats for cursor and selection position in copy mode, from Jason Felice.
2019-10-19 19:20:14 +00:00
Thomas Adam
1b96902d73
Merge branch 'obsd-master'
2019-10-19 16:01:24 +01:00
nicm
2cb268d51b
Do not crash trying to fix layout size if only one cell, from Azat Khuzhin.
2019-10-19 12:40:42 +00:00
Thomas Adam
fb7ce5b5d5
Merge branch 'obsd-master'
2019-10-15 10:01:28 +01:00
nicm
9fd62efcf0
Rewrite options_array_set to be clearer and remove a spurious warning
...
with newer GCC. From Ben Boeckel.
2019-10-15 08:30:36 +00:00
nicm
0c5e9c6efa
Add support for percentage sizes for resize-pane ("-x 10%"). Also change
...
split-window and join-pane -l to accept similar percentages and
deprecate -p. From Anindya Mukherjee.
2019-10-15 08:25:37 +00:00
Thomas Adam
eb57cbcc29
Merge branch 'obsd-master'
2019-10-14 12:01:26 +01:00
nicm
b598bbcc2e
Do not crash with pane_current_command if the pane is newly created and
...
has no shell set, from Thomas Adam.
2019-10-14 09:24:06 +00:00
nicm
f18cd5b19c
Turn automatic-rename back on if the rename escape sequence is used with
...
an empty name, GitHub issue 1921.
2019-10-14 09:19:40 +00:00
nicm
bbe8ebf9c2
Some old tmux versions can sometimes generate layout strings which have
...
the incorrect size for the top cell. Previously tmux didn't care but now
that panes can be partly hidden, the size matters and is checked more
strictly. So add some code to fix up the most common problem and a
sanity check to reject layouts with any other size problems. Reported by
Aleksandrs Ledovskis in GitHub issue 1930.
2019-10-14 09:16:48 +00:00
nicm
68d59a16ce
Memory leaks, from Igor Wong in GitHub issue 1934.
2019-10-14 08:38:07 +00:00
Thomas Adam
7323ffeef2
Merge branch 'obsd-master'
2019-10-07 10:01:24 +01:00
nicm
4e2cc0ae2a
Fix respawn-pane/window if default-command is set, reported by Janos Barbero.
2019-10-07 07:14:07 +00:00
Thomas Adam
341b330a04
Merge branch 'obsd-master'
2019-10-03 14:01:23 +01:00
Thomas Adam
eeedb43ae8
Merge branch 'obsd-master'
2019-10-03 12:01:25 +01:00
nicm
02253d1e5c
Use a malloc'd buffer for lsk since commands can be very long, from Gregory Pakosz.
2019-10-03 10:39:08 +00: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
8cf21feefd
Merge branch 'obsd-master'
2019-09-25 22:01:24 +01:00
nicm
bbd1032a2a
Style and line length nits.
2019-09-25 19:05:59 +00:00
nicm
f0712a7569
Do not set uninitialized signal mask when creating an empty pane.
2019-09-25 15:56:53 +01:00
nicm
9d1cecea8e
Up and Down are already used, use < and > instead.
2019-09-25 15:56:39 +01:00
nicm
e6995196f2
Change menu key bindings to Up and Down and also close it on any mouse
...
press if opened by key.
2019-09-25 15:56:30 +01:00
nicm
a74e37d32d
Mouse formats don't work in copy mode so don't try to use them.
2019-09-25 15:54:52 +01:00
Thomas Adam
d89510e1aa
Merge branch 'obsd-master'
2019-09-25 00:01:25 +01:00
nicm
e3359f8349
Some minor performance improvements - most notably, don't search the
...
input state table if the next character matches the same state as before.
2019-09-24 20:44:58 +00:00
Thomas Adam
2534aa4d2d
Merge branch 'obsd-master'
2019-09-24 18:01:24 +01:00
nicm
e8adcae0f2
Couple of bits of minor cleanup.
2019-09-24 15:52:14 +00:00
nicm
48c684cbc2
Mouse formats don't work in copy mode so don't try to use them.
2019-09-24 14:50:08 +00:00
nicm
6f8f4bb206
Make select-pane -P set window-active-style also to match previous
...
behaviour, reported by Thomas Sattler.
2019-09-24 12:20:25 +01:00
Thomas Adam
cb1a626692
Merge branch 'obsd-master'
2019-09-24 12:01:23 +01:00
nicm
232050830b
Make select-pane -P set window-active-style also to match previous
...
behaviour, reported by Thomas Sattler.
2019-09-24 09:58:58 +00:00
Thomas Adam
dd254b90d7
Merge branch 'obsd-master'
2019-09-23 18:01:24 +01:00
nicm
77deef733b
Use the correct size for new windows when window-size is latest,
...
reported by Vamsi Krishna Avula in GitHub issue 1917.
2019-09-23 15:41:11 +00:00
Thomas Adam
24ab1bc714
Merge branch 'obsd-master'
2019-09-19 12:01:30 +01:00
nicm
647887b794
Add a "latest" window-size option which tries to size windows based on
...
the most recently used client. From Tommie Gannert in GitHub issue 1869
based on earlier changes from me.
2019-09-19 09:02:30 +00:00
nicm
d018477359
Do not use bright when emulating 256 colours on an 8 colour terminal
...
because it is also bold on some terminals. GitHub issue 1914.
2019-09-19 08:56:37 +00:00
Thomas Adam
827913102e
Merge branch 'obsd-master'
2019-09-18 18:01:23 +01:00
nicm
1ee40307b5
Up and Down are already used, use < and > instead.
2019-09-18 15:09:05 +00:00
Thomas Adam
d30b612809
Merge branch 'obsd-master'
2019-09-18 14:01:24 +01:00
nicm
697f938355
Do not set uninitialized signal mask when creating an empty pane.
2019-09-18 11:37:58 +00:00
Thomas Adam
5ae2d421fb
Merge branch 'obsd-master'
2019-09-16 16:01:23 +01:00
nicm
83be3afc54
Change menu key bindings to Up and Down and also close it on any mouse
...
press if opened by key.
2019-09-16 13:27:14 +00:00
Nicholas Marriott
c739772436
3.0-rc5.
2019-09-16 09:01:56 +01:00
Nicholas Marriott
7a1abd66e7
These are in 3.0 now.
2019-09-16 09:01:27 +01:00
Nicholas Marriott
d70d24d360
Merge branch '3.0-rc'
2019-09-16 09:01:09 +01:00
Nicholas Marriott
f27cac585c
Add to CHANGES.
2019-09-16 09:00:56 +01:00
nicm
846d57e1b8
Make client exit if pane where input is going is closed.
2019-09-16 09:00:08 +01:00
Nicholas Marriott
54670d898f
Missing headers from compat/asprintf.c, from cyyever at outlook dot com.
2019-09-16 08:59:57 +01:00
nicm
c45b255a88
It is not longer necessary to double-escape ; in %%%, problem reported
...
by Theo Buehler.
2019-09-16 08:59:49 +01:00
nicm
5e4f371408
Fix swap-window -d to work as intended, GitHub issue 1879 from Sam Stuewe.
2019-09-16 08:59:36 +01:00
nicm
7e4439beb7
Remove check for same size - size has already been changed so this
...
breaks reflow.
2019-09-16 08:58:35 +01:00
Nicholas Marriott
74f150670a
In the right place.
2019-09-16 08:57:56 +01:00
Nicholas Marriott
3c355ec3b0
Add to CHANGES.
2019-09-16 08:57:22 +01:00
Thomas Adam
d346d692eb
Merge branch 'obsd-master'
2019-09-16 00:01:25 +01:00
nicm
63e07b245f
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.
2019-09-15 21:42:57 +00:00
Thomas Adam
a5e36a4bd6
Merge branch 'obsd-master'
2019-09-13 04:01:25 +01:00
Thomas Adam
658ecb0777
Merge branch 'obsd-master'
2019-09-11 16:48:58 +01:00
nicm
a23ce1b45f
Add window_marked_flag, GitHub issue 1887.
2019-09-11 06:43:17 +00:00
nicm
0feae4d8ae
Make client exit if pane where input is going is closed.
2019-09-10 19:35:34 +00:00
nicm
4b7e97ba53
Set up format tree for %if, GitHub issue 1896.
2019-09-10 07:50:33 +00:00
nicm
b6b7486423
Clarify server options slightly.
2019-09-09 11:47:25 +00:00
Thomas Adam
2e90841f2e
Merge branch 'obsd-master'
2019-09-09 12:02:32 +01:00
nicm
b31515fec3
Add cursor-down-and-cancel, from Mark Kelly.
2019-09-09 08:01:21 +00:00
Nicholas Marriott
9a476c5f29
Fix "make ctags", GitHub issue 1888.
2019-09-08 21:42:26 +01:00
Nicholas Marriott
5423bf6db8
Missing headers from compat/asprintf.c, from cyyever at outlook dot com.
2019-09-08 21:29:22 +01:00
Thomas Adam
648471ecee
Merge branch 'obsd-master'
2019-08-29 18:02:29 +01:00
nicm
7ce8135138
It is not longer necessary to double-escape ; in %%%, problem reported
...
by Theo Buehler.
2019-08-29 07:13:48 +00:00
Thomas Adam
4fa1f961f3
Merge branch 'obsd-master'
2019-08-28 20:02:24 +01:00
nicm
df0334d3b3
The resize event was never deciding to actually resize the pane if there
...
was output in the pane faster than the timer would fire, so change how
it works to only defer the timer again if the pane was actually resized
within the last timer period. Reported by James Tai in GitHub issue
1880.
2019-08-28 07:34:32 +00:00
Thomas Adam
6640790bdc
Merge branch 'obsd-master'
2019-08-27 10:02:31 +01:00
nicm
39c55d5b6f
Fix swap-window -d to work as intended, GitHub issue 1879 from Sam Stuewe.
2019-08-26 16:35:41 +00:00
nicm
79f09b4d85
Add support for the SD (scroll down) escape sequence, GitHub issue 1861.
2019-08-26 17:28:24 +01:00
nicm
e85ea9f67d
grid_view_delete_cells does need to clear, GitHub issue 1871.
2019-08-16 19:34:29 +01:00
Thomas Adam
2db9a18362
Merge branch 'obsd-master'
2019-08-16 17:02:29 +01:00
nicm
37583f0a69
Add a flag to reverse sort in the various choose modes, from Benjamin
...
Poirier in GitHub issue 1875.
2019-08-16 11:49:12 +00:00
Thomas Adam
06ad86053c
Merge branch 'obsd-master'
2019-08-16 11:02:31 +01:00
nicm
5644d37876
grid_view_delete_cells does need to clear, GitHub issue 1871.
2019-08-16 08:52:25 +00:00
Thomas Adam
ed0f2831b4
Merge branch 'obsd-master'
2019-08-15 11:02:48 +01:00
nicm
21fae50089
Default to previous search string for search-forward and
...
search-backward, from Leah Neukirchen.
2019-08-14 10:02:24 +00:00
nicm
0f243f0388
Add -Z flag to rotate-window, select-pane, swap-pane, switch-client to
...
preserve zoomed state. GitHub issue 1839.
2019-08-14 09:58:31 +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
Nicholas Marriott
eb8eeab05e
Merge branch '3.0-rc'
2019-08-01 18:52:44 +01:00
nicm
26f2740110
xterm 348 now disables margins when resized, so send DECLRMM again.
2019-08-01 18:52:33 +01:00
Thomas Adam
a2d7f380b2
Merge branch 'obsd-master'
2019-08-01 17:02:26 +01:00
nicm
c4744620af
Correctly wrap search in copy mode even if at the very top left, GitHub
...
issue 1845.
2019-08-01 14:31:39 +00:00
nicm
3d660b0023
Select the correct word for select-word when already at the start of a
...
word, GitHub issue 1820.
2019-08-01 14:30:31 +00:00
nicm
49bf7dc77e
xterm 348 now disables margins when resized, so send DECLRMM again.
2019-08-01 11:45:34 +00:00
Thomas Adam
11315c589a
Merge branch 'obsd-master'
2019-08-01 11:02:26 +01:00
nicm
2db5f9c215
Add -N to capture-pane to preserve trailing spaces, from Leon Winter.
2019-08-01 08:42:34 +00:00
Thomas Adam
cea87758e7
Merge branch 'obsd-master'
2019-08-01 09:02:26 +01:00
nicm
58bbce09e2
Remove check for same size - size has already been changed so this
...
breaks reflow.
2019-08-01 07:08:13 +00:00
Thomas Adam
900e583c7a
Merge branch 'obsd-master'
2019-07-30 13:02:26 +01:00
nicm
e698ee01dd
Reorder some text in the windows & panes section and add some better
...
explanation of modes.
2019-07-30 10:10:02 +00:00
Nicholas Marriott
2dd9a4fb9c
Bump version again.
2019-07-29 11:03:15 +01:00
Nicholas Marriott
b8b865fb17
Bump 3.0-rc up to master.
2019-07-29 10:53:04 +01:00
Nicholas Marriott
da552eb73b
Merge branch 'master' into 3.0-rc
2019-07-29 10:51:30 +01:00
Thomas Adam
b90a9fcd13
Merge branch 'obsd-master'
2019-07-26 23:02:27 +01:00
Nicholas Marriott
e19622b8db
Add to CHANGES.
2019-07-26 21:22:53 +01:00
nicm
8f40f791d9
Change "lost server" message to "server exited unexpectedly", from Neal
...
McBurnett in GitHub issue 1857.
2019-07-26 20:08:40 +00:00
Thomas Adam
bb9a123ddd
Merge branch 'obsd-master'
2019-07-24 23:02:30 +01:00
nicm
90dba3ec66
Mark pane status line jobs with FORMAT_STATUS also so it redraws when
...
they finish, GitHub issue 1852.
2019-07-24 21:16:17 +00:00
Thomas Adam
47712fc113
Merge branch 'obsd-master'
2019-07-19 09:02:26 +01:00
nicm
bf6d1aeaa4
Add a few vi(1) key aliases, from D Ben Knoble.
2019-07-19 07:20:51 +00:00
nicm
df7b5292ab
More man page fixes from lacygoill at lacygoill dot me, GitHub issue
...
1805.
2019-07-19 07:18:03 +00:00
Thomas Adam
7e7c8faa34
Merge branch 'obsd-master'
2019-07-17 21:02:26 +01:00
nicm
f6a9f6b4ad
Use the right client for if -b.
2019-07-17 17:49:23 +00:00
nicm
9e7774bb96
Clear overlay on normal key press.
2019-07-17 17:46:51 +00:00
Nicholas Marriott
7c78ebce45
cc, make, libevent, ncurses are dependencies for all builds so no need to list
...
them for VCS build.
2019-07-17 08:57:22 +01:00
Nicholas Marriott
80b82c8d14
Mention dependencies earlier.
2019-07-17 08:56:10 +01:00
Thomas Adam
8e33cc61b1
Merge branch 'obsd-master'
2019-07-16 17:02:25 +01:00
nicm
99852f8401
Fix check for wrapping when redrawing entire lines, GitHub issue 1836.
2019-07-16 14:11:52 +00:00
Thomas Adam
b749a39cdb
Merge branch 'obsd-master'
2019-07-16 13:02:24 +01:00
nicm
b89f2f28bb
Fix grid clear code to correctly clear with the default background
...
colour rather than ending up with the used count higher than the total
size, GitHub issue 1829.
2019-07-16 10:30:56 +00:00
Thomas Adam
a786a59176
Merge branch 'obsd-master'
2019-07-15 21:02:26 +01:00
nicm
eac055bfaf
Simplify code to work out if an extra line is needed in the cell.
2019-07-15 18:43:32 +00:00
nicm
6ceeceab7a
Make layout_fix_offsets take a window like layout_fix_panes.
2019-07-15 18:25:07 +00:00
Thomas Adam
c9216493cf
Merge branch 'obsd-master'
2019-07-10 17:02:25 +01:00
nicm
91b6145499
The command item changes so can't keep getting the target out of it, need to use
...
the one from the first item. Fixes crash reported by M Kelly.
2019-07-10 14:33:24 +00:00
Thomas Adam
9cbbdb90bf
Merge branch 'obsd-master'
2019-07-10 13:02:26 +01:00
nicm
f4d858e7a0
Add -F to refresh-client to specify flags for control clients - one flag
...
at the moment, no-output which turns off forwarding pane output. From
Thomas Adam. GitHub issue 1834.
2019-07-10 11:20:10 +00:00
Thomas Adam
98ef369b27
Merge branch 'obsd-master'
2019-07-09 17:02:26 +01:00
nicm
fc2016dbb6
Add a -H flag to send-keys to send literal keys given as hex numbers
...
(needed for control clients to send mouse sequences). Also add some
format flags for UTF-8 and SGR mouse mode. Requested by Bradley Smith in
GitHub issues 1832 and 1833.
2019-07-09 14:03:12 +00:00
Thomas Adam
177599efb7
Merge branch 'obsd-master'
2019-07-09 15:02:25 +01:00
nicm
ad11d49d64
Do not leak empty lines, GitHub issue 1824.
2019-07-09 13:19:36 +00:00
nicm
b74b8be680
Add j and k for navigation in menus, GitHub issue 1828.
2019-07-09 12:44:47 +00:00
Thomas Adam
ab244cc7ad
Merge branch 'obsd-master'
2019-07-08 23:02:26 +01:00
nicm
a4be028b76
Clear search marks before resize, GitHub issue 1823.
2019-07-08 20:29:11 +00:00
Thomas Adam
29b2d07b6b
Merge branch 'obsd-master'
2019-07-08 15:02:25 +01:00
nicm
cbe781203f
Use the clear history function for the 3J sequence rather than doing it manually.
2019-07-08 11:38:14 +00:00
Thomas Adam
3a4cf62aa9
Merge branch 'obsd-master'
2019-07-06 23:02:26 +01:00
nicm
ddf53d6e4e
Correctly adjust mouse position if the status line is at the top and
...
more than one line. GitHub issue 1822.
2019-07-06 20:56:34 +00:00
nicm
3635b3cd6c
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.
2019-07-06 20:37:29 +00:00
Thomas Adam
bc112a8c89
Merge branch 'obsd-master'
2019-07-05 11:02:26 +01:00
nicm
55c694a467
Do not use uninitialized buffer name.
2019-07-05 07:52:27 +00:00
Thomas Adam
be5af704ad
Merge branch 'obsd-master'
2019-07-02 23:02:26 +01:00
nicm
6a489fa7f6
Command prompt key presses need to avoid the command queue, GitHub issue
...
1817. Also a tmux.1 fix from jmc.
2019-07-02 20:09:19 +00:00
Thomas Adam
b9fbf02ad5
Merge branch 'obsd-master'
2019-07-01 09:02:25 +01:00
nicm
2da050413c
Add a "fill" style attribute to clear the entire format drawing area in
...
a colour, GitHub issue 1815.
2019-07-01 06:56:00 +00:00
Thomas Adam
abcd4bd246
Merge branch 'obsd-master'
2019-06-30 21:02:26 +01:00
nicm
cf30e0f935
Do not double free window if pane fails to start.
2019-06-30 19:21:53 +00:00
Thomas Adam
68c2fc6824
Merge branch 'obsd-master'
2019-06-28 17:02:26 +01:00
deraadt
4ff7bc3eb3
When system calls indicate an error they return -1, not some arbitrary
...
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
2019-06-28 13:35:05 +00:00
Thomas Adam
b6b4f86cfc
Merge branch 'obsd-master'
2019-06-28 09:02:24 +01:00
deraadt
6ce38b7395
asprintf returns -1, not an arbitrary value < 0. Also upon error the
...
(very sloppy specification) leaves an undefined value in *ret, so it is
wrong to inspect it, the error condition is enough.
discussed a little with nicm, and then much more with millert until we
were exasperated
2019-06-28 05:44:09 +00:00
Thomas Adam
a07df21e79
Merge branch 'obsd-master'
2019-06-27 21:02:25 +01:00
jmc
b434692db2
minor eol issues;
2019-06-27 17:29:16 +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
nicm
5a501a8ae2
Pass keys that aren't 0-9 on to normal key processing when display-panes
...
is active (restores previous behaviour).
2019-06-27 15:49:43 +01:00
Thomas Adam
c4a9299956
Merge branch 'obsd-master'
2019-06-26 21:02:26 +01:00
nicm
3a6d90adad
Fix a typo in window_pane_find_down (w not wp) and a missing PANE_STATUS_TOP.
2019-06-26 18:44:22 +00:00
nicm
87ea14328c
Pass keys that aren't 0-9 on to normal key processing when display-panes
...
is active (restores previous behaviour).
2019-06-26 18:28:31 +00:00
Thomas Adam
f797ac9ff6
Merge branch 'obsd-master'
2019-06-26 15:02:26 +01:00
nicm
c599ad63f8
Log window and pane resizes.
2019-06-26 13:05:24 +00:00
nicm
80d76612b8
Fix some comments (top/bottom not left/right).
2019-06-26 13:05:06 +00:00
nicm
d83f356218
Add #define for the pane status line option position numbers.
2019-06-26 13:03:47 +00:00
Thomas Adam
a1d4bf20f7
Merge branch 'obsd-master'
2019-06-24 13:02:26 +01:00
nicm
20b938bcb1
Expand arguments to C and s format modifiers (matches m which already expands).
2019-06-24 10:04:29 +00:00
Thomas Adam
c14b0d7c00
Merge branch 'obsd-master'
2019-06-24 11:02:26 +01:00
nicm
bdab595095
Trim trailing spaces when matching.
2019-06-24 08:20:02 +00:00
Thomas Adam
50c4c5917d
Merge branch 'obsd-master'
2019-06-23 13:02:26 +01:00
nicm
f1100f97f7
Do not always set scope for panes because the window check might fail,
...
GitHub issue 1810.
2019-06-23 10:00:29 +00:00
Thomas Adam
69a2f73449
Merge branch 'obsd-master'
2019-06-21 09:02:25 +01:00
nicm
e3c2772d2f
Man page fixes from lacygoill at lacygoill dot me.
2019-06-21 07:11:01 +00:00
Thomas Adam
70775b3c28
Merge branch 'obsd-master'
2019-06-20 23:02:28 +01:00
nicm
1d8e545bc1
Add -r to find-window for regex instead of fnmatch.
2019-06-20 20:31:04 +00:00
Thomas Adam
c4a92e5799
Merge branch 'obsd-master'
2019-06-20 21:02:27 +01:00
nicm
97a317a656
Need to always check focus even if not current window.
2019-06-20 19:29:38 +00:00
nicm
cb5e681ef6
FIx return of options_scope_from_name on error.
2019-06-20 18:13:04 +00:00
Thomas Adam
5aae58295e
Merge branch 'obsd-master'
2019-06-20 19:02:27 +01:00
Thomas Adam
4a44ae06bf
Merge branch 'obsd-master'
2019-06-20 17:02:26 +01:00
nicm
f4e835754c
Fix how regex substitution works with empty matches.
2019-06-20 15:40:14 +00:00
Thomas Adam
f8ad72b2ee
Merge branch 'obsd-master'
2019-06-20 15:02:26 +01:00
nicm
fc1df91e03
allow-rename and alternate-screen can be pane options.
2019-06-20 13:40:22 +00:00
nicm
c1573727f0
Still need to walk the options tree for user options.
2019-06-20 13:39:17 +00:00
Nicholas Marriott
a0e2c1b4ca
Add to CHANGES.
2019-06-20 13:08:22 +01:00
nicm
5f92f92908
Add a per-pane option set. Pane options inherit from window options (so
...
there should be no change to existing behaviour) and are set and shown
with set-option -p and show-options -p.
Change remain-on-exit and window-style/window-active-style to be pane
options (some others will be changed later).
This makes select-pane -P and -g unnecessary so no longer document them
(they still work) and no longer document set-window-option and
show-window-options in favour of set-option -w and show-options -w.
2019-06-20 11:59:59 +00:00
Thomas Adam
adca856806
Merge branch 'obsd-master'
2019-06-20 11:02:28 +01:00
Thomas Adam
03945276f7
Merge branch 'obsd-master'
2019-06-20 09:02:26 +01:00
nicm
c1ede507d9
Add a helper function to work out option table from name.
2019-06-20 07:41:29 +00:00
nicm
cd1fc42df6
Add a -A flag to show-options to show parent options as well.
2019-06-20 07:10:56 +00:00
nicm
ae541287d3
Expand command formats in %if and move the config file loading later (to
...
when the first client has identified) so all the client formats are
available, fixes problems reported by Thomas Sattler.
2019-06-20 06:51:36 +00:00
Nicholas Marriott
b3ca410bc3
Use KERN_PROC_CWD on NetBSD, from Leonardo Taccari.
2019-06-20 06:57:37 +01:00
Nicholas Marriott
ec151b79ec
Merge branch '3.0-rc'
2019-06-18 19:43:20 +01:00
nicm
797042584e
Handle comments more correctly inside {}, from Avi Halachmi.
2019-06-18 19:43:13 +01:00
Nicholas Marriott
df07723e20
Add a config.
2019-06-18 19:42:52 +01:00
Thomas Adam
ee9bc355f5
Merge branch 'obsd-master'
2019-06-18 13:02:28 +01:00
nicm
250fdd08be
Handle comments more correctly inside {}, from Avi Halachmi.
2019-06-18 11:17:40 +00:00
nicm
9272fe36e2
Add a cmdq_continue function rather than twiddling the flag directly.
2019-06-18 11:08:42 +00:00
Thomas Adam
5895f1d9f7
Merge branch 'obsd-master'
2019-06-15 09:02:26 +01:00
Nicholas Marriott
fadbf497a4
Merge branch '3.0-rc'
2019-06-15 07:45:58 +01:00
Nicholas Marriott
748633c887
Remove a stray abort.
2019-06-15 07:45:41 +01:00
Nicholas Marriott
d53c2d0ebe
Merge branch '3.0-rc'
2019-06-15 07:44:58 +01:00
Nicholas Marriott
08f55414e1
Remove cmd-list.c line in master.
2019-06-15 07:42:49 +01:00
Nicholas Marriott
7a4a286ea2
Merge branch '3.0-rc'
2019-06-15 07:38:01 +01:00
nicm
9ae658983c
Do not loop forever if a menu item contains invisible characters,
...
reported by Thomas Sattler.
2019-06-15 07:37:44 +01:00
nicm
03da0ced46
Use the right format modifier when comparing, and remove a couple of
...
unused variables.
2019-06-15 06:33:48 +00:00
Thomas Adam
539a6e7fa0
Merge branch 'obsd-master'
2019-06-14 19:02:26 +01:00
nicm
c95cd9ed5e
Do not loop forever if a menu item contains invisible characters,
...
reported by Thomas Sattler.
2019-06-14 15:35:58 +00:00
Nicholas Marriott
c22470bd14
3.0-rc3.
2019-06-14 16:17:34 +01:00
Nicholas Marriott
4c28ed4e4e
Merge branch '3.0-rc'
2019-06-14 16:10:38 +01:00
Nicholas Marriott
31cb95893e
#{ is no longer special.
2019-06-14 16:10:27 +01:00
Nicholas Marriott
ae83a5b010
Add to CHANGES.
2019-06-14 16:09:49 +01:00
Nicholas Marriott
29b70e2757
Merge branch '3.0-rc'
2019-06-14 16:06:20 +01:00
nicm
52b8274285
Do not crash if the environment variable is present but empty.
2019-06-14 16:06:12 +01:00
Nicholas Marriott
dcb2bb33a2
Merge branch '3.0-rc'
2019-06-14 16:05:26 +01:00
nicm
a924694820
Use the right client when working out where to save or load the buffer,
...
reported by kn@.
2019-06-14 16:04:57 +01:00
nicm
0a94dbe051
A couple of minor parser changes around conditions: 1) only treat #{
...
specially after a condition, otherwise as a comment (which is more as
most people expect) 2) allow formats to be quoted after a condition.
2019-06-14 16:04:52 +01:00
Nicholas Marriott
8da756c4f0
Restore missing functions.
2019-06-14 16:02:34 +01:00
Nicholas Marriott
7bb8ab1c0e
Add a bit to {}.
2019-06-14 15:54:36 +01:00
Thomas Adam
5e9757b30b
Merge branch 'obsd-master'
2019-06-14 15:51:09 +01:00
nicm
d1d3bbb458
Show filename with -v for source-file.
2019-06-14 13:34:45 +00:00
nicm
45203582ff
A couple of minor parser changes around conditions: 1) only treat #{
...
specially after a condition, otherwise as a comment (which is more as
most people expect) 2) allow formats to be quoted after a condition.
2019-06-14 12:04:11 +00:00
Nicholas Marriott
ebc9dcb3bb
Add a bit to {}.
2019-06-14 12:40:35 +01:00
Nicholas Marriott
4bbf941436
Merge branch '3.0-rc'
2019-06-14 10:34:05 +01:00
Nicholas Marriott
f31847db62
Improve description of #{.
2019-06-14 10:33:55 +01:00
nicm
f35f15b107
Use the right client when working out where to save or load the buffer,
...
reported by kn@.
2019-06-13 21:44:13 +00:00
nicm
eef11b64e1
Do not crash if the environment variable is present but empty.
2019-06-13 21:24:09 +00:00
jmc
b8a9c740bb
tweak previous;
2019-06-13 21:04:21 +00:00
nicm
26b9a8e49b
Set the cursor x at the same time as changing the y or the end of line
...
marker may not be redrawn.
2019-06-13 20:38:05 +00:00
nicm
3e72e98e3b
Add regular expression support for the format search, match and
...
substitute modifiers.
2019-06-13 19:46:00 +00:00
Thomas Adam
d5902eeae9
Merge branch 'obsd-master'
2019-06-12 11:02:25 +01:00
nicm
7e6a26cc9d
Do not use $TMUX to find the session because for windows in multiple
...
sessions it is wrong as often as it is right, and for windows in one
session it is pointless. Instead check TMUX_PANE to find the pane and
look for the MRU session as usual. GitHub issue 1793.
2019-06-12 09:10:29 +00:00
nicm
b12df01861
Pass target on to new commands with if -F.
2019-06-12 08:47:07 +00:00
nicm
9d42bd328c
Do not always resize the window back to its original size after applying
...
a layout, let the normal window resize process do it. This means windows
are not resized at all if window-size is manual, and are not resized
multiple times if later attached to a different size terminal.
2019-06-12 08:08:33 +00:00
nicm
e337c1ba7d
Do not try to parse command when unsetting, GitHub issue 1788.
2019-06-11 15:51:30 +01:00
Thomas Adam
057c04e32a
Merge branch 'obsd-master'
2019-06-11 15:02:26 +01:00
Nicholas Marriott
8e971f187a
Update README.md
2019-06-11 14:27:40 +01:00
Nicholas Marriott
e8814a7e93
Add to CHANGES.
2019-06-11 14:23:47 +01:00
nicm
1a9f9c09b4
Do not resize panes unless they are in an attached, active window. From
...
Morten M Neergaard in GitHub issue 1782.
2019-06-11 13:09:00 +00:00
Thomas Adam
d9ad461b5e
Merge branch 'obsd-master'
2019-06-09 09:02:26 +01:00
nicm
915097d312
Exiting alternate screen mode should restore cursor position and
...
attributes even if already outside alternate screen mode. GitHub issue
1789.
2019-06-09 06:50:24 +00:00
Thomas Adam
181841fb67
Merge branch 'obsd-master'
2019-06-09 01:02:26 +01:00
nicm
43796bf131
Do not try to parse command when unsetting, GitHub issue 1788.
2019-06-08 21:48:29 +00:00
Thomas Adam
e13c1e5320
Merge branch 'obsd-master'
2019-06-07 23:02:26 +01:00
nicm
e37f34facc
Do not load the config file if the server is exiting because it failed
...
to start, otherwise commands like lsk which start the server again can
end up looping infinitely. Also make the first client exit
correctly. Problem reported by Wael M Nasreddine.
2019-06-07 20:09:17 +00:00
Thomas Adam
c91680822d
Merge branch 'obsd-master'
2019-06-05 23:02:26 +01:00
Nicholas Marriott
37bb993f53
Merge branch '3.0-rc'
2019-06-05 21:06:30 +01:00
nicm
db5a7c1740
Need to increment the argument to skip the prefix earlier, fixes
...
repeated incremental search in copy mode, reported by Kaushal Modi in
GitHub issue 1780.
2019-06-05 21:06:06 +01:00
Thomas Adam
1ec3fb5f30
Merge branch 'obsd-master'
2019-06-05 21:02:26 +01:00
nicm
8f40796f05
Add a -v flag to source-file to show the commands and line numbers.
2019-06-05 20:00:53 +00:00
nicm
09e90c1645
Need to increment the argument to skip the prefix earlier, fixes
...
repeated incremental search in copy mode, reported by Kaushal Modi in
GitHub issue 1780.
2019-06-05 19:00:36 +00:00
Nicholas Marriott
f274b1b9d7
Merge branch '3.0-rc'
2019-06-05 15:13:56 +01:00
Nicholas Marriott
53914e50b9
RC2.
2019-06-05 15:09:42 +01:00
Nicholas Marriott
e252984993
If only one of -x or -y is given, use the calculated size for the
...
other. Also fix some warnings. Pointed out by Ben Boeckel.
2019-06-05 06:44:08 +01:00
Thomas Adam
d3f0c72e20
Merge branch 'obsd-master'
2019-06-03 21:02:26 +01:00
nicm
4ca1de1b8b
Add new-session -X and attach-session -x to send SIGHUP to parent when
...
detaching (like detach-client -P). From Colin Watson in GitHub issue
1773.
2019-06-03 18:28:37 +00:00
nicm
17bc11bd15
yacc(1) copies its union so it is not a good place to store
...
TAILQ_HEADs. Allocate them instead. Found from a problem reported by
sthen@.
2019-06-02 10:52:32 +01:00
Thomas Adam
f6933e43c2
Merge branch 'obsd-master'
2019-06-02 09:02:27 +01:00
nicm
900238a306
yacc(1) copies its union so it is not a good place to store
...
TAILQ_HEADs. Allocate them instead. Found from a problem reported by
sthen@.
2019-06-02 07:10:15 +00:00
Thomas Adam
027a7ac829
Merge branch 'obsd-master'
2019-06-01 19:02:26 +01:00
nicm
2c6c3a1d27
If only one of -x or -y is given, use the calculated size for the
...
other. Pointed out by Ben Boeckel.
2019-06-01 16:21:37 +00:00
Thomas Adam
8382ae65b7
Merge branch 'obsd-master'
2019-06-01 09:02:27 +01:00
Nicholas Marriott
ec690208a3
Move link.
2019-06-01 08:07:22 +01:00
Nicholas Marriott
b28b8312f2
Mention CHANGES.
2019-06-01 08:05:55 +01:00
Nicholas Marriott
c2d79add31
Should be caps.
2019-06-01 07:28:31 +01:00
Nicholas Marriott
feff55b92f
Try this instead.
2019-06-01 07:26:39 +01:00
Nicholas Marriott
3d29b97768
Link to file.
2019-06-01 07:24:57 +01:00
nicm
39ea8a2787
Need stdlib.h, from Ben Boeckel.
2019-06-01 06:20:22 +00:00
Thomas Adam
480cdedcac
Merge branch 'obsd-master'
2019-06-01 01:02:25 +01:00
Nicholas Marriott
88ee5a1a00
Add a crashing config.
2019-05-31 22:50:30 +01:00
nicm
2c5f3074bc
Fix warnings, from Ben Boeckel.
2019-05-31 21:41:17 +00:00
Nicholas Marriott
9d2ef8bf0d
Merge branch '3.0-rc'
2019-05-31 15:18:56 +01:00
nicm
1a3a973bd0
Allow % strings that are all numbers or %s, and fix a double free. Both
...
reported by George Nachman, GitHub issues 1765 and 1766.
2019-05-31 15:18:25 +01:00
Thomas Adam
adf9e77702
Merge branch 'obsd-master'
2019-05-31 15:02:27 +01:00
nicm
82e47403c6
Allow % strings that are all numbers or %s, and fix a double free. Both
...
reported by George Nachman, GitHub issues 1765 and 1766.
2019-05-31 11:34:09 +00:00
Thomas Adam
41b8bb4eef
Merge branch 'obsd-master'
2019-05-30 23:02:27 +01:00
nicm
b26523c26d
Remove a leftover abort and some fixes from cppcheck.
2019-05-30 20:54:03 +00:00
Nicholas Marriott
200a1c62c6
Merge branch '3.0-rc'
2019-05-30 13:12:50 +01:00
nicm
e4eec92852
No longer need to reduce line number by one.
2019-05-30 13:12:35 +01:00
Thomas Adam
2df757521a
Merge branch 'obsd-master'
2019-05-30 13:02:26 +01:00
nicm
8fb796b5b3
No longer need to reduce line number by one.
2019-05-30 10:04:33 +00:00
Thomas Adam
82b25a9d62
Merge branch 'obsd-master'
2019-05-30 11:02:27 +01:00
nicm
89d2c7eb26
I had hoped that non-xenl terminals had died out, at least in fairly
...
modern OSs, but no - DragonFly BSD's console returns to haunt us. Fix it
at least somewhat. GitHub issue 1763.
2019-05-30 07:42:41 +00:00
Nicholas Marriott
026450c1a8
Add test for xenl terminals.
2019-05-30 07:52:24 +01:00
Nicholas Marriott
c5e2532b67
Merge branch '3.0-rc'
2019-05-29 23:04:28 +01:00
nicm
75d112c484
The line number needs to be updated only after the \n is processed by
...
the parser, so store a flag and update it next time around. Also each
new line needs its own shared data.
2019-05-29 23:04:22 +01: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
Nicholas Marriott
95d68fcba1
Merge branch '3.0-rc'
2019-05-29 20:43:29 +01:00
Nicholas Marriott
a05c3a7aa6
Add command order test.
2019-05-29 20:43:11 +01:00
nicm
c17edd594e
The line number needs to be updated only after the \n is processed by
...
the parser, so store a flag and update it next time around. Also each
new line needs its own shared data.
2019-05-29 19:34:42 +00:00
Nicholas Marriott
47795d1695
Update .travis.yml from master.
2019-05-29 14:40:41 +01:00
Nicholas Marriott
2ce8e0110c
Don't even need this?
2019-05-29 14:32:49 +01:00
Nicholas Marriott
4425c1e1b3
Tweak again.
2019-05-29 14:24:09 +01:00
Nicholas Marriott
409d52ed41
Try OS X.
2019-05-29 14:19:37 +01:00
Thomas Adam
e90b5dcea3
Merge branch 'obsd-master'
2019-05-29 13:02:35 +01:00
Nicholas Marriott
ffcc60211d
Merge branch '3.0-rc'
2019-05-29 12:13:55 +01:00
Nicholas Marriott
7cdb1cfc8d
as -> and.
2019-05-29 12:13:46 +01:00
Nicholas Marriott
480ba99a16
Merge branch '3.0-rc'
2019-05-29 12:07:05 +01:00
Nicholas Marriott
8827b7f9a6
Tweak {} text.
2019-05-29 11:25:07 +01:00
nicm
a4424fbebf
Support \ooo escapes, from Avi Halachmi.
2019-05-29 10:08:36 +00:00
Nicholas Marriott
eefbbfde77
Merge branch '3.0-rc'
2019-05-28 21:05:00 +01:00
nicm
7eeb479705
Do not read past the end of the argument string if it is empty.
2019-05-28 21:04:41 +01:00
nicm
8d137233a9
Redraw status line if size changes, GitHub issue 1762. Also fix length
...
of target buffer when pasting into status line.
2019-05-28 21:04:35 +01:00
Thomas Adam
c96957583f
Merge branch 'obsd-master'
2019-05-28 21:02:28 +01:00
nicm
580cd16f4c
Redraw status line if size changes, GitHub issue 1762. Also fix length
...
of target buffer when pasting into status line.
2019-05-28 18:53:36 +00:00
nicm
4382538e4b
Do not read past the end of the argument string if it is empty.
2019-05-28 18:30:30 +00:00
Nicholas Marriott
e7a530fe4c
Next will be 3.1.
2019-05-28 15:48:31 +01:00
Nicholas Marriott
05d07413ff
3.0-rc.
2019-05-28 15:46:17 +01:00
Thomas Adam
b8360504f3
Merge branch 'obsd-master'
2019-05-28 15:02:26 +01:00
Nicholas Marriott
a062650d4b
Tweak menu option.
2019-05-28 14:49:50 +01:00
Nicholas Marriott
f012db9be9
Add regress for conf files.
2019-05-28 13:21:19 +01:00
nicm
299d4f3aaa
Exit 1 correctly if source-file fails.
2019-05-28 12:20:28 +00:00
Thomas Adam
eba6cf61c9
Merge branch 'obsd-master'
2019-05-28 13:02:27 +01:00
nicm
0ec410689c
Allow source-file to take multiple arguments.
2019-05-28 11:46:30 +00:00
nicm
e0fd295054
Change the default right click pane to open the menu if not in a mode
...
and no application mouse.
2019-05-28 10:27:11 +00:00
nicm
99a8469ee4
Add key bindings to open the window and pane menus (C-m and M-m for now).
2019-05-28 10:05:24 +00:00
nicm
12255411f2
Allow menu items to be disabled by putting a - at the start of their
...
name, rather than just including #[dim] which still allowed them to be
chosen.
2019-05-28 09:50:54 +00:00
Thomas Adam
c0116b2c5b
Merge branch 'obsd-master'
2019-05-28 09:02:26 +01:00
nicm
799a154b91
Change display-menu from taking a single string to a set of arguments,
...
which is much easier to work with. Based on a diff from Avi Halachmi.
2019-05-28 07:18:42 +00:00
Thomas Adam
793f4d89d6
Merge branch 'obsd-master'
2019-05-27 19:02:25 +01:00
nicm
90cd045cf3
Clarify newlines inside {} a little.
2019-05-27 16:22:32 +00:00
nicm
94f6488f0e
Go less crazy with horizontal separators on default menus.
2019-05-27 15:29:46 +00:00
Thomas Adam
d4bf4bd7c7
Merge branch 'obsd-master'
2019-05-27 15:02:28 +01:00
Nicholas Marriott
522d1bd309
Add.
2019-05-27 14:39:44 +01:00
Nicholas Marriott
a21de4c483
Mention <><=>=.
2019-05-27 14:39:06 +01:00
Nicholas Marriott
714311a696
Add {}.
2019-05-27 14:37:47 +01:00
Nicholas Marriott
9f0904ce6f
Remove unused fparseln compat code.
2019-05-27 14:28:05 +01:00
nicm
ae3eba6e08
Fix crash when killing the current window, reported by Jesus Rafael
...
Sanchez in GitHub issue 1760.
2019-05-27 12:48:52 +00:00
nicm
6b332127ca
Add an additional {} syntax for defining strings in the configuration
...
file, making it much tidier to define commands that contain other tmux
or shell commands (like if-shell). Also tweak bind-key to expect a
string if it is only given one argument, so {} can be used with it as
well. From Avi Halachmi.
2019-05-27 12:16:27 +00:00
Thomas Adam
bd40d704e2
Merge branch 'obsd-master'
2019-05-27 09:02:26 +01:00
nicm
65e5e14561
Fix the intended ordering of items in buffer mode - it should not always
...
be tag 0 when the tree is empty. GitHub issue 1759.
2019-05-27 06:50:04 +00:00
Thomas Adam
103e44d936
Merge branch 'obsd-master'
2019-05-26 21:02:26 +01:00
nicm
097973e3d5
Add keys for new menu items.
2019-05-26 18:43:43 +00:00
nicm
5fef946df4
Always redraw overlay if it is on (so status line doesn't redraw over it).
2019-05-26 18:27:52 +00:00
nicm
023c2c5392
Do not accept choice unless mouse has actually moved before.
2019-05-26 18:19:52 +00:00
nicm
e90d4a6021
Add formats for word and line under the mouse and use them to add some
...
items to the pane menu.
2019-05-26 17:34:45 +00:00
Thomas Adam
2e84d1cf03
Merge branch 'obsd-master'
2019-05-26 15:02:25 +01:00
nicm
6431005169
Add a way to append or prepend to a format if the length has been limited.
2019-05-26 12:02:42 +00:00
Thomas Adam
9beb3eb593
Merge branch 'obsd-master'
2019-05-26 13:02:26 +01:00
nicm
6dee409981
Some other platforms doesn't support fmemopen(3) (not unexpectedly), so
...
don't use it - since we only use getc/ungetc on the file anyway it is
easy not to.
2019-05-26 10:08:50 +00:00
Thomas Adam
f3fc81b178
Merge branch 'master' of github.com:ThomasAdam/tmux
2019-05-25 18:50:05 +01:00
Thomas Adam
463bd8abb9
Merge branch 'obsd-master'
2019-05-25 18:41:51 +01:00
nicm
a65a6d62d1
Add <, >, <=, >= for formats, GitHub issue 1747.
2019-05-25 16:51:10 +00:00
nicm
207789dc2d
Client name can actually be NULL, so use address in that case.
2019-05-25 10:46:55 +00:00
nicm
d7586d3d65
Use client name when logging command queue.
2019-05-25 10:44:09 +00:00
nicm
f8d3d247d8
Merge cmd_list_parse into cmd-parse.y so it can use the new alias
...
processing code.
2019-05-25 07:18:20 +00:00
nicm
6b0fa14470
Fix error handling in if-shell.
2019-05-25 07:15:53 +00:00
Nicholas Marriott
a69211aff5
Fix up regress test.
2019-05-25 08:09:23 +01:00
nicm
930245d7ff
Make cmd_log_argv take a printf-like format for the prefix.
2019-05-25 06:58:10 +00:00
espie
0dc8b7d5d8
unbreak build, okay nicm@
2019-05-23 21:36:42 +00:00
Thomas Adam
19a3a9ee20
Merge branch 'obsd-master'
2019-05-23 21:02:30 +01:00
nicm
f3e01ecc42
Fix line numbers - commands are added after the line ends so they need to
...
get line - 1.
2019-05-23 18:39:00 +00:00
nicm
6c260af56d
Use the same argument escaping code for options as well.
2019-05-23 18:33:53 +00:00
Nicholas Marriott
e817821104
Mention \.
2019-05-23 19:27:41 +01:00
nicm
f006116bac
Environment variables can start with { also.
2019-05-23 18:22:13 +00:00
Thomas Adam
43431e7e84
Merge branch 'obsd-master'
2019-05-23 17:02:25 +01:00
nicm
eb8b51effc
Fix drawing of status-right when it is aligned to the centre, GitHub
...
issue 1754.
2019-05-23 14:44:33 +00:00
Nicholas Marriott
389cf63cbc
Tweak text.
2019-05-23 15:18:20 +01:00
Thomas Adam
2148fe33cd
CHANGES: remove note to packagers
2019-05-23 15:16:10 +01:00
Thomas Adam
1a6540fea0
CHANGES: remove note to packagers
2019-05-23 15:15:42 +01:00
nicm
7d702f3cef
Don't remove group items for group 0 (no group).
2019-05-23 15:15:42 +01:00
nicm
d0c462f718
Fix length calculation for pasting UTF-8 characters in the status line,
...
GitHub issue 1753.
2019-05-23 15:15:42 +01:00
Thomas Adam
238d2aa870
CHANGES: mention yacc
2019-05-23 15:12:24 +01:00
Thomas Adam
6bb505eb73
CHANGES: mention yacc
2019-05-23 15:11:25 +01:00
Nicholas Marriott
83b9807370
Remove duplicate.
2019-05-23 15:11:25 +01:00
Nicholas Marriott
3e6e533779
Add yacc(1) bits.
2019-05-23 15:11:25 +01:00
nicm
27bfb56ad5
Break the argument escaping code into a separate function and use it to
...
escape key bindings in list-keys. Also escape ~ and ; and $ properly.
2019-05-23 14:03:44 +00:00
Thomas Adam
c49f2a0365
Merge branch 'obsd-master'
2019-05-23 15:02:28 +01:00
nicm
3e3eb1dd0f
Don't remove group items for group 0 (no group).
2019-05-23 13:08:43 +00:00
nicm
a4fe7e81c8
Fix length calculation for pasting UTF-8 characters in the status line,
...
GitHub issue 1753.
2019-05-23 12:47:52 +00:00
Nicholas Marriott
4ce26b0393
Remove duplicate.
2019-05-23 13:32:18 +01:00
Thomas Adam
82bf0f4d48
configure.ac: add AC_PROC_YACC
2019-05-23 13:12:03 +01:00
Thomas Adam
8590ee65e6
TRAVIS: add bison to build deps
2019-05-23 13:12:03 +01:00
Thomas Adam
d67b99c7e4
configure.ac: add AC_PROC_YACC
2019-05-23 13:09:34 +01:00
Thomas Adam
092c7bfeb8
TRAVIS: add bison to build deps
2019-05-23 13:06:47 +01:00
Nicholas Marriott
bf2cf33fc6
Add yacc(1) bits.
2019-05-23 13:04:41 +01:00
Thomas Adam
75aeb733f2
Merge branch 'obsd-master'
2019-05-23 13:02:27 +01:00
nicm
723010ba72
Replace the split parser code (cfg.c and cmd-string.c) with a single
...
parser using yacc(1). This is a major change but is clearer and simpler
and allows some edge cases to be made more consistent, as well as
tidying up how aliases are handled. It will also allow some further
improvements later.
Entirely the same parser is now used for parsing the configuration file
and for string commands. This means that constructs previously only
available in .tmux.conf, such as %if, can now be used in string commands
(for example, those given to if-shell - not commands invoked from the
shell, they are still parsed by the shell itself).
The only syntax change I am aware of is that #{} outside quotes or a
comment is now considered a format and not a comment, so #{ is now a
syntax error (notably, if it is at the start of a line).
This also adds two new sections to the man page documenting the syntax
and outlining how parsing and command execution works.
Thanks to everyone who sent me test configs (they still all parse
without errors - but this doesn't mean they still work as intended!).
Thanks to Avi Halachmi for testing and man page improvements, also to
jmc@ for reviewing the man page changes.
2019-05-23 11:13:30 +00:00
Nicholas Marriott
7ca2e2fe88
Add a config.
2019-05-23 11:57:04 +01:00
Thomas Adam
9d450cc6d0
Merge branch 'obsd-master'
2019-05-22 21:02:28 +01:00
nicm
5571d7a21c
Fix crash if window doesn't exist, GitHub issue 1751.
2019-05-22 18:58:31 +00:00
Nicholas Marriott
e353d0cab3
Another config.
2019-05-22 19:49:48 +01:00
Nicholas Marriott
282f7fbd37
Add a test config.
2019-05-22 13:31:20 +01:00
Nicholas Marriott
b68fc7f104
Two more configs.
2019-05-22 07:12:38 +01:00
Nicholas Marriott
54dfe36340
Another.
2019-05-21 17:07:08 +01:00
Thomas Adam
c4f4904f9b
More configs
2019-05-21 16:43:34 +01:00
Nicholas Marriott
d769fec8d6
More configs.
2019-05-21 14:41:07 +01:00
Nicholas Marriott
f1ce611345
Add another one.
2019-05-21 11:28:12 +01:00
Thomas Adam
3856116069
Merge branch 'obsd-master'
2019-05-21 09:02:37 +01:00
Nicholas Marriott
afe231c94c
Add a few test configs thanks to various people.
2019-05-21 08:02:17 +01:00
nicm
ae4cccb4f1
Fix a couple of Ta from Alphonse Mariya.
2019-05-21 07:01:14 +00:00
Thomas Adam
98ee93bde3
Merge branch 'obsd-master'
2019-05-20 15:02:40 +01:00
nicm
87d82170a6
Fix ordering of source-file with multiple files and add flags to load_cfg.
2019-05-20 13:23:32 +00:00
Thomas Adam
3a7e15511b
Merge branch 'obsd-master'
2019-05-20 13:02:36 +01:00
nicm
e128c7fcd8
Replace the various identical error callbacks with a single one in cmd-queue.c.
2019-05-20 11:46:06 +00:00
nicm
8db89f8efb
Add a helper to allocate a cmd_list.
2019-05-20 11:34:37 +00:00
Thomas Adam
c271cb9ff8
Merge branch 'obsd-master'
2019-05-20 07:02:36 +01:00
nicm
6e0c663a89
Fix the color space parameter in RGB SGR, from Brad Town.
2019-05-20 05:35:46 +00:00
Thomas Adam
56246c2936
README.md: mention TODO list on the tmux wiki
2019-05-19 13:31:09 +01:00
Thomas Adam
54da493476
Merge branch 'obsd-master'
2019-05-18 23:02:36 +01:00
nicm
82ebd98c5f
Move the single command flag (CMD_CONTROL) into the shared flags.
2019-05-18 21:14:10 +00:00
Nicholas Marriott
831c67c2d8
Remove TODO, moving onto website.
2019-05-18 14:44:31 +01:00
Nicholas Marriott
d6f7be6345
Add to CHANGES.
2019-05-18 13:29:38 +01:00
Thomas Adam
eb064e8a62
Merge branch 'obsd-master'
2019-05-17 09:02:36 +01:00
nicm
9b83b1daa6
Change a couple of ACS characters to be more sensible and add a few
...
missing ones, reported by Ricardo Banffy.
2019-05-17 05:48:25 +00:00
nicm
4acd345c6a
Initialize default size variables, from Thomas Adam.
2019-05-17 05:47:31 +00:00
Thomas Adam
d9ac0e7576
Merge branch 'obsd-master'
2019-05-15 22:50:42 +01:00
Nicholas Marriott
dcf0bc2cc9
Mention CONTRIBUTING.
2019-05-15 21:42:43 +01:00
nicm
cf4566b47b
Fix dragging when in view mode rather than copy mode, GitHub issue 1740
...
from Brad Town.
2019-05-15 19:25:53 +00:00
Nicholas Marriott
50e77536fe
Less headings.
2019-05-15 20:21:38 +01:00
Nicholas Marriott
cd4e467751
Kill tmux for logs.
2019-05-15 20:21:07 +01:00
Thomas Adam
9228fead48
Merge branch 'obsd-master'
2019-05-14 09:02:28 +01:00
nicm
38b8a198ba
Fix sizing of main-vertical and main-horizontal layouts, GitHub issue 1736.
2019-05-14 07:37:50 +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
nicm
1b0512aa7e
Always include Lock in the menu.
2019-05-13 20:07:02 +00:00
Thomas Adam
b5b5d35eee
Merge branch 'obsd-master'
2019-05-13 11:02:31 +01:00
nicm
c5f660e33a
Fix column width for copy mode commands.
2019-05-13 08:56:07 +00:00
Nicholas Marriott
e1e520d741
Clarify a little.
2019-05-13 09:51:51 +01:00
Thomas Adam
699d9d2fac
Merge branch 'obsd-master'
2019-05-12 21:02:27 +01:00
nicm
c3c3927c2b
Oops, removed too much in last change.
2019-05-12 18:18:30 +00:00
nicm
00f19b7f91
Fix some indentation and dead assignments.
2019-05-12 18:16:33 +00:00
Thomas Adam
42da951edf
README.md: avaailable -> available
...
Correct typo.
2019-05-12 18:37:32 +01:00
Thomas Adam
180bbab1fc
Merge branch 'obsd-master'
2019-05-12 11:02:25 +01:00
Nicholas Marriott
69c59c52b6
Spelling error.
2019-05-12 10:06:42 +01:00
Nicholas Marriott
19370631ea
Tweak text of menu CHANGES entry.
2019-05-12 10:05:10 +01:00
Nicholas Marriott
99c1853792
Scatter some `.
2019-05-12 10:00:31 +01:00
nicm
a131655235
Add simple menus to tree, client, buffer modes.
2019-05-12 08:58:09 +00:00
Thomas Adam
677bb168a9
Merge branch 'obsd-master'
2019-05-12 09:02:28 +01:00
nicm
c91323e4d6
Remove menu_create_from_items, I thought I would use it for some later
...
work but I don't need it.
2019-05-12 07:27:08 +00:00
Thomas Adam
50d1d04913
Merge branch 'obsd-master'
2019-05-11 09:02:29 +01:00
Nicholas Marriott
67e2f5869a
Mention -vv.
2019-05-11 08:34:08 +01:00
Nicholas Marriott
3a9c199ae7
New ISSUE_TEMPLATE from Nicolas CARPi.
2019-05-11 08:23:14 +01:00
Nicholas Marriott
bd6d0b3101
Formatted README.md, from Nicolas CARPi.
2019-05-11 08:19:14 +01:00
Nicholas Marriott
f1dd65cbdf
Another tweak.
2019-05-11 08:09:49 +01:00
Nicholas Marriott
c18d7c5fcb
Update CONTRIBUTING.md, mostly from Nicolas CARPi.
2019-05-11 08:07:35 +01:00
Nicholas Marriott
0d64531f66
Tweaks to README, some from me, some from Nicolas CARPi.
2019-05-11 07:55:28 +01:00
Nicholas Marriott
f44dafd224
Add to CHANGES.
2019-05-11 07:43:18 +01:00
nicm
198b0a23a2
Don't use arguments with It and -enum, pointed out by jmc.
2019-05-11 06:40:01 +00:00
nicm
ad27b7decd
Do not reduce window height by status line height for control mode
...
clients, from George Nachman.
2019-05-11 06:34:56 +00:00
Thomas Adam
fc00839adc
Update CHANGES
2019-05-10 22:27:33 +01:00
Thomas Adam
aa13bd4016
Merge branch 'obsd-master'
2019-05-10 22:10:38 +01:00
nicm
d62fd78655
Fix a typo in previous (, -> :).
2019-05-10 18:09:51 +00:00
nicm
6dcca5fda4
Add support for simple menus usable with mouse or keyboard. New command
...
display-menu shows a menu (bound to the mouse on status line by default)
and a couple of extra formats for the default menus.
2019-05-10 18:04:06 +00:00
Thomas Adam
c5f6ea5c0d
Merge branch 'obsd-master'
2019-05-10 17:02:27 +01:00
nicm
004a9b52f0
Add a function to draw a simple menu onto a screen.
2019-05-10 14:12:47 +00:00
Thomas Adam
e5f06d2cf6
Merge branch 'obsd-master'
2019-05-09 17:02:25 +01:00
nicm
cb10bfb8ef
Save mouse buttons as well as position.
2019-05-09 14:09:32 +00:00
Thomas Adam
2e00d775e4
Merge branch 'obsd-master'
2019-05-09 15:02:26 +01:00
nicm
21d9750450
send-keys also needs to insert key commands in the right order.
2019-05-09 13:12:59 +00:00
Thomas Adam
f431e20f3d
Merge branch 'obsd-master'
2019-05-09 11:02:25 +01:00
nicm
3c68e51609
Change swap-window -d to be the other way round (stay with src window),
...
so it works like swap-pane.
2019-05-09 08:39:09 +00:00
nicm
299b7289ea
Add formats to show if pane is the marked pane and if any marked pane is set.
2019-05-09 08:38:13 +00:00
Thomas Adam
4bc45fc95a
Merge branch 'obsd-master'
2019-05-08 21:02:25 +01:00
nicm
f9682d2e55
Add a flag to redraw only the overlay, and remove the overlay on resize.
2019-05-08 18:07:12 +00:00
nicm
a384245c5a
Adjust how mouse targets are found so they always have a session, window
...
and pane.
2019-05-08 18:05:03 +00:00
Thomas Adam
b24d7d9c95
Merge branch 'obsd-master'
2019-05-07 23:02:30 +01:00
Thomas Adam
453a62c672
Merge branch 'obsd-master'
2019-05-07 21:02:25 +01:00
nicm
89db309e10
Move around the display-panes identify code to make it a bit more
...
generic and hide the display-panes specific bits into
cmd-display-panes.c.
2019-05-07 20:01:41 +00:00
nicm
d53d3bce59
Adjust the same bit to adjust the selection for history-top and
...
history-bottom as for cursor-up and cursor-down. GitHub issue 1723.
2019-05-07 19:46:17 +00:00
Thomas Adam
3439c02e9d
Merge branch 'obsd-master'
2019-05-07 17:02:25 +01:00
schwarze
fcd0e3082b
Rename the ENVIRONMENT section which was squatting on the standard
...
manual page section and create a new ENVIRONMENT with the expected
content. Move some information that was misplaced below the -u
flag into that new section.
Feedback and OK nicm@ jmc@ tb@
2019-05-07 14:01:39 +00:00
Thomas Adam
d9767b8112
Merge branch 'obsd-master'
2019-05-07 13:02:27 +01:00
nicm
85a9c2f52b
Treat keys in identify mode (display-panes) specially and handle them
...
immediately rather than queuing them (the command can block the queue
which means they were not being seen until it finished which was too
late). Reported by denis@ and solene@, ok solene@.
2019-05-07 11:24:03 +00:00
nicm
69440d19b7
Do not use evbuffer_add_buffer because it is destructive and doesn't
...
work in newer libevent.
2019-05-07 10:25:15 +00:00
Nicholas Marriott
eac30a86d7
-attr -> -style.
2019-05-06 21:57:32 +01:00
Thomas Adam
d4177e954c
Merge branch 'obsd-master'
2019-05-03 23:02:28 +01:00
nicm
45ae9a8e35
Fix order of insertion in load_cfg.
2019-05-03 21:21:00 +00:00
nicm
9f75635596
Allow panes to be empty (no command), output can be piped to them with
...
split-window or display-message -I.
2019-05-03 20:44:24 +00:00
Thomas Adam
4d505574dc
Merge branch 'obsd-master'
2019-05-03 21:02:26 +01:00
nicm
e8e4f4ec3e
Insert after the right element on queue.
2019-05-03 18:59:58 +00:00
nicm
4097257bef
Do not store the mouse position we calculate as the start of a drag back
...
into the mouse event that later code uses, it has been adjusted and they
should use the original position. GitHub issue 1710.
2019-05-03 18:42:40 +00:00
Thomas Adam
a14512e23e
Merge branch 'obsd-master'
2019-05-03 19:02:27 +01:00
nicm
84e4652513
Use the right index for user-keys.
2019-05-03 18:00:19 +00:00
nicm
fc3d85e34b
Fix mouse positioning when the pane is not entirely visible.
2019-05-03 16:51:29 +00:00
Nicholas Marriott
43656d4ea7
Sync up some tmux.1 bits.
2019-05-03 17:12:30 +01:00
Thomas Adam
fff85d854e
Merge branch 'obsd-master'
2019-05-03 17:04:11 +01:00
nicm
cf6075fb29
Correct ordering when adding after an existing item.
2019-05-03 15:43:01 +00:00
nicm
33298d6df6
Instead of processing keys all together, put them up on the client
...
command queue so they are ordered correctly with the commands that they
execute.
2019-05-03 14:51:30 +00:00
nicm
4bb48998e0
Fix reverse attribute in status line, GitHub issue 1709.
2019-05-03 10:00:48 +00:00
nicm
5d9e591ae8
Fix up some bits about window-size that seem to have got lost.
2019-05-02 20:12:40 +00:00
Thomas Adam
4d16df9312
Merge branch 'obsd-master'
2019-05-01 09:02:27 +01:00
Nicholas Marriott
18e554aa61
Merge tag '2.9a'
...
2.9a
2019-05-01 07:29:23 +01:00
Nicholas Marriott
4cb13d95ba
Add to CHANGES.
2019-05-01 07:16:20 +01:00
Nicholas Marriott
e36d6ee06a
Version 2.9a.
2019-05-01 07:12:14 +01:00
nicm
901eed7b71
Do not loop forever if there is a nonprintable character in the format.
2019-05-01 07:12:02 +01:00
nicm
750d5830c2
Don't redraw control clients, from George Nachman.
2019-05-01 07:08:04 +01:00
nicm
e286178aa7
Unbreak main-vertical and main-horizontal layouts.
2019-05-01 07:07:52 +01:00
nicm
c176361788
Remove unused variable from Thomas Adam.
2019-05-01 06:07:14 +00:00
Thomas Adam
dc7e53897a
Merge branch 'obsd-master'
2019-04-30 21:02:26 +01:00
nicm
429c4bc51b
Fix user options after show-hooks merge, GitHub issue 1704.
2019-04-30 18:02:03 +00:00
Nicholas Marriott
1156d91cf8
Simple -C sanity test.
2019-04-30 18:39:07 +01:00
Thomas Adam
4c5b0fbbcc
Merge branch 'obsd-master'
2019-04-30 09:02:29 +01:00
nicm
5a288b1efe
Don't redraw control clients, from George Nachman.
2019-04-30 06:21:30 +00:00
nicm
82c789ee58
Fix memory leak in window tree search, from Amos Bird.
2019-04-30 06:19:51 +00:00
Nicholas Marriott
7e0f9ab3eb
Don't think I will do this.
2019-04-29 21:48:15 +01:00
Nicholas Marriott
87bd8965c6
Add to CHANGES & remove from TODO.
2019-04-29 20:18:07 +01:00
Thomas Adam
2aa517c805
Merge branch 'obsd-master'
2019-04-29 09:02:25 +01:00
nicm
ec81bd2399
Add support for keys to jump between matching brackets - C-M-f and C-M-b
...
in emacs, % in vi. Suggested by and help from Chris Barber in GitHub
issue 1666.
2019-04-29 06:55:21 +00:00
Thomas Adam
3ab229da70
Merge branch 'obsd-master'
2019-04-28 23:02:30 +01:00
Nicholas Marriott
2cecabd75e
Fix gseq use in RGB colour script.
2019-04-28 22:16:34 +01:00
nicm
c4b0da5513
Support multiple occurances of the same argument. Use this for a new
...
flag -e to new-window, split-window, respawn-window, respawn-pane to
pass environment variables into the newly created process. From Steffen
Christgau in GitHub issue 1697.
2019-04-28 20:05:50 +00:00
Thomas Adam
5489796737
Merge branch 'obsd-master'
2019-04-27 20:09:07 +01:00
Thomas Adam
85f09f9a4c
Merge branch 'obsd-master'
2019-04-26 13:02:37 +01:00
Nicholas Marriott
293fd0d258
Update CHANGES and TODO.
2019-04-26 12:44:25 +01:00
nicm
dfb7bb6830
Merge hooks into options and make each one an array option. This allows
...
multiple commands to be easily bound to one hook. set-hook and
show-hooks remain but they are now variants of set-option and
show-options. show-options now has a -H flag to show hooks (by default
they are not shown).
2019-04-26 11:38:51 +00:00
nicm
f1e14f86c4
Destroy panes before options to avoid crash when forced into a mode by a
...
hook.
2019-04-26 10:24:26 +00:00
nicm
6644d209d2
Unbreak main-vertical and main-horizontal layouts.
2019-04-26 10:15:40 +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
nicm
a609e6361a
Need a fallback for -2 for aixterm colours.
2019-04-25 19:03:43 +00:00
nicm
32a81e197b
Make options_tostring allocate its result instead of using a stack
...
buffer (needed for something in the future).
2019-04-25 18:18:55 +00:00
Thomas Adam
f2c0605d6d
Merge branch 'obsd-master'
2019-04-25 17:02:37 +01:00
nicm
1677bb0dea
Need to escape ].
2019-04-25 15:35:07 +00:00
Nicholas Marriott
dddc544b8f
Update CHANGES.
2019-04-25 13:00:32 +01:00
Thomas Adam
643eecde86
Merge branch 'obsd-master'
2019-04-25 09:02:36 +01:00
nicm
567d3e27ab
Automatically scroll if dragging to create a selection with the mouse
...
and the cursor reaches the top or bottom line.
2019-04-25 06:34:57 +00:00
Nicholas Marriott
a2e08b587a
Merge branch '2.9-rc'
2019-04-25 07:29:02 +01:00
Nicholas Marriott
cb75ec25c8
2.9 now.
2019-04-24 22:35:23 +01:00
nicm
7d06216289
Do not loop forever if there is a nonprintable character in the format.
2019-04-24 22:34:56 +01:00
Thomas Adam
4ab208ecc8
Merge branch 'obsd-master'
2019-04-24 22:09:57 +01:00
nicm
6aa0bedad2
Use bg not fg when adjusting for aixterm, from Ailin Nemui.
2019-04-24 20:32:31 +00:00
nicm
c6e39976c6
Do not loop forever if there is a nonprintable character in the format.
2019-04-24 20:27:52 +00:00
Thomas Adam
c869366133
Merge branch 'obsd-master'
2019-04-23 23:02:42 +01:00
nicm
b9022e33ea
Somehow missed these bits in last commit.
2019-04-23 20:40:03 +00: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
b0d7623b7e
Merge branch 'obsd-master'
2019-04-23 13:02:37 +01:00
Thomas Adam
4a96f599f6
Merge branch 'obsd-master'
2019-04-23 11:02:36 +01:00
nicm
564e44adc6
Add -no-clear variants of copy-selection and copy-pipe which do not
...
clear the selection after copying. Make copy-pipe clear the selection by
default to be consistent with copy-selection. From Avi Halachmi.
2019-04-23 09:39:07 +00:00
nicm
6752f41c2a
Do not try to resize if the parent cell is NULL, problem reported by
...
Sunil Nimmagadda.
2019-04-23 09:15:24 +00:00
Nicholas Marriott
51c09bf2b4
Merge branch '2.9-rc'
2019-04-18 22:14:55 +01:00
Nicholas Marriott
d24a44230a
Update CHANGES for 2.9.
2019-04-18 22:12:15 +01:00
Nicholas Marriott
8d752f5aaa
Update CHANGES.
2019-04-18 22:11:46 +01:00
Nicholas Marriott
e7827f8bc2
Remove duplicate entry.
2019-04-18 14:16:19 +01:00
Thomas Adam
f980e868dd
Merge branch 'obsd-master'
2019-04-18 14:11:22 +01:00
Thomas Adam
3c1f0cfc34
Merge branch 'obsd-master'
2019-04-18 14:08:13 +01:00
nicm
5b9211d827
Copy the code to infer the option type to show-options and document it.
2019-04-18 12:22:07 +00:00
nicm
3f189945d8
Pass target client and session to load_cfg from source-file so formats
...
work. Reported by Thomas Sattler.
2019-04-18 11:07:28 +00:00
nicm
f3ab05e7cd
Update session activity on focus event, from tafryn at gmail dot com.
2019-04-18 10:11:52 +00:00
jmc
2219f7cc73
mark up punctuation-as-macro-args properly;
2019-04-17 16:34:35 +00:00
nicm
1fd3b9ec1c
Fix minimum size check on split and size of first cell on spread out
...
with a pane status line.
2019-04-17 14:44:33 +00:00
nicm
da31eddadc
Rewrite main-vertical and horizontal to use the common spread out code
...
and to handle the case where the panes won't fit into the existing
window size.
2019-04-17 14:44:14 +00:00
nicm
c660e46149
Set the window size as well as the layout size when using the preset
...
layouts.
2019-04-17 14:43:49 +00:00
nicm
e3b1358bbc
Do not let the size of the pane status screen go negative.
2019-04-17 14:41:08 +00:00
nicm
5943cd1907
Document that switch-client can change all of session,window,pane and
...
check for % in the target as well as ":.".
2019-04-17 14:39:37 +00:00
nicm
78287e27c8
Break new window and pane creation common code from various commands and
...
window.c into a separate file spawn.c.
2019-04-17 14:37:48 +00:00
Nicholas Marriott
82bc2c87a9
Add to TODO.
2019-04-17 09:10:23 +01:00
nicm
cd4c94f76b
Current window style also needs to be tested for default.
2019-04-11 09:34:22 +01:00
Nicholas Marriott
bba1809eac
Merge a number of fixes from master for layouts, mostly prompted by testing by
...
Thomas Sattler.
2019-04-11 09:26:34 +01:00
Nicholas Marriott
e6ee3e9504
Warning fixes from Carlo Marcelo Arenas Belón.
2019-04-10 19:27:09 +01:00
Nicholas Marriott
1c1ec84aa3
Fix minimum size check on split and size of first cell on spread out with a
...
pane status line.
2019-04-10 14:54:02 +01:00
Nicholas Marriott
f3fcf977e4
Use the right winlink pointer in new-window.
2019-04-10 11:40:59 +01:00
Nicholas Marriott
4a3ac3bd26
Remove unused variable.
2019-04-10 07:27:21 +01:00
Nicholas Marriott
3c5d3a3780
Add PATH_DEFPATH to compat.h from Carlo Marcelo Arenas Belón.
2019-04-09 21:31:50 +01:00
Nicholas Marriott
fe44f90e5b
Do not let the size of the pane status screen go negative.
2019-04-09 21:30:03 +01:00
Nicholas Marriott
031e9bc854
Rewrite main-vertical and horizontal to use the common spread out code and to
...
handle the case where the panes won't fit into the existing window size.
2019-04-09 21:15:00 +01:00
Nicholas Marriott
0cbccc90ab
Set the window size as well as the layout size when using the preset layouts
...
and calculate the sizes correctly.
2019-04-09 20:38:43 +01:00
Nicholas Marriott
71d90c11dd
Solaris has no paths.h.
2019-04-09 07:52:54 +01:00
Thomas Adam
2546572e8e
Merge branch 'obsd-master'
2019-04-08 21:02:37 +01:00
nicm
835ccbac46
select-word was missing from the command list, from pawel-slowik.
2019-04-08 17:55:51 +00:00
Nicholas Marriott
b5b67c5386
Document that switch-client can change all of session,window,pane and check for
...
% in the target as well as ":.".
2019-04-08 10:38:50 +01:00
Thomas Adam
fbe488e4de
Merge branch 'obsd-master'
2019-04-07 23:02:37 +01:00
nicm
bb629f3be7
Current window style also needs to be tested for default.
2019-04-07 20:18:20 +00:00
Thomas Adam
883a428e27
Linux: remove include for util.h
...
Linux doesn't require this header.
2019-04-07 15:39:58 +01:00
Nicholas Marriott
e44e2c48dd
Do not log NULL command.
2019-04-07 13:16:55 +01:00
Nicholas Marriott
ece737274e
Forgot to add the file.
2019-04-07 13:11:55 +01:00
Nicholas Marriott
5ece386cdf
Break new window and pane creation common code from various commands and
...
window.c into a separate file spawn.c.
2019-04-07 13:01:03 +01:00
Nicholas Marriott
7653328ce7
Remove from TODO one thing that I don't think is necessary and one that is
...
done.
2019-04-07 12:18:40 +01:00
Nicholas Marriott
fc111d2b12
Fix a duplicate entry in CHANGES and remove an item from TODO.
2019-04-07 12:07:26 +01:00
Thomas Adam
04402db616
Merge branch 'obsd-master'
2019-04-05 23:02:36 +01:00
nicm
1b5a8a0f09
Fix some warnings, from Thomas Adam.
2019-04-05 20:32:31 +00:00
Nicholas Marriott
e33b623f21
Merge branch '2.9-rc'
2019-04-04 18:31:54 +01:00
nicm
73b54a0e5f
Fix size check for splitw -f and top level pane size for tiled layout,
...
problems reported by Thomas Sattler.
2019-04-04 18:31:35 +01:00
Thomas Adam
5a97af7961
Merge branch 'obsd-master'
2019-04-04 13:02:37 +01:00
nicm
f4aefb738e
Fix size check for splitw -f and top level pane size for tiled layout,
...
problems reported by Thomas Sattler.
2019-04-04 10:25:35 +00:00
nicm
481c3f3f2e
screen_write_fast_copy can no longer assume the target screen is default
...
(it isn't for the pane status lines).
2019-04-03 09:31:32 +01:00
Thomas Adam
cb039b986e
Merge branch 'obsd-master'
2019-04-03 09:02:41 +01:00
nicm
f6c54f3f03
Do not load /etc/tmux.conf if given -f.
2019-04-03 06:43:19 +00:00
nicm
06d58b3b7b
screen_write_fast_copy can no longer assume the target screen is default
...
(it isn't for the pane status lines).
2019-04-03 06:43:04 +00:00
nicm
8968acd678
Silence flag should use the same option as activity, reported by Thomas
...
Sattler.
2019-04-02 22:20:36 +01:00
Thomas Adam
c9ef144dca
Merge branch 'obsd-master'
2019-04-02 21:02:37 +01:00
nicm
09f71ed1b2
Silence flag should use the same option as activity, reported by Thomas
...
Sattler.
2019-04-02 18:41:24 +00:00
Nicholas Marriott
f0ddc301b7
Add CHANGES.
2019-04-02 17:02:09 +01:00
Nicholas Marriott
916c4c499d
Version RC2.
2019-04-02 11:12:24 +01:00
Nicholas Marriott
fac792dc27
Update regress from master.
2019-04-02 11:11:19 +01:00
nicm
bbcfee362f
Store and restore cursor across reflow by working out a position based
...
on unwrapped lines, rather than a grid offset. Fixes problems reported
by Thomas Sattler and Paul de Weerd.
2019-04-02 11:11:12 +01:00
Thomas Adam
bfc1f0ca62
Merge branch 'obsd-master'
2019-04-02 11:02:44 +01:00
nicm
7bcc0d16f2
Add an argument to copy commands to set the prefix for the buffer name,
...
allows buffers for different sessions to be named separately.
2019-04-02 09:03:39 +00:00
Nicholas Marriott
f03776c262
Don't use a config file in tests.
2019-04-02 09:53:02 +01:00
nicm
ffa4d48967
Store and restore cursor across reflow by working out a position based
...
on unwrapped lines, rather than a grid offset. Fixes problems reported
by Thomas Sattler and Paul de Weerd.
2019-04-02 08:45:32 +00:00
Nicholas Marriott
79c3fd4f39
Add cursor regression tests.
2019-04-02 09:44:28 +01:00
nicm
6d071c468c
Restore a check to stop scrolled lines becoming larger than total lines,
...
fixes a crash reported by Thomas Sattler.
2019-04-02 07:33:33 +01:00
Thomas Adam
294accea1b
Merge branch 'obsd-master'
2019-04-01 21:02:37 +01:00
nicm
792fcb1dbf
Restore a check to stop scrolled lines becoming larger than total lines,
...
fixes a crash reported by Thomas Sattler.
2019-04-01 19:33:38 +00:00
Nicholas Marriott
da359269cb
Merge branch '2.9-rc'
2019-03-29 11:20:15 +00:00
nicm
92da105b58
Free old strings after they have been expanded in format_choose.
2019-03-29 11:19:55 +00:00
Thomas Adam
ecc5cea09b
Merge branch 'obsd-master'
2019-03-29 10:02:36 +00:00
nicm
d68a17a1df
Free old strings after they have been expanded in format_choose.
2019-03-29 09:33:24 +00:00
Nicholas Marriott
52cb7a6382
Merge branch '2.9-rc'
2019-03-29 07:05:50 +00:00
nicm
00fda57ddf
Fix offset of list ranges.
2019-03-29 07:05:40 +00:00
Thomas Adam
405bb8435c
Merge branch 'obsd-master'
2019-03-29 00:02:36 +00:00
nicm
c6c4960b35
Fix offset of list ranges.
2019-03-28 22:18:46 +00:00
Thomas Adam
2c4f2393ec
Merge branch 'obsd-master'
2019-03-28 22:02:37 +00:00
nicm
08bc226527
Expand session and window formats for buffer filters.
2019-03-28 21:05:15 +00:00
Thomas Adam
6b38334b28
Merge branch 'obsd-master'
2019-03-27 14:02:36 +00:00
nicm
c1f0918f8a
Fix stop-selection, from Avi Halachmi.
2019-03-27 13:25:11 +00:00
Thomas Adam
6861045d38
Merge branch 'obsd-master'
2019-03-26 22:02:36 +00:00
nicm
9f8d193b11
Break copy mode commands into individual functions instead of a big load
...
of if statements.
2019-03-26 21:01:19 +00:00
Nicholas Marriott
a13e57f701
Update TODO.
2019-03-26 17:04:47 +00:00
Nicholas Marriott
e722ba38e3
There is no examples directory anymore.
2019-03-26 15:10:05 +00:00
Nicholas Marriott
b1dc2b5353
Merge branch '2.9-rc'
2019-03-26 15:05:41 +00:00
Nicholas Marriott
e0e08fcd2d
Update CHANGES & TODO.
2019-03-26 15:05:28 +00:00
Nicholas Marriott
0a913b09cf
For 3.0.
2019-03-26 14:38:20 +00:00
Nicholas Marriott
4f7a5d1e40
2.9 bits.
2019-03-26 14:37:27 +00:00
Thomas Adam
6ac84585e6
Merge branch 'obsd-master'
2019-03-25 20:02:38 +00:00
nicm
d21f8ecc13
Add StatusDefault binding for the mouse on any otherwise unassigned
...
parts of the status line, from Avi Halachmi.
2019-03-25 18:59:55 +00:00
Thomas Adam
5e2150cf18
Merge branch 'obsd-master'
2019-03-25 16:00:36 +00:00
Thomas Adam
a07ad6b5a3
Merge branch 'obsd-master'
2019-03-25 15:57:47 +00:00
nicm
ff4d7d541f
Fix columns of cursor_character format in list.
2019-03-25 14:29:36 +00:00
Nicholas Marriott
e8f4ca6a52
Tweaks to example config.
2019-03-25 12:05:58 +00:00
Nicholas Marriott
a084f2dcb7
Add to TODO.
2019-03-25 10:06:03 +00:00
nicm
517d673dbe
Ignore mouse on status line which are not part of a range, GitHub issue 1649.
2019-03-25 09:22:09 +00:00
nicm
b4a301f8fe
Clarify that styles can be space or comma separated, from Stephen Zapatka.
2019-03-22 10:45:17 +00:00
nicm
04a1fc9d36
I forgot to document resize-window, window-size and default-size;
...
reminded by okan@.
2019-03-22 09:33:04 +00:00
Thomas Adam
0292243b29
Merge branch 'obsd-master'
2019-03-20 20:02:37 +00:00
Nicholas Marriott
ef38a420b2
Update TODO.
2019-03-20 20:02:13 +00:00
Nicholas Marriott
7536d57b16
Update TODO.
2019-03-20 19:26:20 +00:00
nicm
9ee1a8f701
Improve cursor positioning after reflow by storing the position as an
...
offset into the entire history before reflow and restoring it aftewards.
2019-03-20 19:19:11 +00:00
Nicholas Marriott
0e0f2f765b
Update CHANGES.
2019-03-20 14:01:46 +00:00
Thomas Adam
bff957a475
Merge branch 'obsd-master'
2019-03-20 08:02:38 +00:00
nicm
ed962e7612
Include function name in logging.
2019-03-20 07:30:05 +00:00
nicm
458b87150b
Do not leak ranges on error.
2019-03-20 07:28:31 +00:00
nicm
ae46a19b8e
Ignore invalid styles rather than throwing away the whole format, this
...
matches what we used to do.
2019-03-20 07:24:03 +00:00
nicm
3b959c05ff
Bit more logging to show drawing errors.
2019-03-20 07:13:02 +00:00
Thomas Adam
46f642b030
Merge branch 'obsd-master'
2019-03-19 22:02:36 +00:00
nicm
8b74e959ef
Include window-status-style and window-status-current style in the format.
2019-03-19 21:09:51 +00:00
Thomas Adam
320237fdb8
Merge branch 'obsd-master'
2019-03-19 20:02:37 +00:00
nicm
161b57869e
Add a cursor_character format.
2019-03-19 19:01:50 +00:00
Nicholas Marriott
92732a2540
Add to TODO.
2019-03-19 14:39:55 +00:00
Thomas Adam
b3eebdec48
Merge branch 'obsd-master'
2019-03-19 14:02:36 +00:00
nicm
b24c9e34a9
Rename the first KEY BINDINGS section to DEFAULT KEY BINDINGS.
2019-03-19 13:35:42 +00:00
Thomas Adam
073d439965
Merge branch 'obsd-master'
2019-03-19 00:02:39 +00:00
Thomas Adam
f956c17c09
Merge branch 'obsd-master'
2019-03-18 22:02:36 +00:00
nicm
0406ec0ec2
Free temporary screens when writing format.
2019-03-18 21:55:04 +00:00
nicm
f34ebfed76
The individual -fg, -bg and -attr options have been deprecated (in
...
favour of -style), undocumented and hidden from show-options since
2014. Remove them, except for status-fg and status-bg.
2019-03-18 21:46:01 +00:00
Thomas Adam
962f255ee8
Merge branch 'obsd-master'
2019-03-18 21:24:49 +00:00
nicm
c62404673e
Add some bits to the STATUS LINE section about the new option.
2019-03-18 21:01:04 +00:00
nicm
979313832c
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.
2019-03-18 20:53:33 +00:00
Thomas Adam
1d6fe43c7b
Merge branch 'obsd-master'
2019-03-18 18:02:38 +00:00
Thomas Adam
4cbf596dc5
Merge branch 'obsd-master'
2019-03-18 15:30:55 +00:00
nicm
d738d51688
Mode init needs to be fired with the mode on the list or it will not be
...
resized correctly.
2019-03-18 15:25:36 +00:00
Thomas Adam
acb2413852
Merge branch 'obsd-master'
2019-03-18 15:07:51 +00:00
nicm
2628af573d
Add format variables for the default formats for the various modes
...
(tree_mode_format and so on) and add a -a flag to display-message to
list variables with values.
2019-03-18 14:10:25 +00:00
Nicholas Marriott
aa2b3472c5
Update TODO.
2019-03-18 12:00:10 +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
d2d43987d0
With force, kill previous job before starting new. Fixes problem
...
reported by Scott Mcdermott in GitHub issue 1627.
2019-03-18 09:46:42 +00:00
nicm
bd3332b211
Break description of styles into its own section.
2019-03-17 19:33:12 +00:00
Nicholas Marriott
3a298454ce
Add to TODO.
2019-03-17 08:05:58 +00:00
nicm
b588b1729a
Use a pointer for the active screen in the status line instead of
...
copying them around all the time.
2019-03-16 19:12:13 +00:00
nicm
818fda0363
Give status_save_old the client so it can do the reinit too.
2019-03-16 17:53:55 +00:00
nicm
b4f5b99e4b
Tidy and rename some bits of status line code.
2019-03-16 17:14:07 +00:00
nicm
e8b33af780
Add a way to set individual defaults for an array option.
2019-03-15 21:54:47 +00:00
nicm
1d306e926a
Add a : to make error messages clearer.
2019-03-15 15:20:00 +00:00
nicm
33595a255f
Copy recursion counter into new formats when looping.
2019-03-15 15:02:25 +00:00
nicm
85044a634b
Move status line free into its own function.
2019-03-15 14:46:58 +00:00
nicm
2d71bef0ca
Remove unused member of struct client.
2019-03-15 10:48:05 +00:00
nicm
f6d34f066c
Only print format logging when the flag is set, even if also sending to log_debug.
2019-03-15 10:22:57 +00:00
nicm
672c49d512
The pane and window loops need to pass the window and pane tags when
...
they build their format.
2019-03-15 10:07:24 +00:00
nicm
27578815da
Add a -v flag to display-message to show verbose messages as the format
...
is parsed, this gives the user a way to debug problems with formats
rather than just being confronted with (for example) a blank status
line.
2019-03-15 10:04:13 +00:00
nicm
25e2e22791
Add a limit on how far format_expand can recurse.
2019-03-14 23:34:41 +00:00
nicm
10d60faba5
Store the time in the format tree rather than passing it around.
2019-03-14 23:14:27 +00:00
Thomas Adam
2c755e3c55
Merge branch 'obsd-master'
2019-03-14 22:02:39 +00:00
nicm
bace79a571
Remove some unnecessary temporary variables and be much less strict
...
about spacing in style_parse.
2019-03-14 21:46:08 +00:00
nicm
4206bcc10e
Add format flags for start and end window.
2019-03-14 21:41:30 +00:00
nicm
38064e7593
Add T format modifier like E but also do strftime(3).
2019-03-14 21:31:43 +00:00
nicm
1416ceb575
Accept 0 time as a shorthand for now to format_expand_time.
2019-03-14 21:27:26 +00:00
Thomas Adam
d58bccfc63
Merge branch 'obsd-master'
2019-03-14 20:02:38 +00:00
nicm
9bd4b96766
Fix ED1 (clear end of screen), reported by Marc Reisner.
2019-03-14 17:58:52 +00:00
Thomas Adam
0b32fa81b6
Merge branch 'obsd-master'
2019-03-14 12:02:41 +00:00
nicm
0425e3178d
A little tidying in style_parse.
2019-03-14 10:19:52 +00:00
nicm
13f9a061ac
Add a wrapper (struct style) around styles rather than using the
...
grid_cell directly. There will be some non-cell members soon.
2019-03-14 09:53:52 +00:00
Thomas Adam
f33d2ab29e
Merge branch 'obsd-master'
2019-03-14 08:02:37 +00:00
nicm
1e9f8a3523
Missing space in capture-pane usage, from Ben Boeckel.
...
Also man page fixed from jmc.
2019-03-14 06:36:21 +00:00
nicm
2fbd491ff0
Add actual HPA (\033[`), the existing one is CHA. From Marc Reisner.
2019-03-14 06:33:43 +00:00
Thomas Adam
81b393a493
Merge branch 'obsd-master'
2019-03-14 00:02:37 +00:00
nicm
5755bfc619
Need to set attributes before clearing.
2019-03-13 22:01:22 +00:00
nicm
10f0094be9
The pane's style should be initialized to default before parsing the
...
argument.
2019-03-13 21:39:21 +00:00
Thomas Adam
786f5e505e
Merge branch 'obsd-master'
2019-03-13 20:02:36 +00:00
nicm
6dffbc4849
Tweak format_replace logging.
2019-03-13 18:09:12 +00:00
Thomas Adam
e6fd429d58
Merge branch 'obsd-master'
2019-03-13 16:02:41 +00:00
nicm
95ab1aaaec
Add formats to list sessions, windows or panes.
2019-03-13 15:37:28 +00:00
Nicholas Marriott
f628afc850
Update TODO.
2019-03-13 14:51:19 +00:00
nicm
49f04a997a
Apply length limits and substitution even to literal formats.
2019-03-13 14:27:17 +00:00
Nicholas Marriott
1aeac384f3
Add to TODO.
2019-03-13 14:20:58 +00:00
nicm
9032ac2a05
Add E: format to expand a format twice (useful to expand the value of an
...
option).
2019-03-13 14:19:54 +00:00
nicm
71e00c718c
Make format parsing build the modifiers into a list, standardize how
...
arguments are given and allow multiple modifiers on a format (separated
by ;).
2019-03-13 14:10:34 +00:00
Nicholas Marriott
7a6b21de65
Add to TODO.
2019-03-13 09:30:42 +00:00
Nicholas Marriott
4f5cb88c2b
Add to TODO.
2019-03-13 09:30:42 +00:00
Thomas Adam
0e6eda02a6
Merge branch 'obsd-master'
2019-03-13 08:02:35 +00:00
nicm
feaa5660a3
Do not use origin for VPA.
2019-03-13 07:34:36 +00:00
Thomas Adam
b03f58b977
Merge branch 'obsd-master'
2019-03-13 00:02:38 +00:00
nicm
b2bc34af12
Set a flag on cells are genuinely empty (cleared and never written to)
...
and use tty_clear_line (which will choose the best escape sequence) to
clear any batches of cells with that flag when redrawing a line from the
stored screen.
2019-03-12 23:21:45 +00:00
Thomas Adam
400529eea0
Merge branch 'obsd-master'
2019-03-12 22:02:42 +00:00
nicm
938156d73b
DECRC and DECSC apparently need to preserve origin mode as well, based
...
on a fix from Marc Reisner.
2019-03-12 20:02:47 +00:00
Thomas Adam
ba4a884d75
Merge branch 'obsd-master'
2019-03-12 20:02:38 +00:00
nicm
2796ae81d0
Fix HPA in origin mode.
2019-03-12 18:30:08 +00:00
nicm
f3f534a3a0
Tidy up a lot of &ictx->ctx by using a local variable.
2019-03-12 18:26:57 +00:00
Nicholas Marriott
6c3ee42568
Add a couple of things.
2019-03-12 17:59:46 +00:00
Nicholas Marriott
2f0ffe6adb
Add to TODO.
2019-03-12 17:52:22 +00:00
Nicholas Marriott
4002dbf0c1
Fix session size regress.
2019-03-12 17:36:58 +00:00
Thomas Adam
162d3cb1f4
Merge branch 'obsd-master'
2019-03-12 16:02:37 +00:00
Thomas Adam
7d2004a8dd
Merge branch 'obsd-master'
2019-03-12 14:02:40 +00:00
Nicholas Marriott
860acecc0d
Fix up regress test for control client size.
2019-03-12 13:57:06 +00:00
nicm
028f9d1d87
Fix resizing of control clients, should be ignored until SIZECHANGED flag set.
2019-03-12 13:56:30 +00:00
nicm
303d20a758
Fix wrapping after origin mode change.
2019-03-12 13:14:14 +00:00
nicm
3f0efc050a
When asked for a window index, return it even if the window exists.
2019-03-12 13:14:04 +00:00
nicm
7804fa1b82
Revert to not clearing history on RIS, apparently some bootloaders send
...
this and it doesn't really do any harm.
2019-03-12 12:58:40 +00:00
nicm
7b819357ff
Tweak target debug logging.
2019-03-12 12:49:46 +00:00
Nicholas Marriott
595b52490e
Add to TODO.
2019-03-12 12:12:35 +00:00
Thomas Adam
3ec05e9405
Merge branch 'obsd-master'
2019-03-12 12:02:42 +00:00
Nicholas Marriott
f8a30e1588
Update CHANGES.
2019-03-12 11:20:21 +00:00
nicm
3f6bfbaf2b
Allow multiple modes to be open in a pane. A stack of open modes is kept
...
and the previous restored when the top is exited. If a mode that is
already on the stack is entered, the existing instance is moved to the
top as the active mode rather than being opened new.
2019-03-12 11:16:49 +00:00
Thomas Adam
95d340cc4f
Merge branch 'obsd-master'
2019-03-12 10:02:39 +00:00
nicm
ff4c80d53d
Add support for origin mode (DECOM, SM/RM ?6), from Marc Reisner.
2019-03-12 07:39:27 +00:00
Thomas Adam
bc72cf2f52
Merge branch 'obsd-master'
2019-03-08 12:02:39 +00:00
nicm
de730f68a4
Make the mode used to view command output (a variant of copy mode) use
...
its own mode definition struct with a different init function rather
than calling special setup functions.
2019-03-08 10:34:20 +00:00
nicm
9cc04a0f9a
Do not use window mode entry after free.
2019-03-08 10:29:25 +00:00
Thomas Adam
349aeb806a
Merge branch 'obsd-master'
2019-03-07 22:02:42 +00:00
nicm
f98c66ece8
Add a separate mode struct for the active window mode if any.
2019-03-07 20:24:21 +00:00
Thomas Adam
a1009e7bd3
Merge branch 'obsd-master'
2019-03-07 20:02:41 +00:00
nicm
3c24bc5617
Tidy changing the mode into window_copy_init_for_output.
2019-03-07 19:34:22 +00:00
nicm
7f093fcddc
Make adding mode formats a function pointer as well.
2019-03-07 19:01:21 +00:00
Nicholas Marriott
5a564a0c1a
Add to TODO.
2019-03-07 15:34:24 +00:00
Thomas Adam
9ebd630675
Merge branch 'obsd-master'
2019-03-04 12:01:28 +00:00
nicm
5cdd578906
Fix sense of aggressive-resize flag.
2019-03-04 09:29:52 +00:00
nicm
a870c255c4
Don't set client offset if client is not a terminal
2019-03-04 09:29:40 +00:00
Thomas Adam
d5c837904b
Merge branch 'obsd-master'
2019-02-16 20:02:36 +00:00
nicm
fa33603dc1
Do not look at next key byte if the length is 0, originally from Shingo
...
NISHIOKA in GitHub issue 1601.
2019-02-16 19:04:34 +00:00
Thomas Adam
fa8294436c
Merge branch 'obsd-master'
2019-02-16 14:02:37 +00:00
nicm
82f0c859a2
Use starting client cwd in config file, GitHub issue 1606.
2019-02-16 11:42:08 +00:00
Thomas Adam
9768091ee4
Merge branch 'obsd-master'
2019-02-09 20:02:36 +00:00
nicm
f9c396db41
Completion of command-alias members.
2019-02-09 18:18:36 +00:00
Nicholas Marriott
bdb7e48cba
Redirect which stderr.
2019-02-06 14:45:35 +00:00
Thomas Adam
c42e89a598
Merge branch 'obsd-master'
2019-02-06 08:02:37 +00:00
nicm
afd3127d89
Add -b to display-panes like run-shell, GitHub issue 1559.
2019-02-06 07:36:06 +00:00
Thomas Adam
4ab3b18b36
Merge branch 'obsd-master'
2019-01-20 18:02:36 +00:00
nicm
2ea22fce5e
Should use DECFRA if not default, not if default. From Karl Beldan.
2019-01-20 15:57:27 +00:00
Thomas Adam
cd8a7fb07b
Merge branch 'obsd-master'
2019-01-15 14:02:37 +00:00
nicm
cd39920abd
Should save the bg colour when setting it to default, not the fg.
2019-01-15 12:08:53 +00:00
Thomas Adam
469a9e9439
Merge branch 'obsd-master'
2019-01-15 12:02:36 +00:00
nicm
34c0807be6
Do not highlight characters which will not be copied, reported by
...
Jaroslaw Rzeszotko.
2019-01-15 09:56:31 +00:00
Thomas Adam
c9d482ab48
Merge branch 'obsd-master'
2018-12-18 14:02:40 +00:00
nicm
bde0224deb
Pass window into mode functions.
2018-12-18 13:20:44 +00:00
Thomas Adam
b6cdac05c7
Merge branch 'obsd-master'
2018-12-18 00:02:37 +00:00
nicm
4e3d661284
Fix parsing of empty colon-separated fields, reported by Siarhei Siniak.
2018-12-17 21:52:59 +00:00
Thomas Adam
1c5093c1c4
Merge branch 'obsd-master'
2018-11-30 10:02:37 +00:00
nicm
67254ed8df
Clear PANE_EXITED flag when starting new child process in case the pane
...
has been respawned.
2018-11-30 08:44:40 +00:00
Nicholas Marriott
6cf2f74fe9
osdep_get_cwd for NetBSD, from Leonardo Taccari.
2018-11-29 10:37:27 +00:00
Thomas Adam
1ed994a6c8
Merge branch 'obsd-master'
2018-11-28 12:02:36 +00:00
nicm
40d246b29c
Handle UTF-8 in word-separators option, GitHub issue 1551.
2018-11-28 11:20:13 +00:00
Thomas Adam
2977317243
Merge branch 'obsd-master'
2018-11-22 12:02:38 +00:00
nicm
3a7b9d5735
Do not use PWD unless it actually matches the real working directory.
2018-11-22 10:36:40 +00:00
Nicholas Marriott
2eca63b98e
Add to TODO.
2018-11-21 09:50:53 +00:00
Nicholas Marriott
c4b04b1624
Fixes for GNU/kFreeBSD from James Clarke.
2018-11-21 08:50:22 +00:00
Thomas Adam
efd01f3bfd
Merge branch 'obsd-master'
2018-11-19 14:02:41 +00:00
nicm
749f67b7d8
evbuffer_new and bufferevent_new can both fail (when malloc fails) and
...
return NULL. GitHub issue 1547.
2018-11-19 13:35:40 +00:00
Thomas Adam
a7da2357a5
Merge branch 'obsd-master'
2018-11-15 12:02:37 +00:00
kn
f103927a52
Add [template] to display-panes and choose-{buffer,client,tree} usage
...
OK nicm
2018-11-15 10:38:53 +00:00
Thomas Adam
0fd73f238d
Merge branch 'obsd-master'
2018-11-13 12:02:38 +00:00
nicm
50cdfc06fb
Initialize context property in alignment test handler function.
2018-11-13 11:36:37 +00:00
Thomas Adam
3c6cdf0115
Merge branch 'obsd-master'
2018-11-12 16:02:37 +00:00
nicm
86e648d906
Allow style #[] in mode formats.
2018-11-12 14:18:10 +00:00
Thomas Adam
849d06c0df
Merge branch 'obsd-master'
2018-11-08 20:02:37 +00:00
nicm
09aee53763
It isn't possible to specify buffer name to copy mode commands now, so
...
remove the function argument.
2018-11-08 18:49:19 +00:00
Thomas Adam
4efba0bf9f
Merge branch 'obsd-master'
2018-11-07 10:02:39 +00:00
nicm
0c7f64458f
If a non-repeating key is used when repeating, it should be treated as
...
an entirely new key press, not checked in root table and ignored if not
found. GitHub issue 1513.
2018-11-07 08:06:28 +00:00
Nicholas Marriott
ff77010f70
Add to TODO.
2018-11-07 08:00:15 +00:00
nicm
7339845c01
There is no reason wait-for has to be restricted to outside tmux.
2018-11-07 07:58:16 +00:00
Thomas Adam
99072e1d81
Merge branch 'obsd-master'
2018-11-06 16:02:37 +00:00
nicm
f9881b3b5d
Correctly unzoom and redraw panes in switch-client.
2018-11-06 15:13:13 +00:00
Thomas Adam
b1ad075d11
Merge branch 'obsd-master'
2018-10-31 12:02:38 +00:00
nicm
ef904cfef2
Reset all flags in screen_write_reset, reported by Benjamin Poirier.
2018-10-31 10:05:47 +00:00
Thomas Adam
ddffda4da5
Merge branch 'obsd-master'
2018-10-28 18:02:36 +00:00
nicm
d5b92ac37e
Do not printf NULL.
2018-10-28 16:10:02 +00:00
Thomas Adam
0a54a07909
Merge branch 'obsd-master'
2018-10-28 16:02:37 +00:00
nicm
65dd7345e0
Do not check for a key again without an escape if only \033 is present.
2018-10-28 15:34:27 +00:00
Nicholas Marriott
0cefdff1b6
Add to CHANGES.
2018-10-26 11:36:36 +01:00
Thomas Adam
e771f10dc6
Merge branch 'obsd-master'
2018-10-25 17:02:42 +01:00
nicm
fc41bf46ac
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@.
2018-10-25 15:13:38 +00:00
Nicholas Marriott
2808f8261c
Tweak wording.
2018-10-19 08:38:12 +01:00
Nicholas Marriott
c234032fcf
Do not use master here.
2018-10-19 08:37:31 +01:00
Nicholas Marriott
bc6211cca5
Instead of "master" for the version number, use "next-X.X". It is more
...
useful to include the next version number.
2018-10-19 08:35:23 +01:00
Thomas Adam
164590e34c
Merge branch 'obsd-master'
2018-10-18 15:02:38 +01:00
nicm
9feb35b7c4
Document new refresh-client flags.
2018-10-18 13:03:45 +00:00
Thomas Adam
f44d02c7f5
Merge branch 'obsd-master'
2018-10-18 11:09:54 +01:00
nicm
646995384d
Support for windows larger than visible on the attached client. This has
...
been a limitation for a long time.
There are two new options, window-size and default-size, and a new
command, resize-window. The force-width and force-height options and the
session_width and session_height formats have been removed.
The new window-size option tells tmux how to work out the size of
windows: largest means it picks the size of the largest session,
smallest the smallest session (similar to the old behaviour) and manual
means that it does not automatically resize windows. The default is
currently largest but this may change. aggressive-resize modifies the
choice of session for largest and smallest as it did before.
If a window is in a session attached to a client that is too small, only
part of the window is shown. tmux attempts to keep the cursor visible,
so the part of the window displayed is changed as the cursor moves (with
a small delay, to try and avoid excess redrawing when applications
redraw status lines or similar that are not currently visible). The
offset of the visible portion of the window is shown in status-right.
Drawing windows which are larger than the client is not as efficient as
those which fit, particularly when the cursor moves, so it is
recommended to avoid using this on slow machines or networks (set
window-size to smallest or manual).
The resize-window command can be used to resize a window manually. If it
is used, the window-size option is automatically set to manual for the
window (undo this with "setw -u window-size"). resize-window works in a
similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and
-A flags. -a sets the window to the size of the smallest client (what it
would be if window-size was smallest) and -A the largest.
For the same behaviour as force-width or force-height, use resize-window
-x or -y, and "setw -u window-size" to revert to automatic sizing..
If the global window-size option is set to manual, the default-size
option is used for new windows. If -x or -y is used with new-session,
that sets the default-size option for the new session.
The maximum size of a window is 10000x10000. But expect applications to
complain and much higher memory use if making a window excessively
big. The minimum size is the size required for the current layout
including borders.
The refresh-client command can be used to pan around a window, -U -D -L
-R moves up, down, left or right and -c returns to automatic cursor
tracking. The position is reset when the current window is changed.
2018-10-18 08:38:01 +00:00
Nicholas Marriott
2dfdb55ace
Handle pan correctly when the terminal is bigger than the window.
2018-10-18 09:24:15 +01:00
nicm
a51668ca06
Support OSC 52 ? to read the top buffer inside tmux (when set-clipboard
...
is changed to on), also add refresh-client -l to ask tmux to use the
same mechanism to get the clipboard from the terminal outside
tmux. GitHub issue 1477.
2018-10-18 08:04:14 +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
f54f171d5c
Merge branch '2.8-rc'
2018-10-17 19:33:43 +01:00
Nicholas Marriott
01918cb017
tmux 2.8.
2018-10-17 19:29:35 +01:00
Nicholas Marriott
a2c52d9f26
Add to TODO.
2018-10-16 14:16:48 +01:00
Nicholas Marriott
407075d8c7
Add to TODO.
2018-10-16 14:12:33 +01:00
Nicholas Marriott
cdd8c93f54
Add to TODO file.
2018-10-15 09:09:40 +01:00
Nicholas Marriott
c88e945bc5
Support OSC 52 ? to read the top buffer inside tmux, also add
...
refresh-client -l to get the clipboard outside tmux. GitHub issue
1477.
2018-10-11 16:20:14 +01: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
46847e9b2e
Update TODO.
2018-10-08 13:06:37 +01:00
Nicholas Marriott
1952b3f746
Update CHANGES.
2018-10-07 15:06:40 +01:00
Nicholas Marriott
546060f340
Update TODO.
2018-10-07 15:01:41 +01:00
Thomas Adam
c44bb2df17
Merge branch 'obsd-master'
2018-10-03 17:02:38 +01:00
nicm
f7c85f3ed8
Do not move the cursor when the mouse wheel is used, GitHub issue 1493.
2018-10-03 15:27:55 +00:00
Nicholas Marriott
5a7cf897f2
Correctly check offset for drawing multiple cells, GitHub issue 1481.
2018-10-01 19:47:58 +01:00
Nicholas Marriott
8053b65f1e
Fix select-pane -m, GitHub issuie 1490.
2018-09-28 09:38:22 +01:00
Thomas Adam
a00cdcdfcb
Merge branch 'obsd-master'
2018-09-27 11:02:37 +01:00
nicm
228e1a3951
Use same working directory rules for jobs as new windows rather than
...
always starting in home, GitHub issue 1488.
2018-09-27 07:43:18 +00:00
Nicholas Marriott
ebaf54251a
Add formats for when window is larger than client, and show offset in
...
status-right by default when larger.
2018-09-26 18:41:18 +01:00
Nicholas Marriott
b74b047730
More of revert.
2018-09-26 16:49:03 +01:00
Nicholas Marriott
04c6db2d0f
Revert "Add a B flag to mark windows bigger than the client."
...
This reverts commit b4e74f4310d90affd4e1a4a7328082ac4beb5461.
2018-09-26 16:42:29 +01:00
Nicholas Marriott
6abb62df1e
Change the B into a +.
2018-09-25 21:57:29 +01:00
Thomas Adam
7cf00d6b72
Merge branch 'obsd-master'
2018-09-25 17:02:41 +01:00
nicm
7d59f82cf9
Allow panes to be 1 line or column by redrawing instead of using the
...
scroll region, from Soeren Tempel in GitHub issue 1487.
2018-09-25 14:27:20 +00:00
Nicholas Marriott
cbf1504fca
Do not clamp to needed size since it may be too big.
2018-09-25 15:15:44 +01:00
Nicholas Marriott
83b2d5c513
window_printable_flags needs an additional argument.
2018-09-25 09:55:49 +01:00
Nicholas Marriott
b4e74f4310
Add a B flag to mark windows bigger than the client.
2018-09-25 09:54:47 +01:00
Nicholas Marriott
26d73a7736
Ignore clients that are suspended or exiting.
2018-09-25 09:48:48 +01:00
Nicholas Marriott
57069287a1
Add to TODO.
2018-09-25 08:27:53 +01:00
Thomas Adam
4799f43298
Merge branch 'obsd-master'
2018-09-24 17:02:38 +01:00
nicm
7bc6c105b7
Only include pane status in minimum size if it is turned on, GitHub
...
issue 1480.
2018-09-24 15:29:56 +00:00
Nicholas Marriott
ad71e7f9d2
Calculate size when trimming RHS correctly.
2018-09-24 12:17:29 +01:00
Nicholas Marriott
71d2ab184b
Fix up merge.
2018-09-12 07:15:27 +01:00
Thomas Adam
c067af8e7d
Merge branch 'obsd-master'
2018-09-11 20:11:11 +01:00
Nicholas Marriott
3fa538181b
Restore window_pane_visible for drawing panes and borders, fixes issue
...
1458 reported by Felix Rosencrantz, problem located by Avi Halachmi.
2018-09-11 18:34:53 +01:00
nicm
be2201200f
The cursor position is limited to the margins for CUF and CUB, so turn
...
margins off for printing cells (like most everything else already
does). Problem reported by Thomas Sattler.
2018-09-11 17:31:01 +00:00
Nicholas Marriott
84df87011c
x,y -> px,py.
2018-09-11 09:39:28 +01:00
Thomas Adam
5e36d52651
Merge branch 'obsd-master'
2018-09-11 09:21:16 +01:00
nicm
bd9133b31d
Do not check for mouse events on pane borders when zoomed, based on a
...
fix from Avi Halachmi.
2018-09-11 06:37:54 +00:00
Thomas Adam
9b32758a0c
Merge branch 'obsd-master'
2018-09-10 09:02:39 +01:00
Nicholas Marriott
5aa435a9f0
window_get_active_at needs to check visible also.
2018-09-10 07:51:11 +01:00
nicm
1b92afa799
Do not clear selection when searching.
2018-09-10 06:48:01 +00:00
Nicholas Marriott
a618271e12
Bring back window_pane_visible to stop input going to panes which are
...
hidden by zoom.
2018-09-10 07:19:17 +01:00
Nicholas Marriott
8598fd1bc5
Add to TODO.
2018-09-09 07:52:28 +01:00
Nicholas Marriott
59df942e09
Fixes to resize-window from Ben Boeckel.
2018-09-05 08:43:58 +01:00
Nicholas Marriott
621bb15b83
Cast parameters to tparm, from Christos Zoulas via Leonardo Taccari.
2018-09-05 08:42:17 +01:00
Thomas Adam
8e24b0bb3e
Makefile.am: Add space between -f and argument
...
Required for some (older) aek instance -- namely NetBSD.
2018-09-04 13:13:32 +01:00
Thomas Adam
0c07b10b30
Merge branch 'obsd-master'
2018-09-03 11:02:39 +01:00
nicm
8f9491ddfe
Allow a large line number to go to the end with goto-line, from Mark
...
Kelly in GitHub issue 1460.
2018-09-03 08:51:43 +00:00
nicm
9bab73f489
Fix selection test, from Takeshi Banse.
2018-09-03 08:47:27 +00:00
Nicholas Marriott
4e867202e8
Add to TODO.
2018-08-31 14:10:51 +01:00
Thomas Adam
e27b588b6c
Merge branch 'obsd-master'
2018-08-29 21:02:37 +01:00
Nicholas Marriott
479cac4896
Fix target line for fast path in tty_draw_pane.
2018-08-29 20:52:27 +01:00
nicm
95e3e363ff
Reset line flag when clearing selection, GitHub issue 1454.
2018-08-29 18:54:23 +00:00
Nicholas Marriott
7637518b07
Fix refresh-client flags.
2018-08-29 18:59:43 +01:00
Nicholas Marriott
9263a65b5f
Update TODO.
2018-08-29 18:52:04 +01:00
Thomas Adam
b29028a914
Merge branch 'obsd-master'
2018-08-29 13:02:38 +01:00
Thomas Adam
1ea17a72f0
Merge branch 'obsd-master'
2018-08-29 11:02:36 +01:00
nicm
f57aa143c1
Keep any text killed in the command prompt with C-w and yank it with
...
C-y, only use the top buffer if no text has previously been killed. This
and previous change promped by discussion with kn@.
2018-08-29 09:50:32 +00:00
nicm
e53094bc5f
Add C-Left and C-Right as aliases for M-b and M-f.
2018-08-29 08:56:51 +00:00
Thomas Adam
18b611bc8d
Merge branch 'obsd-master'
2018-08-27 13:02:38 +01:00
nicm
79d2351ce8
Memory leaks, from Gang Fan in GitHub issue 1453.
2018-08-27 11:03:34 +00:00
Nicholas Marriott
79a9472dbc
tty_clamp_* need to use wp->xoff and wp->yoff for the check (which
...
don't include status line, line ox and oy), but ctx->xoff and yp->off
to calculate the position (which do have the statu line).
2018-08-26 14:10:39 +01:00
Thomas Adam
d64daf874f
Merge branch 'obsd-master'
2018-08-26 11:02:38 +01:00
nicm
1b4402c823
Add q: format prefix to escape sh(1) special characters. Suggested by
...
someone ages ago and then more recently in GitHub issue 1449.
2018-08-26 09:28:42 +00:00
Nicholas Marriott
7fbd2f5498
Do not draw cells which have no cell (zoomed and they are not active).
2018-08-25 13:55:50 +01:00
Thomas Adam
45841400f2
Merge branch 'obsd-master'
2018-08-23 21:02:36 +01:00
nicm
f38b5a1b58
all_jobs can be static.
2018-08-23 18:39:12 +00:00
Thomas Adam
da5d563375
Merge branch 'obsd-master'
2018-08-23 19:02:40 +01:00
nicm
bceccc6b63
Move job struct into job.c.
2018-08-23 15:45:05 +00:00
Nicholas Marriott
183193bdbc
Update CHANGES.
2018-08-23 08:52:22 +01:00
Thomas Adam
5b93f0fcd3
Merge branch 'obsd-master'
2018-08-22 23:02:43 +01:00
Nicholas Marriott
ee3e0eb183
Update TODO.
2018-08-22 21:29:30 +01:00
nicm
55db3623bf
Add StatusLeft and StatusRight mouse key modifiers for the left and
...
right parts of the status line.
2018-08-22 20:06:14 +00:00
Nicholas Marriott
db8849e7ca
Update TODO.
2018-08-21 09:29:12 +01:00
Nicholas Marriott
bfc9fb4b3b
Add flags to refresh-client (-U -D -L -R and -c) to pan a window that
...
is larger than the client manually. Bound to S-Up, S-Down, S-Left,
S-Right and Delete manually.
Also add aliases for keys DC = Delete, IC = Insert, and make
refresh-client -C accept XxY as well as X,Y to match default-size.
2018-08-21 09:27:19 +01:00
Nicholas Marriott
314ee137a9
The stored mouse position should not include the status line offset if any.
2018-08-21 09:10:23 +01:00
Thomas Adam
f36d2ecb07
Merge branch 'obsd-master'
2018-08-20 23:02:38 +01:00
nicm
98a478ceb3
Move offset of window list into status struct.
2018-08-20 20:41:58 +00:00
Nicholas Marriott
9f39470b38
Only screen-redraw.c needs to adjust for message or prompt when the
...
status line is off, get rid of tty_status_lines and just pass the
client into status_line_size so it can check the CLIENT_STATUSOFF flag
as well.
2018-08-20 20:05:34 +01:00
Nicholas Marriott
458b4b7701
Need to adjust for lines if at top.
2018-08-20 19:45:32 +01:00
Nicholas Marriott
31508228bc
Use the y offset from the context which has already been adjusted for
...
the status line, also make tty_clamp_line adjust the y position.
2018-08-20 19:34:04 +01:00
Nicholas Marriott
1e8c9fb490
Update CHANGES.
2018-08-20 17:52:27 +01:00
Thomas Adam
098967a085
Merge branch 'obsd-master'
2018-08-20 17:02:39 +01:00
nicm
665f046950
Add -Z to find-window as well.
2018-08-20 15:00:42 +00:00
Nicholas Marriott
641191ab20
Support for windows larger than the client.
...
This adds two new options, window-size and default-size, and a new
command, resize-window.
The force-width and force-height options, and the session_width and
session_height formats have been removed.
The new window-size option tells tmux how to work out the size of
windows: largest means it picks the size of the largest session,
smallest the smallest session (similar to the old behaviour) and
manual means that it does not automatically resize
windows. aggressive-resize modifies the choice of session for largest
and smallest as it did before.
If a window is in a session attached to a client that is too small,
only part of the window is shown. tmux attempts to keep the cursor
visible, so the part of the window displayed is changed as the cursor
moves (with a small delay, to try and avoid excess redrawing when
applications redraw status lines or similar that are not currently
visible).
Drawing windows which are larger than the client is not as efficient
as those which fit, particularly when the cursor moves, so it is
recommended to avoid using this on slow machines or networks (set
window-size to smallest or manual).
The resize-window command can be used to resize a window manually. If
it is used, the window-size option is automatically set to manual for
the window (undo this with "setw -u window-size"). resize-window works
in a similar way to resize-pane (-U -D -L -R -x -y flags) but also has
-a and -A flags. -a sets the window to the size of the smallest client
(what it would be if window-size was smallest) and -A the largest.
For the same behaviour as force-width or force-height, use
resize-width -x or -y.
If the global window-size option is set to manual, the default-size
option is used for new windows. If -x or -y is used with new-session,
that sets the default-size option for the new session.
The maximum size of a window is 10000x10000. But expect applications
to complain and higher memory use if you make a window that big. The
minimum size is the size required for the current layout including
borders.
This change allows some code improvements, most notably that since
windows can now never be cropped, that code can be removed from the
layout code, and since panes can now never be outside the size of the
window, window_pane_visible can be removed.
2018-08-20 15:22:14 +01:00
nicm
9f2db6a0af
Fix problems with page scrolling in copy mode, GitHub issue 1440 from
...
Amos Bird.
2018-08-20 13:51:09 +00:00
Thomas Adam
bf03197e18
Merge branch 'obsd-master'
2018-08-19 21:40:26 +01:00
nicm
cac4eadca0
Add a flag to force redrawing of the status line even if the content
...
hasn't changed, needed for resizing.
2018-08-19 20:13:07 +00:00
Thomas Adam
3310972d75
Merge branch 'obsd-master'
2018-08-19 21:02:37 +01:00
nicm
d95fad3d5f
Expand \u and \U escape sequences in command strings, from Christopher
...
Hunt in GitHub issue 1443.
2018-08-19 19:03:46 +00:00
Thomas Adam
9ecf657703
Merge branch 'obsd-master'
2018-08-19 19:02:40 +01:00
nicm
88327c7698
Add a client redraw-window flag instead of the redraw-all flag and for
...
all just use the three flags together (window, borders, status).
2018-08-19 16:45:03 +00:00
Thomas Adam
e811132b05
Merge branch 'obsd-master'
2018-08-18 23:02:40 +01:00
nicm
bd2896b65e
SESSION_UNATTACHED flag is no longer necessary now we have an attached
...
count instead.
2018-08-18 20:08:52 +00:00
Thomas Adam
522d751eee
Merge branch 'obsd-master'
2018-08-18 19:02:39 +01:00
nicm
3bc08b0dc0
Some tidying and helper functions.
2018-08-18 16:14:03 +00:00
Nicholas Marriott
af679326b2
Now master again.
2018-08-17 11:46:08 +01:00
Nicholas Marriott
aa6e6fa0f2
2.8.
2018-08-17 11:45:40 +01:00
Nicholas Marriott
9bdbe171b7
2.8-rc.
2018-08-17 11:31:16 +01:00
Thomas Adam
98a3c98c28
Merge branch 'obsd-master'
2018-08-17 11:20:20 +01:00
Nicholas Marriott
de2ddddd60
Add a full stop.
2018-08-17 10:30:04 +01:00
nicm
a9ffb56b65
Add the KEYC_XTERM flag to all function keys that imply a modifier so
...
that they are correctly translated into xterm(1)-style keys. GitHub
issue 1437.
2018-08-16 14:04:03 +00:00
nicm
14b97fc889
Add size to arguments struct too.
2018-08-14 11:38:05 +00:00
nicm
d0a600ccaa
Some tidying, use a struct for arguments (there will be more later) and
...
add a helper function.
2018-08-14 11:31:34 +00:00
Thomas Adam
a368548645
Merge branch 'obsd-master'
2018-08-10 11:41:07 +01:00
Nicholas Marriott
13fe06a459
Update CHANGES.
2018-08-10 10:21:40 +01:00
nicm
87e87030fe
Whoops, didn't mean to commit this.
2018-08-09 09:54:22 +00:00
nicm
a5ef1f2ed6
Bump the UTF-8 character array up to 18 to allow for more combining
...
characters (some languages use up to five). This size doesn't make as
much difference now that UTF-8 goes into an extended cell. GitHub issue
1430.
2018-08-09 09:53:44 +00:00
nicm
f5d7a80272
calloc the mode data instead of malloc and initialize everything.
2018-08-05 08:59:30 +00:00
Thomas Adam
33f9b316a3
Merge branch 'obsd-master'
2018-08-02 21:02:25 +01:00
nicm
d6ff630498
Log command arguments.
2018-08-02 18:35:21 +00:00
Thomas Adam
eceaa9a493
Merge branch 'obsd-master'
2018-08-02 15:02:25 +01:00
Thomas Adam
2e19a5ecb9
Merge branch 'obsd-master'
2018-08-02 13:02:26 +01:00
nicm
fb1f0fee5a
session_groups can be static also.
2018-08-02 11:56:12 +00:00
nicm
6048b0f483
Make key trees and some other bits static.
2018-08-02 11:44:07 +00:00
nicm
f12b857415
Minor tidying.
2018-08-02 11:18:34 +00:00
Thomas Adam
79bdca4638
Merge branch 'obsd-master'
2018-08-02 11:02:25 +01:00
nicm
21f8ac2766
Make display-panes block the client until a pane is chosen or it times out.
2018-08-02 07:55:16 +00:00
Thomas Adam
89b56c3451
Merge branch 'obsd-master'
2018-08-01 17:02:25 +01:00
nicm
fe7486d43b
Initialize new lineflag member.
2018-08-01 15:22:40 +00:00
Thomas Adam
400b807d75
Merge branch 'obsd-master'
2018-07-31 17:02:31 +01:00
nicm
5f07da6227
Do not leak path or use it after free.
2018-07-31 13:06:44 +00:00
Thomas Adam
7eb3ef66e5
Merge branch 'obsd-master'
2018-07-31 13:02:25 +01:00
nicm
82776c456e
Move struct screen_sel into screen.c and tidy up members that are only
...
used by copy mode.
2018-07-31 11:49:26 +00:00
nicm
80bdd89856
Clear history on RIS like most other terminals do.
2018-07-31 10:32:19 +00:00
Thomas Adam
ed6327c87b
Merge branch 'obsd-master'
2018-07-30 13:02:25 +01:00
nicm
b21a710de7
Remove a leftover unused struct.
2018-07-30 11:24:55 +00:00
Thomas Adam
aa32457772
Merge branch 'obsd-master'
2018-07-23 21:02:25 +01:00
kn
5c78b48cdf
Point to glob in section 7 for the actual list of special characters instead
...
the C API in section 3.
OK millert jmc nicm, "the right idea" deraadt
2018-07-23 19:02:49 +00:00
Thomas Adam
5fc2d4a4fc
Merge branch 'obsd-master'
2018-07-17 21:02:24 +01:00
nicm
969af935f3
When a key isn't in the first table, we need to try the same key again
...
not the any key. Also rename some labels. Fixes GitHub issue 1406
reeported by Mark Kelly.
2018-07-17 18:02:40 +00:00
Thomas Adam
4f04b2094c
Merge branch 'obsd-master'
2018-07-16 11:02:25 +01:00
nicm
0d88f8a78b
Add an "Any" key to run a command if a key is pressed that is not bound
...
in the current key table. GitHub issue 1404.
2018-07-16 08:48:22 +00:00
Thomas Adam
6de991d855
Merge branch 'obsd-master'
2018-07-15 11:02:25 +01:00
nicm
ff67ef945d
Fix new-window -k, GitHub issue 1403.
2018-07-15 06:57:13 +00:00
Thomas Adam
711b8164bb
Merge branch 'obsd-master'
2018-07-11 11:02:26 +01:00
Nicholas Marriott
35985c0add
Updates to CHANGES.
2018-07-11 09:51:18 +01:00
nicm
cfc81692e6
Expand formats in load-buffer and save-buffer.
2018-07-11 08:29:21 +00:00
Thomas Adam
a4a7c3c68d
Merge branch 'obsd-master'
2018-07-11 09:02:25 +01:00
nicm
e7d53020b4
Helper function to shorten history.
2018-07-11 06:51:39 +00:00
nicm
03519021b9
Add function comments.
2018-07-11 06:43:45 +00:00
Thomas Adam
6f2698004e
Merge branch 'obsd-master'
2018-07-06 09:02:24 +01:00
nicm
28a5bc8fae
Add a rectangle_toggle format, from Hirokazu Hata.
2018-07-06 07:11:23 +00:00
Thomas Adam
20154f391e
Merge branch 'obsd-master'
2018-07-04 15:02:25 +01:00
jmc
98c4291df2
whitespace needed between macro args and punctuation;
2018-07-04 13:27:32 +00:00
Nicholas Marriott
5c0ce192ed
+README.ja.
2018-07-04 13:45:40 +01:00
nicm
cc743dc296
Add set-hook -R to run a hook immediately (useful to set multiple hooks
...
to the same thing).
2018-07-04 12:30:52 +00:00
nicm
d254293a6d
Add pane focus hooks.
2018-07-04 12:25:26 +00:00
Thomas Adam
850c26dd46
Merge branch 'obsd-master'
2018-07-04 13:02:25 +01:00
Nicholas Marriott
db07f33886
Japanese README from Kohei Takada.
2018-07-04 10:47:14 +01:00
nicm
2fae6a5761
Add accessors for grid linedata member, for some future work. From Dan
...
Aloni.
2018-07-04 09:44:07 +00:00
Thomas Adam
2ee0962c96
Merge branch 'obsd-master'
2018-07-02 15:02:25 +01:00
nicm
42935bde71
Fire notify for select-layout, from George Nachman.
2018-07-02 12:39:14 +00:00
Nicholas Marriott
ffebf00585
Solaris 11.4 and later prefers mdoc, from Alan Coopersmith.
2018-07-02 13:36:44 +01:00
Thomas Adam
ead6d652ff
Merge branch 'obsd-master'
2018-06-27 19:02:25 +01:00
nicm
a14aa788d4
Allow any punctuation (except :) as separator in s/x/y/, not only
...
/. From JINNOUCHI Yasushi in GitHub issue 1386.
2018-06-27 17:36:10 +00:00
Thomas Adam
d8721b35a0
Merge branch 'obsd-master'
2018-06-26 15:02:25 +01:00
nicm
97738921cd
Style nit.
2018-06-26 13:21:28 +00:00
Thomas Adam
486ce9b098
Merge branch 'obsd-master'
2018-06-26 13:02:25 +01:00
nicm
8fb6666f17
Do not take address of a member of a NULL pointer. GitHub issue 1382
...
from Kamil Rytarowski.
2018-06-26 11:14:05 +00:00
Thomas Adam
cb77c2aa78
Merge branch 'obsd-master'
2018-06-25 19:02:24 +01:00
nicm
0c94c3fbee
If there are only two panes, always use the other pane as the last
...
pane. Based on a change from Duy Nguyen in GitHub issue 1377.
2018-06-25 17:23:16 +00:00
Thomas Adam
94712a8b0d
Merge branch 'obsd-master'
2018-06-24 23:02:25 +01:00
nicm
dec6ec9e29
Minor cosmetic improvement from KOIE Hidetaka.
2018-06-24 21:24:09 +00:00
Thomas Adam
9da78d72de
Merge branch 'obsd-master'
2018-06-11 13:02:25 +01:00
nicm
d0c992306d
Fix some compiler warnings; from Thomas Adam.
2018-06-11 11:14:10 +00:00
Thomas Adam
54c2d48d7d
Merge branch 'obsd-master'
2018-06-09 19:02:29 +01:00
nicm
e6cbeb4f38
Make it possible to resize multiple panes by dragging corners, from Dan
...
Aloni in GitHub issue 1376.
2018-06-09 17:05:52 +00:00
Thomas Adam
4581240ced
Merge branch 'obsd-master'
2018-06-08 23:02:25 +01:00
nicm
f6bad7efd7
Instead of working out which pane to resize with the mouse by walking
...
the panes list, look through the layout cells for the nearest border and
resize that cell. From Dan Aloni in GitHub issue 1374.
2018-06-08 20:54:22 +00:00
Thomas Adam
713e0ddef3
Merge branch 'obsd-master'
2018-06-08 13:02:25 +01:00
nicm
ff45b2d343
Tweak previous - check for a NULL client and simplify manual text.
2018-06-08 09:43:58 +00:00
Thomas Adam
91280f1fca
Linux: include sys/file.h for flock()
2018-06-07 09:17:05 +01:00
Thomas Adam
7de25d86e1
Merge branch 'obsd-master'
2018-06-03 13:02:31 +01:00
nicm
ba31d3a88c
Increment the lines counter when skipping a line to avoid an infinite
...
loop, and fix a check to avoid a potential out-of-bounds access. Problem
reported by Yuxiang Qin and tracked down by Karl Beldan; GitHub issue
1352.
Also a man page fix request by jmc@.
2018-06-03 10:17:30 +00:00
Thomas Adam
54cd292f09
Merge branch 'obsd-master'
2018-05-29 11:02:26 +01:00
nicm
d1f5142dab
If foo doesn't exist and can't be expanded in #{?foo,a,b} then assume it
...
is false.
2018-05-29 09:10:30 +00:00
Thomas Adam
058d2b94dc
Merge branch 'obsd-master'
2018-05-28 15:02:31 +01:00
nicm
c177a627d2
When looking for panes, ignore dead ones (with -1 file
...
descriptor). GitHub issue 1354.
2018-05-28 11:50:47 +00:00
Nicholas Marriott
8f8e0975f1
Add format string test, from "sadie-parayno" in GitHub issue 1358.
2018-05-28 12:48:15 +01:00
nicm
b602c1fb9a
Document escaping inside conditionals, from "sadie-parayno" in GitHub
...
issue 1359.
2018-05-28 11:45:26 +00:00
Thomas Adam
7448b38327
Merge branch 'obsd-master'
2018-05-24 13:02:29 +01:00
Thomas Adam
85d5a377c5
Merge branch 'obsd-master'
2018-05-24 11:02:25 +01:00
nicm
b9a6162d2f
Make server_client_get_cwd used (almost) everywhere we need to work out
...
the cwd, and do not fall back to "." as it is pretty useless. GitHub
issue 1331.
2018-05-24 09:42:49 +00:00
nicm
8f5903d7c3
Improve logging of the environment etc for new panes.
2018-05-24 09:34:54 +00:00
Thomas Adam
f0ac0d6793
Merge branch 'obsd-master'
2018-05-22 11:02:33 +01:00
nicm
2a04665626
Allow escaping , and } with # in #{}; GitHub issue 1332.
2018-05-22 08:49:12 +00:00
Nicholas Marriott
07c0970f54
Sync tmux description with manual.
2018-05-22 08:02:43 +01:00
Thomas Adam
546123f950
Merge branch 'obsd-master'
2018-05-20 15:02:25 +01:00
nicm
f2f9605c63
-T should not actually select the pane.
2018-05-20 11:48:34 +00:00
Thomas Adam
e4e060f2be
Merge branch 'obsd-master'
2018-05-15 17:02:31 +01:00
nicm
e3b034fac7
Fix switch-client -l, from Jean-Marc Eurin in GitHub issue 1343.
2018-05-15 14:58:09 +00:00
Thomas Adam
82c0eed36d
Merge branch 'obsd-master'
2018-05-09 19:02:35 +01:00
nicm
80994a8de1
Mention allow-rename with \033k.
2018-05-09 16:20:50 +00:00
Thomas Adam
9e1093b7d7
Merge branch 'obsd-master'
2018-05-09 11:02:26 +01:00
nicm
f2029f9d9e
Another check for NULL window if looking for index.
2018-05-09 07:50:03 +00:00
Thomas Adam
b2a2c3a1e9
Merge branch 'obsd-master'
2018-05-07 17:02:31 +01:00
nicm
f915a4bf0c
Handle terminfo colors > 256 correctly, GitHub issue 1337.
2018-05-07 13:39:09 +00:00
Thomas Adam
91b220525b
Merge branch 'obsd-master'
2018-05-04 11:02:31 +01:00
nicm
988c6bc433
Improve logging of sessions.
2018-05-04 08:21:42 +00:00
Thomas Adam
1d858aa89e
Merge branch 'obsd-master'
2018-05-03 19:02:26 +01:00
nicm
e24a077752
Use window target if specified and exists even when looking for an
...
index, fixes neww -a with -t as well.
2018-05-03 16:56:59 +00:00
Thomas Adam
645fe9013f
Merge branch 'obsd-master'
2018-04-26 17:02:31 +01:00
guenther
896c1da7da
Use <fcntl.h> instead of <sys/file.h> for open() and friends.
...
Delete a bunch of unnecessary #includes and sort to match style(9)
while doing the above cleanup.
ok deraadt@ krw@
2018-04-26 12:42:51 +00:00
Thomas Adam
d24bd7394d
Merge branch 'obsd-master'
2018-04-23 17:02:32 +01:00
Nicholas Marriott
aebb17dc75
Sync imsg from OpenBSD.
2018-04-23 15:40:15 +01:00
nicm
d9d2f84a4b
Add KRB5CCNAME to update-environment.
2018-04-23 14:03:06 +00:00
nicm
068d1b97b2
#aabbcc will use RGB if supported so don't say it is closest match.
2018-04-23 13:51:21 +00:00
nicm
4bf6f2706e
Check whether cursor is at start or end when copying rectangular
...
selections, from tb@.
2018-04-23 13:46:34 +00:00
nicm
9f39652d87
Remove unnecessary brackets.
2018-04-23 13:43:08 +00:00
Thomas Adam
c48440fd40
Merge branch 'obsd-master'
2018-04-23 11:02:27 +01:00
nicm
1afe71cc0a
rxvt-unicode has some funny behaviour when scrolling with the cursor not
...
at column 1, so move it back there first if possible. GitHub issue 1318.
2018-04-23 07:41:30 +00:00
Thomas Adam
0e1b339c10
Merge branch 'obsd-master'
2018-04-18 17:02:28 +01:00
nicm
3dceddd70e
Change how display-message uses the client. Originally it was only
...
intended as the target client where the message should be displayed but
at some point (perhaps when -p was added), it was used for format
expansion too. This means it can get a bit weird where you have client
formats expanding for a client with a different current session than the
target session.
However, it is nice that display-message can be used to show information
about a specific client. So change so that the -c client will be used if
the session matches the target session (-t or default), otherwise the
best client will be chosen.
2018-04-18 14:35:37 +00:00
nicm
2595718dd3
Include source function name in grid_check_y logging.
2018-04-18 14:31:42 +00:00
Thomas Adam
6ebd737590
Merge branch 'obsd-master'
2018-04-18 15:02:25 +01:00
nicm
e64d078a4c
Fix || example.
2018-04-18 12:50:11 +00:00
Nicholas Marriott
ae0b7c7d72
Some changes.
2018-04-13 17:59:11 +01:00
Nicholas Marriott
a770ef3e2a
Merge branch '2.7-rc'
2018-04-13 17:50:40 +01:00
Nicholas Marriott
b95d1de8fd
2.7.
2018-04-13 17:47:36 +01:00
Thomas Adam
7e5262ae9a
Merge branch 'obsd-master'
2018-04-11 13:02:28 +01:00
nicm
14ecb5032e
Allow no client for rename-session, from Ryan Freeman.
2018-04-11 09:54:45 +00:00
Thomas Adam
1bd66b65a3
Merge branch 'obsd-master'
2018-04-10 13:02:28 +01:00
nicm
051a29ca03
A couple of fixes to the : form of SGR. Apparently there is an extra
...
argument that nobody knew about, so skip that if it exists. Also there
are a bunch of useless optional arguments at the end, so ignore those.
2018-04-10 11:20:15 +00:00
nicm
c6975b3bb4
Add x and X to choose-tree (with a confirmation prompt) to kill an
...
item. Suggested by Matt Zagrabelny.
2018-04-10 10:48:44 +00:00
Nicholas Marriott
68bf7c532b
Merge branch '2.7-rc'
2018-04-06 12:53:43 +01:00
Thomas Adam
9b73d76ddd
Merge branch 'obsd-master'
2018-04-06 11:02:24 +01:00
nicm
5d616f4c72
Fix link, from Eliran Gonen.
2018-04-06 09:09:38 +00:00
nicm
8a81993ae1
Do not crash on empty window, reported by Jamie Macdonald in GitHub
...
issue 1299. Patch from Thomas Adam.
2018-03-29 13:19:19 +01:00
Thomas Adam
b5c0b2cae2
Merge branch 'obsd-master'
2018-03-29 10:28:18 +01:00
nicm
803b8815bd
Do not crash on empty window, reported by Jamie Macdonald in GitHub
...
issue 1299. Patch from Thomas Adam.
2018-03-29 08:03:51 +00:00
nicm
785ce66ab9
Fix a regression: do not warn about no client in rename-window.
2018-03-26 07:39:12 +01:00
Thomas Adam
640d97afd0
Merge branch 'obsd-master'
2018-03-23 20:02:31 +00:00
nicm
194e9f611b
Fix a regression: do not warn about no client in rename-window.
2018-03-23 19:17:03 +00:00
nicm
ea295ac397
Fix size calculation when spreading out panes.
2018-03-23 10:07:54 +00:00
Thomas Adam
5512de6a61
Merge branch 'obsd-master'
2018-03-23 10:02:30 +00:00
nicm
26792b9035
Fix size calculation when spreading out panes.
2018-03-23 07:44:44 +00:00
Nicholas Marriott
919f55ac4a
Merge branch '2.7-rc'
2018-03-22 11:26:32 +00:00
Nicholas Marriott
2cd0ba5057
CHANGES for 2.7.
2018-03-22 11:25:58 +00:00
Nicholas Marriott
80283f99fb
Revert "2.7-rc."
...
This reverts commit ced74bd72c7f7cbf702d2351b11cb8d7c6af64e4.
2018-03-22 11:18:26 +00:00
Nicholas Marriott
ced74bd72c
2.7-rc.
2018-03-22 11:18:05 +00:00
Nicholas Marriott
50e3e3e72f
Remove EVENT_* variables from environment after initializing libevent so they
...
are not carried into child processes; from Henry Qin.
2018-03-21 08:15:15 +00:00
Thomas Adam
c8a706117f
Merge branch 'obsd-master'
2018-03-17 18:02:26 +00:00
nicm
0b3911631b
Fix negative window index range check (> not <). Reported by Juan Pablo
...
in GitHub issue 1283.
2018-03-17 16:48:17 +00:00
Thomas Adam
0ca78ee51f
Merge branch 'obsd-master'
2018-03-16 16:02:28 +00:00
nicm
f87d80737e
Insert full size panes at the right position, from KOIE Hidetaka in
...
GitHub issue 1284.
2018-03-16 15:15:39 +00:00
Thomas Adam
9fd9952752
Merge branch 'obsd-master'
2018-03-08 10:02:26 +00:00
nicm
19f3a5c612
Add a missing client-detached hook when the server shuts down, and do
...
not exit until jobs started from run-shell/if-shell have finished (add a
job flags member and a flag to indicate other jobs). GitHub issue 1245.
2018-03-08 08:09:10 +00:00
Thomas Adam
3c451a64b5
Merge branch 'obsd-master'
2018-03-05 14:02:29 +00:00
nicm
85c48aafff
For some reason tmux treats SGR 10 as SGR 0. It has done since the first
...
version and I'm not sure why since no other terminal appears to. Change
to just ignore SGR 10 instead.
2018-03-05 12:32:28 +00:00
Nicholas Marriott
61ea49c6dd
Fix cmp use.
2018-03-02 15:08:34 +00:00
Thomas Adam
3b8f92359d
Merge branch 'obsd-master'
2018-03-01 14:02:27 +00:00
nicm
182357f24b
Expand formats in window and session names.
2018-03-01 12:53:08 +00:00
Thomas Adam
0ca9664ecf
Merge branch 'obsd-master'
2018-02-28 10:02:29 +00:00
nicm
508e2f0b3a
Add -Z flag to choose-tree, choose-client, choose-buffer to
...
automatically zoom the pane when the mode is entered and unzoom when it
exits, assuming the pane is not already zoomed. Add -Z to the default
key bindings.
2018-02-28 08:55:44 +00:00
Thomas Adam
f5a37d0071
Merge branch 'obsd-master'
2018-02-26 10:02:30 +00:00
nicm
4d72b8fff7
C-g for modes too, from Mike Hamrick.
2018-02-26 08:09:56 +00:00
Thomas Adam
9464b94f64
Merge branch 'obsd-master'
2018-02-22 14:02:30 +00:00
Thomas Adam
c2aa40449c
Merge branch 'obsd-master'
2018-02-22 12:02:31 +00:00
nicm
3f3f13fbd7
Remove an unused variable.
2018-02-22 11:42:41 +00:00
nicm
e97daead43
Check prefix when retrying so it is checked while repeat flag is
...
set. GitHub issue 1239.
2018-02-22 10:58:12 +00:00
nicm
623f4b12d3
Add exit-empty option to exit server if no sessions (defaults to on).
2018-02-22 10:54:51 +00:00
Thomas Adam
5a44e18490
Merge branch 'obsd-master'
2018-02-20 12:02:23 +00:00
nicm
ab6f0bb348
Do not leak memory when working out job name in formats.
2018-02-20 10:43:46 +00:00
Thomas Adam
4e8b1b9ac2
Merge branch 'obsd-master'
2018-02-19 22:02:29 +00:00
Nicholas Marriott
d81aec2439
Update CHANGES.
2018-02-19 21:24:17 +00:00
nicm
6ae04dd5a0
Support ISO colon-separated SGR.
2018-02-19 21:20:10 +00:00
Thomas Adam
968296bb07
Merge branch 'obsd-master'
2018-02-16 12:02:29 +00:00
nicm
320abba341
Reflowing the grid in-place involved way too much memmove() for a big
...
performance cost with a large history. Instead change back to using a
second grid and copying modified lines over which is much faster (this
doesn't revert to the old code however which didn't support UTF-8
properly). GitHub issue 1249.
2018-02-16 09:51:41 +00:00
Thomas Adam
88711e885e
Merge branch 'obsd-master'
2018-02-05 10:02:31 +00:00
nicm
7f4513ec34
Add struct status_line to hold status line members of struct client, not
...
used yet but will be soon. From Thomas Adam.
2018-02-05 08:21:54 +00:00
Thomas Adam
2d5101621b
Merge branch 'obsd-master'
2018-02-05 08:02:27 +00:00
nicm
0817132f97
Show if filter is active/no matches in modes.
2018-02-05 06:51:41 +00:00
Thomas Adam
24abfb72eb
Merge branch 'obsd-master'
2018-02-04 12:02:24 +00:00
nicm
fe7a871a23
Upstream ncurses has introduced terminfo capabilities to specify RGB
...
colour ("true" or "direct" colour). These consist of new entries (such
as "xterm-direct") which have a different setaf/setab implementation,
colors and pairs set to 0x1000000 and 0x10000, and a new RGB flag.
The setaf/setab definitions seem to be geared towards what ncurses (or
emacs maybe) needs, in that the new versions do only ANSI and RGB
colours (they can't be used for the 256 colour palette); they rely on
the silly ISO colon-separated version of SGR; and they use a weird
multiplication scheme so they still only need one argument. The higher
values of colors and pairs require a recent ncurses to parse.
tmux can use the RGB flag to detect RGB colour support (keeping the old
Tc extension for backwards compatibility for now). However, as we still
want to send 256 colour information unchanged when possible, the new
setaf/setab are awkward. So when RGB is present, reserve setaf/setab
only for ANSI colours and use the escape sequences directly for 256 and
RGB colours. (To my knowledge no recent terminal uses unusual escape
sequences for these in any case.)
2018-02-04 10:10:39 +00:00
Nicholas Marriott
4e4c500879
Add more to TODO.
2018-01-29 12:46:52 +00:00
Nicholas Marriott
0407d847a4
Add to TODO.
2018-01-29 12:44:31 +00:00
Thomas Adam
19afd842bf
Merge branch 'obsd-master'
2018-01-18 16:02:25 +00:00
nicm
17d4c39f24
Discard all but the last line when reading from a #() command - the
...
callback is just going to be fired again straight away to go through all
the lines, it is better just to use the last one straight away.
2018-01-18 14:28:11 +00:00
Thomas Adam
d9e740f86d
Merge branch 'obsd-master'
2018-01-18 08:02:30 +00:00
nicm
c9037fde1c
Remove unused hooks_run function, from Thomas Adam.
2018-01-18 07:10:53 +00:00
Thomas Adam
84ddc72744
Merge branch 'obsd-master'
2018-01-17 11:26:10 +00:00
nicm
75842bfe66
Fix drawing of ACS characters (they need to go character-at-a-time),
...
accidentally broken in last commit.
2018-01-16 17:03:18 +00:00
nicm
5849b73b81
Add -I to pipe-pane to connect pane stdin as well as stdout, suggested
...
by Kristof Kovacs in GitHub issue 1186.
2018-01-16 09:00:38 +00:00
Nicholas Marriott
58e9d12f23
msys is apparently a cygwin variant that doesn't say it is cygwin...
2018-01-16 08:29:15 +00:00
nicm
53b25635da
Another redundant check, GitHub issue 1219.
2018-01-15 15:30:03 +00:00
nicm
481703d669
Some unused code, GitHub issue 1219.
2018-01-15 15:27:03 +00:00
nicm
b0c1cefeda
Do not collect top-bit-set characters in case they need to be replaced.
2018-01-12 16:43:47 +00:00
nicm
2c5a6f9af5
Simplify character replacement on non-UTF-8 terminals and make a common
...
function.
2018-01-12 16:41:00 +00:00
nicm
c03565611e
Simplify UTF-8 states down into one state.
2018-01-12 16:32:12 +00:00
nicm
f32fd2df69
Improve error message if creating socket parent directory fails, from
...
Thomas Adam for GitHub issue 1215.
2018-01-12 10:22:02 +00:00
nicm
829fe38ab1
Improve logging for layout cells.
2018-01-12 10:16:03 +00:00
Thomas Adam
06684c93de
Merge branch 'obsd-master'
2018-01-01 12:01:13 +00:00
nicm
d17c90583a
Prefer PWD for current directory if present in client, from Wei Zhao in
...
GitHub issue 1183.
2018-01-01 11:19:08 +00:00
nicm
fe26f977e6
Add C-g at command prompt for emacs people, GitHub issue 1213.
2018-01-01 11:03:54 +00:00
Thomas Adam
6e99a2f4bb
Merge branch 'obsd-master'
2017-12-31 22:01:15 +00:00
nicm
c9896d9554
Initialize the size of new panes created by the even-* layout correctly;
...
reported by Andreas Kahari and Anton Lindqvist.
2017-12-31 20:00:44 +00:00
Thomas Adam
ad417f6eb7
Merge branch 'obsd-master'
2017-12-28 14:01:14 +00:00
nicm
299c552e33
Redrawing status is needed after changing window flags or title does not
...
update if status line is off, GitHub issue 1191.
2017-12-28 12:10:50 +00:00
Thomas Adam
cd46568ebe
Merge branch 'obsd-master'
2017-12-27 14:43:20 +00:00
nicm
937f8ed095
Draw command prompt correctly with status line off.
2017-12-27 13:55:42 +00:00
Nicholas Marriott
6ce8fe0537
Still need to globfree on failure.
2017-12-27 13:54:37 +00:00
nicm
c363c236aa
Fix memory leak in screen_redraw_make_pane_status.
2017-12-22 23:16:41 +00:00
Thomas Adam
e19df0e869
Merge branch 'obsd-master'
2017-12-22 12:01:22 +00:00
nicm
7ba5ad4cfb
Do not try to set default value on user options (they don't have one),
...
from Charles Howard in GitHub issue 1161.
2017-12-22 10:18:51 +00:00
nicm
5c82432200
Remove duplicate WheelUp/WheelDown entries in list, GitHub issue 1184.
2017-12-22 10:16:36 +00:00
Thomas Adam
74ecc866cf
Merge branch 'obsd-master'
2017-12-19 16:01:20 +00:00
nicm
b20a00f93e
Report better error from server when socket create fails, GitHub issue
...
1201.
2017-12-19 15:00:39 +00:00
Thomas Adam
641a885af8
Merge branch 'obsd-master'
2017-12-19 00:01:18 +00:00
nicm
62144b9f57
Do not try to put more in command message than will fit when sending
...
(the server will treat as a fatal error). GitHub issue 1200.
2017-12-18 22:13:36 +00:00
Thomas Adam
43a1294ed9
Merge branch 'obsd-master'
2017-12-18 14:01:18 +00:00
nicm
58f6456af7
Remove unused variable from Thomas Adam.
2017-12-18 12:39:34 +00:00
Thomas Adam
2c6af068d7
Merge branch 'obsd-master'
2017-11-17 12:01:17 +00:00
nicm
695dc5a153
Allow formats in selectp -T, from Thomas Adam.
2017-11-17 09:52:18 +00:00
Thomas Adam
5fddddbe21
Merge branch 'obsd-master'
2017-11-16 12:01:18 +00:00
nicm
e5ae9dd53d
Add -and-cancel variants for scrolling commands to exit copy mode when
...
the bottom is reached, from Stephen Hicks.
2017-11-16 11:16:15 +00:00
Thomas Adam
102df8dc80
Merge branch 'obsd-master'
2017-11-15 22:01:22 +00:00
Nicholas Marriott
e58d16b2df
Add to CHANGES.
2017-11-15 20:14:49 +00:00
Thomas Adam
e755ca37b3
Merge branch 'obsd-master'
2017-11-15 20:01:22 +00:00
nicm
3b649d2fcd
Add a common function for spreading out cells and use it for the two
...
even layouts and to add a -E flag to select-layout to spread out cells
evenly without changing parent cells.
2017-11-15 19:59:27 +00:00
nicm
533a5719c5
Completely rewrite the reflow code to correctly handle double width
...
characters (previously they were not accounted for).
2017-11-15 19:21:24 +00:00
nicm
aeda2e5808
If there is a double width character at the very end of the line with
...
not enough room to draw it, just leave it out.
2017-11-15 19:18:57 +00:00
Thomas Adam
392da897ff
Merge branch 'obsd-master'
2017-11-13 14:01:18 +00:00
nicm
d81fa579c3
When searching in copy mode, do not scroll if the result is already on
...
screen. GitHub issue 1150.
2017-11-13 11:49:11 +00:00
Thomas Adam
515da63d2b
Merge branch 'obsd-master'
2017-11-10 00:01:19 +00:00
nicm
384736e955
If we successfully change the directory, set PWD too to give the shell a
...
hint in case of symlinks.
2017-11-09 23:02:13 +00:00
Thomas Adam
6f3b6c8d92
Merge branch 'obsd-master'
2017-11-03 18:01:21 +00:00
nicm
a2681ffcee
Clear key properly if on space with nothing in it.
2017-11-03 17:11:20 +00:00
nicm
50a5f84cb4
Support mouse on preview in tree mode.
2017-11-03 17:02:33 +00:00
Thomas Adam
24c387206c
Merge branch 'obsd-master'
2017-11-03 16:01:17 +00:00
nicm
ba93a647f1
Change mouse in modes so that one click moves the cursor and a double
...
click chooses the line.
2017-11-03 14:23:44 +00:00
Thomas Adam
e1606172dd
Merge branch 'obsd-master'
2017-11-03 00:01:20 +00:00
Thomas Adam
c9ec33d0d0
Merge branch 'obsd-master'
2017-11-02 22:01:20 +00:00
nicm
43264dfbf4
Make the mode draw function use the parent screen directly rather than
...
its own to avoid copying twice.
2017-11-02 22:00:42 +00:00
nicm
8d37f699ad
Add a "fast" version of screen_write_copy for tree mode that doesn't do
...
all the checks and selection and marking stuff needed for copy mode.
2017-11-02 21:29:17 +00:00
Thomas Adam
8c29f7413b
Merge branch 'obsd-master'
2017-11-02 20:01:26 +00:00
nicm
17655e5ba6
Format for group list of "other sessions" is a bit weird, just list all
...
the sessions in the group.
2017-11-02 18:52:05 +00:00
nicm
95850e1aca
Tweak previous slightly so that current session is chosen if it is in
...
the group rather than first.
2017-11-02 18:43:51 +00:00
nicm
c1f62f1fde
Only show the first member of session groups in tree mode (-G flag
...
disables).
2017-11-02 18:27:35 +00:00
nicm
3887d95bca
There is no point in reflowing panes which have not changed width.
2017-11-02 18:26:38 +00:00
Thomas Adam
cf782c4f54
Merge branch 'obsd-master'
2017-10-26 10:01:18 +01:00
nicm
e91e8a2a6c
Fix crash exiting command prompt (from Alex Maese in GitHub issue 1139)
...
and a man page tweak from jmc.
2017-10-26 08:17:12 +00:00
Thomas Adam
d36ac3db15
Merge branch 'obsd-master'
2017-10-25 18:01:17 +01:00
nicm
be4c01697c
Note that notifications are also hooks.
2017-10-25 15:20:10 +00:00
Thomas Adam
0072bc65e6
Merge branch 'obsd-master'
2017-10-25 16:01:22 +01:00
Nicholas Marriott
37f83adca8
Update CHANGES.
2017-10-25 15:26:54 +01:00
nicm
578a63bbc9
Default allow-rename to off because it is ridiculous that applications
...
are even able to do this and confusing when they do.
2017-10-25 14:14:52 +00:00
Thomas Adam
6b83ca0077
Merge branch 'obsd-master'
2017-10-25 14:01:26 +01:00
nicm
78ae4ee82c
h/l keys for expand and collapse.
2017-10-25 12:13:20 +00:00
Nicholas Marriott
d6edd06749
Merge branch 'master' of github.com:tmux/tmux
2017-10-25 12:29:23 +01:00
Nicholas Marriott
6e8d29e9a2
Update TODO.
2017-10-25 12:29:10 +01:00
nicm
8dd776106d
Add P key to paste tagged in buffer mode, and trim some code that should
...
no longer be necessary.
2017-10-25 11:26:11 +00:00
Thomas Adam
e85213a944
Merge branch 'obsd-master'
2017-10-22 15:47:07 +01:00
nicm
26f1857154
Use window_pane_index() when drawing pane numbers (so pane-base-index is
...
applied), from Thomas Adam. GitHub issue 1125.
2017-10-22 13:16:54 +00:00
Nicholas Marriott
f7a037ba26
Apparently vim(1) now has syntax highlighting built in, GitHub issue 1124.
2017-10-22 14:14:14 +01:00
Thomas Adam
61114c6c72
Merge branch 'obsd-master'
2017-10-20 16:01:17 +01:00
nicm
d3e8709ab5
Clear status line with spaces again so reverse works, spotted by sthen.
2017-10-20 13:10:54 +00:00
Nicholas Marriott
37531673a3
Need compat for queue.h.
2017-10-20 13:26:54 +01:00
Thomas Adam
31901e3c07
Merge branch 'obsd-master'
...
Conflicts:
server-fn.c
2017-10-20 12:36:29 +01:00
Nicholas Marriott
a34de2e378
Save and restore LIBS when checking for b64_ntop, reported by Ralf Friedl.
2017-10-17 10:35:35 +01:00
nicm
2f6935a630
Infrastructure for drawing status lines of more than one line in height,
...
still only one is allowed but this lets tmux draw bigger ones.
2017-10-16 19:30:53 +00:00
nicm
a5fd5782f8
Show exit status and time in the remain-on-exit pane text, mostly from
...
Timo Boettcher in GitHub issue 1103.
2017-10-12 11:32:27 +00:00
Nicholas Marriott
fb02df66cc
Merge branch 'master' of github.com:tmux/tmux
2017-10-12 11:56:32 +01:00
Nicholas Marriott
d10def5b0b
Check missed during merge.
2017-10-12 11:56:06 +01:00
Thomas Adam
2357bfb254
Merge branch 'obsd-master'
2017-10-11 16:01:17 +01:00
Thomas Adam
87babfa473
Merge branch 'obsd-master'
2017-10-11 14:01:17 +01:00
nicm
eb9839fd32
Box around label in preview.
2017-10-11 12:57:49 +00:00
nicm
6e5121be7e
Clear to end of line properly with UTF-8 present.
2017-10-11 11:26:58 +00:00
Thomas Adam
4efd41f3af
Merge branch 'obsd-master'
2017-10-11 10:01:19 +01:00
nicm
99351c9cae
Add C-n and C-p keys for tree mode, and choose the right initial line
...
when no panes.
2017-10-11 08:08:16 +00:00
Nicholas Marriott
60074a6bc6
Merge branch 'master' of github.com:tmux/tmux
2017-10-11 08:03:55 +01:00
Nicholas Marriott
a3967de9a5
Include headers if found regardless of forkpty.
2017-10-11 08:03:31 +01:00
Thomas Adam
044019d9d6
Merge branch 'obsd-master'
2017-10-09 14:01:16 +01:00
nicm
db44151a37
kind should be S-Down not S-Up.
2017-10-09 11:35:35 +00:00
Thomas Adam
ceab7154d4
Merge branch 'obsd-master'
2017-10-08 18:40:41 +01:00
nicm
0b4c408168
Fix description of history_size, from Campbell Barton.
2017-10-08 16:45:01 +00:00
Thomas Adam
f069c0ba09
Merge branch 'obsd-master'
2017-10-06 20:01:17 +01:00
nicm
9c4caf49a2
Support %else in config files to match %if, from Brad Town in GitHub
...
issue 1071.
2017-10-06 18:02:30 +00:00
Thomas Adam
2be01ab4ec
Merge branch 'obsd-master'
2017-10-06 13:33:32 +01:00
nicm
b462063cd5
Add -- to some key bindings so leading -s work.
2017-10-05 13:43:34 +00:00
Nicholas Marriott
8aaf86a6ea
Merge branch '2.6-rc'
2017-10-05 14:39:33 +01:00
Nicholas Marriott
bd71cbbe27
2.6.
2017-10-05 14:31:23 +01:00
nicm
88517ceebb
Add support for the xterm(1) title stack, from Brad Town, GitHub issue
...
1075.
2017-10-05 13:29:18 +00:00
nicm
6a292f09ba
When writing batches of characters to the screen, we need to clear
...
padding or later UTF-8 characters could be displayed incorrectly. GitHub
issue 1090.
2017-10-05 08:12:24 +00:00
nicm
71ec616e4d
Initialize alerts timer event where it is used, avoids crash with new windows.
2017-09-22 17:58:30 +01:00
Thomas Adam
ff526e43de
Merge branch 'obsd-master'
2017-09-22 12:01:13 +01:00
nicm
d563aa7c7b
Initialize alerts timer event where it is used, avoids crash with new windows.
2017-09-22 09:04:46 +00:00
Thomas Adam
ae5a62a514
Merge branch 'obsd-master'
2017-09-13 10:01:10 +01:00
nicm
c86d83f835
Remove unused (always 1) arguments from some functions, from Daniel
...
Mueller in GitHub issue 1073.
2017-09-13 07:31:07 +00:00
Thomas Adam
9a1b9f15a1
Merge branch 'obsd-master'
2017-09-11 22:01:10 +01:00
nicm
af2c7ce646
Check event is initialized before delete; fixes crash reported by
...
Michael Nickerson in GitHub issue 1068.
2017-09-11 20:11:45 +00:00
Nicholas Marriott
b541a97821
2.6-rc3.
2017-09-11 10:12:25 +01:00
Nicholas Marriott
a8b84b7cfa
2.6-rc3.
2017-09-11 10:08:28 +01:00
Nicholas Marriott
495e2ed17f
Merge branch 'master' into 2.6-rc
2017-09-11 10:08:15 +01:00
Thomas Adam
d8c397d1b7
Merge branch 'obsd-master'
2017-09-11 10:01:11 +01:00
nicm
d8d6c2746e
Mention that filter is a format.
2017-09-11 06:53:06 +00:00
nicm
6fdaaa0637
Do not free more lines than are available in the history.
2017-09-11 06:40:46 +00:00
Nicholas Marriott
034b19b734
2.6-rc2.
2017-09-10 16:08:22 +01:00
Nicholas Marriott
cb8eba1530
Merge branch 'master' into 2.6-rc
2017-09-10 16:07:44 +01:00
Thomas Adam
7aa8b8a25c
Merge branch 'obsd-master'
2017-09-10 16:01:14 +01:00
Nicholas Marriott
abcbfcb0e8
Merge branch 'master' into 2.6-rc
2017-09-10 15:38:02 +01:00
nicm
70bc07a358
Previously, extended cell data was never reduced in size even when the
...
cell was overwritten. With a large history this can be a substantial
amount of memory. To reduce this, compact each extended cell list to
only cells in use as it is scrolled off the visible screen into the
history. From Dan Aloni in GitHub issue 1062.
2017-09-10 14:36:12 +00:00
Thomas Adam
7f83b53027
Merge branch 'obsd-master'
...
Conflicts:
server-client.c
2017-09-10 11:39:45 +01:00
nicm
8405fcdd9b
Apply timeout to CAN and RS which also wait for ST.
2017-09-10 08:01:23 +00:00
nicm
f56f09ea38
Fix a few errors in how the selected line is chosen after resize,
...
reported by Felix Rosencrantz in GitHub issue 1059.
2017-09-08 16:28:41 +00:00
Nicholas Marriott
c62cfe64c8
Add to CHANGES.
2017-09-08 14:22:34 +01:00
nicm
78cf3c14ca
When removing a key table clear it out of clients, fixes issue with
...
unbind -a reported by Thomas Sattler.
2017-09-08 08:45:27 +00:00
nicm
89e057dc4a
Do not fail if unset an option that is already unset, reported by Thomas
...
Sattler.
2017-09-07 13:18:44 +00:00
nicm
466066c3a1
Do not attempt to use TIOCSWINSZ on a -1 file descriptor (possible if
...
the pane has already died).
2017-09-06 07:12:41 +00:00
Thomas Adam
ff3d05d92f
Merge branch 'obsd-master'
2017-09-04 12:01:11 +01:00
nicm
eadd79acec
Move to current mouse position not last when clcking in copy mode; fixes
...
GitHub issue 1055. Also a man page fix from jmc.
2017-09-04 09:18:51 +00:00
Thomas Adam
d019821281
Merge branch 'obsd-master'
2017-09-02 20:01:18 +01:00
nicm
f4848b437f
Add selectp -T to set pane title.
2017-09-02 17:51:54 +00:00
Nicholas Marriott
e941e532fa
Mention GitHub for code.
2017-08-30 21:49:31 +01:00
Nicholas Marriott
a1986c5973
Add to CHANGES.
2017-08-30 21:24:16 +01:00
Nicholas Marriott
6e2b3f435a
Add to CHANGES.
2017-08-30 21:23:26 +01:00
Nicholas Marriott
07d3c4d882
Merge branch 'master' into 2.6-rc
2017-08-30 20:04:37 +01:00
Thomas Adam
f81e87f1e2
Merge branch 'obsd-master'
2017-08-30 20:01:11 +01:00
nicm
6abfd9b8ff
Instead of overloading the line clear function to mean free if
...
background is default (8), introduce an explicit free function and use
it where a free alone is needed. Likewise, use memmove directly rather
than grid_move_lines where it makes sense. Based on a memory leak fix by
Dan Aloni in GitHub issue 1051.
2017-08-30 18:13:47 +00:00
Nicholas Marriott
07c679b52d
Merge branch 'master' into 2.6-rc
2017-08-30 12:04:09 +01:00
Nicholas Marriott
b4c633cc40
Merge branch 'master' of github.com:tmux/tmux
2017-08-30 12:03:59 +01:00
Thomas Adam
54c5070767
Merge branch 'obsd-master'
2017-08-30 12:01:10 +01:00
nicm
17cf1b21c6
Pass flags into cmd_find_from_* to fix prefer-unattached, reported by
...
Thomas Sattler.
2017-08-30 10:33:57 +00:00
Nicholas Marriott
8f364053ca
Add to TODO.
2017-08-30 11:21:20 +01:00
Nicholas Marriott
2e4e521629
2.6-rc version.
2017-08-30 09:34:27 +01:00
Nicholas Marriott
fa20f19494
Fix position of -v, pointed out by Thomas Sattler.
2017-08-30 09:33:53 +01:00
Nicholas Marriott
c1d8b0f74e
Back to master.
2017-08-29 22:19:46 +01:00
Nicholas Marriott
3815e4f05e
This is not true now...
2017-08-29 22:19:27 +01:00
Nicholas Marriott
72488b526b
Merge branch 'master' into 2.6-rc
2017-08-29 22:06:22 +01:00
Nicholas Marriott
5fec6c598e
Merge branch 'master' of github.com:tmux/tmux
2017-08-29 22:06:06 +01:00
Thomas Adam
dee6bb5a31
Merge branch 'obsd-master'
2017-08-29 22:01:11 +01:00
Nicholas Marriott
566b9623b3
Merge branch 'master' into 2.6-rc
2017-08-29 21:42:15 +01:00
Nicholas Marriott
3f3fb43850
More style.
2017-08-29 21:42:05 +01:00
Nicholas Marriott
2248b886fe
2.6-rc version.
2017-08-29 21:37:51 +01:00
Nicholas Marriott
82b30f2322
Style of headings.
2017-08-29 21:34:56 +01:00
Nicholas Marriott
6b841a036a
Fix example from Adam Spiers.
2017-08-29 21:32:09 +01:00
nicm
a7d1ee5433
Redraw rectangle selections properly when cursor at end, GitHub issue 992.
2017-08-29 20:26:25 +00:00
Thomas Adam
0f7160eb2f
Merge branch 'obsd-master'
2017-08-29 12:01:25 +01:00
Nicholas Marriott
91d6bff8b8
Merge branch 'master' of github.com:tmux/tmux
2017-08-29 11:13:54 +01:00
Nicholas Marriott
5cdccf78a1
Update CHANGES.
2017-08-29 11:13:35 +01:00
nicm
5fc0be5045
Support REP escape sequence (\033[b).
2017-08-29 09:28:45 +00:00
nicm
9852bd743c
Check for complete keys before escape prefix, allows keys to be defined
...
with a leading escape. GitHub issue 1048.
2017-08-29 09:18:48 +00:00
Thomas Adam
7d3bf6453e
Merge branch 'obsd-master'
2017-08-28 14:01:17 +01:00
nicm
fe4467ad2b
Do not forbid targets to specify non-visible panes - the checks for
...
visibility are better where the target is used. GitHub issue 1049.
2017-08-28 12:36:38 +00:00
Thomas Adam
b2322b3893
Merge branch 'obsd-master'
2017-08-27 11:48:44 +01:00
nicm
fccfc4e4be
Do not allow the current line of screen when the preview is toggled,
...
from Thomas Adam.
2017-08-27 09:08:36 +00:00
Thomas Adam
e65cc09276
Merge branch 'obsd-master'
2017-08-27 10:01:15 +01:00
nicm
25cf126de8
Use kind and kri for S-Up/Down as well as kUP and kDN.
2017-08-27 08:33:55 +00:00
Thomas Adam
1492c9d7d9
Merge branch 'obsd-master'
2017-08-24 12:01:10 +01:00
nicm
3c63ad4a9c
When tty is error or closed, remove client. Reported by Thomas Sattler.
2017-08-24 08:48:37 +00:00
Thomas Adam
3b40f8e42c
Merge branch 'obsd-master'
2017-08-23 12:01:13 +01:00
nicm
08b125194e
Key (v) and flag (-N) to toggle preview in choose modes.
2017-08-23 09:39:11 +00:00
nicm
1d60dd5872
Fix searching when match is at end of line, from Brad Town.
2017-08-23 09:18:22 +00:00
nicm
f0ce29c341
Allow multiple bells even if there is an existing bell (but not activity
...
or silence), from Brad Town.
2017-08-23 09:16:39 +00:00
nicm
e1b3dc89d2
Run alert hooks based on the options rather than unconditionally, from
...
Brad Town.
2017-08-23 09:14:21 +00:00
Nicholas Marriott
0f708dd6e2
Add to TODO.
2017-08-22 13:02:20 +01:00
Thomas Adam
730312e60f
Merge branch 'obsd-master'
2017-08-22 00:01:10 +01:00
nicm
bbe9da063e
Same as previous for \r alone.
2017-08-21 21:02:58 +00:00
nicm
7ec2a2b9ce
Do not emit \r\n to move to column 0 if there are margins, because it
...
will instead move to the margin left.
2017-08-21 21:01:21 +00:00
Thomas Adam
ccdc369025
Merge branch 'obsd-master'
2017-08-20 00:01:22 +01:00
nicm
768740ae98
Fix example for user-keys.
2017-08-19 20:40:16 +00:00
Thomas Adam
07a13697e1
Merge branch 'obsd-master'
2017-08-17 12:01:17 +01:00
nicm
8daa1d5f54
Add monitor-bell window option to match the activity and silence
...
options, from Brad Town.
2017-08-17 08:37:38 +00:00
Nicholas Marriott
de86bf1856
Add to CHANGES.
2017-08-16 16:23:58 +01:00
Thomas Adam
2103a09430
Merge branch 'obsd-master'
2017-08-16 14:01:15 +01:00
nicm
c6a8ad23a1
Add -d flag to display-panes to specify timeout, and make 0 mean no
...
timeout. From Laurens Post.
2017-08-16 12:12:54 +00:00
nicm
c1ec28a34b
Rename BELL_* values to ALERT_* now they are used by more than bells,
...
based on a diff from Brad Town.
2017-08-16 11:46:08 +00:00
Thomas Adam
0824850bbc
Merge branch 'obsd-master'
2017-08-09 16:01:10 +01:00
Thomas Adam
27c3852103
Merge branch 'obsd-master'
...
Conflicts:
tmux.1
2017-08-09 15:07:18 +01:00
nicm
ac2ba0961b
Fix filtering so it works after the change to only show windows if they
...
have multiple panes.
2017-08-09 13:44:36 +00:00
Nicholas Marriott
237b7a50f4
Update CHANGES and TODO.
2017-08-09 12:48:54 +01:00
nicm
5dd5543fe4
Add -F to choose-tree, choose-client, choose-buffer to specify the
...
format of each line, as well as adding a couple of formats needed for
the default display.
2017-08-09 11:43:45 +00:00
Thomas Adam
4bb5bb9450
Merge branch 'obsd-master'
2017-08-08 12:01:15 +01:00
nicm
31b06571aa
Hooks for after-select-pane and after-select-window.
2017-08-08 09:21:20 +00:00
Thomas Adam
e7b1e05bbd
Merge branch 'obsd-master'
2017-08-02 14:01:10 +01:00
nicm
6f9b9655d7
Add selection_present format so commands in copy mode can use it, GitHub
...
issue 1028.
2017-08-02 11:10:48 +00:00
Nicholas Marriott
45ee118b26
Merge branch 'master' of github.com:tmux/tmux
2017-07-28 15:14:35 +01:00
Nicholas Marriott
0d6fc7eb1e
I already mentioned these... revert previous.
2017-07-28 15:14:01 +01:00
Thomas Adam
ed8ddf2449
Merge branch 'obsd-master'
2017-07-28 14:01:13 +01:00
nicm
b4c9f6edba
Show pane title in window list for windows with only one pane.
2017-07-28 10:59:58 +00:00
Nicholas Marriott
a704f57971
This is a big meaningless.
2017-07-27 23:25:39 +01:00
Nicholas Marriott
6b60a5c6d6
Update CHANGES.
2017-07-27 23:22:54 +01:00
Thomas Adam
147740ed40
Merge branch 'obsd-master'
2017-07-27 14:01:13 +01:00
nicm
3df7c91f1a
Add pane_at_left/right/top/bottom formats, from Amos Bird.
2017-07-27 10:42:05 +00:00
Thomas Adam
58744de3eb
Merge branch 'obsd-master'
2017-07-26 18:01:16 +01:00
nicm
b1bd0c7fc1
Always reset the alerts timer so it works even if activity and silence
...
are enabled on the same window.
2017-07-26 16:16:25 +00:00
nicm
76887b1d27
Make bell, activity and silence alerting more consistent:
...
- remove the bell-on-alert option;
- add activity-action and silence-action options with the same possible
values as the existing bell-action;
- add "both" value for the visual-bell, visual-activity and
visual-silence options to trigger both a bell and a message.
This means all three work the same way. Based on changes from Yvain Thonnart.
2017-07-26 16:14:08 +00:00
Nicholas Marriott
06a2644ab2
Update CHANGES.
2017-07-26 11:25:33 +01:00
Nicholas Marriott
ef9afddd1a
Merge branch 'master' of github.com:tmux/tmux
2017-07-26 08:41:45 +01:00
Nicholas Marriott
3065b21375
Mention autoconf and automake.
2017-07-26 08:38:37 +01:00
Thomas Adam
358df10191
Merge branch 'obsd-master'
2017-07-22 02:01:13 +01:00
nicm
3bb426d92c
Use the actual width written rather than the possible width to clear.
2017-07-21 22:55:45 +00:00
Thomas Adam
26db50d6df
Merge branch 'obsd-master'
2017-07-21 16:01:13 +01:00
nicm
8c6ad55320
Trim trailing spaces from full line when it is clearly OK to do so.
2017-07-21 14:25:29 +00:00
nicm
e0d49ad758
Allow ispunct() as well as isalnum() when parsing initial window names.
2017-07-21 12:58:02 +00:00
Thomas Adam
e725b96a59
Merge branch 'obsd-master'
2017-07-21 12:01:16 +01:00
nicm
11e2af6df7
Add -c for respawn-pane and respawn-window, from J Raynor.
2017-07-21 09:17:19 +00:00
Thomas Adam
acbbc93501
Merge branch 'obsd-master'
2017-07-14 22:01:10 +01:00
nicm
932f6cfbfc
Because ignore SIGCHLD early, letting signal_del restore it doesn't work
...
correctly, so set it explicitly back to default (and the others for good
measure).
2017-07-14 18:49:07 +00:00
Thomas Adam
1265e212e4
Merge branch 'obsd-master'
2017-07-14 10:01:11 +01:00
Nicholas Marriott
e4cd8751a2
Update CHANGES.
2017-07-14 09:14:23 +01:00
nicm
2678fe53f5
Fix redraw defer code in the presence of multiple clients - the timer
...
may be needed for all of them, so don't delete it on the first; and
don't skip setting the redraw flag if the timer is already running.
Reported by Pol Van Aubel in GitHub issue 1003.
2017-07-14 08:04:23 +00:00
Thomas Adam
e3698e6e1f
Merge branch 'obsd-master'
2017-07-12 16:01:11 +01:00
nicm
8b84fc177c
Line up keys in tree mode, and don't expand windows with one pane. From
...
Thomas Adam.
2017-07-12 14:31:06 +00:00
Thomas Adam
5122f3477f
Merge branch 'obsd-master'
2017-07-12 14:01:13 +01:00
Thomas Adam
1076a2e26c
Merge branch 'obsd-master'
...
Conflicts:
cmd-pipe-pane.c
proc.c
tmux.c
window.c
2017-07-12 13:43:08 +01:00
nicm
fba6140a4a
Do not need to set up USR2 twice.
2017-07-12 12:35:31 +00:00
nicm
51112221ee
Block signals between forking and clearing signal handlers (or calling
...
event_reinit) - if the child gets a signal and fires the libevent signal
handler during this period it could write a signal into the parent's
signal pipe. GitHub issue 1001 from Aaron van Geffen.
2017-07-12 10:04:51 +00:00
nicm
0453ad0146
Move signal code into proc.c.
2017-07-12 09:24:17 +00:00
nicm
ed3cfaafb2
Make shell_command a global like other stuff rather than making it an
...
exception and using callback argument.
2017-07-12 09:21:25 +00:00
nicm
d0d42dc4cb
proc_send_s now seems unnecessary.
2017-07-12 09:07:52 +00:00
Thomas Adam
fbbf5a108b
Merge branch 'obsd-master'
2017-07-10 00:01:15 +01:00
nicm
58b796608f
Some extra logging to show why tmux might exit.
2017-07-09 22:33:09 +00:00
Thomas Adam
05062e7d2d
Merge branch 'obsd-master'
2017-07-07 18:01:15 +01:00
nicm
bfaa885f10
Fix size of rightmost preview section.
2017-07-07 16:27:26 +00:00
nicm
9913cce3ba
Add a pane_pipe format to show if pipe-pane is active, GitHub issue 990.
2017-07-07 14:39:45 +00:00
Thomas Adam
1029f2b277
Merge branch 'obsd-master'
2017-07-07 10:01:09 +01:00
nicm
1f7ca973c5
When working out the current client (for example for switch-client with
...
no target), prefer clients attached to the current session if there is
one. GitHub issue 995 from Jan Larres.
2017-07-07 07:13:14 +00:00
Thomas Adam
6b1ceca86a
Merge branch 'obsd-master'
2017-07-05 00:01:10 +01:00
nicm
53d4ed22e8
< and > keys to scroll preview list left and right in tree mode.
2017-07-04 22:21:31 +00:00
Thomas Adam
feb044bd2d
Merge branch 'obsd-master'
2017-07-04 14:01:15 +01:00
nicm
bedf8bd437
Handle 0 size of preview box in caller.
2017-07-04 12:26:14 +00:00
Thomas Adam
6cb4a3bb19
Merge branch 'obsd-master'
2017-07-04 02:01:13 +01:00
nicm
4039802fce
Change session and window preview so that the current window or pane is
...
always shown.
2017-07-03 22:48:02 +00:00
Thomas Adam
5e98770936
Merge branch 'obsd-master'
2017-07-03 16:01:14 +01:00
nicm
6ee0afb579
Change previous to not wait for both process exit and pty close -
...
instead if there is a pipe-pane active, do not exit until all data is
read (including any libevent hasn't seen yet). Fixes problem reported by
Theo Buehler and still seems to solve the original issue.
2017-07-03 12:38:50 +00:00
Thomas Adam
4e01036cb6
Merge branch 'obsd-master'
2017-07-03 10:01:14 +01:00
nicm
28687f2d55
Do not close panes until process has exited and any outstanding data
...
has been written to the pipe-pane event if there is one. GitHub issue 991.
2017-07-03 08:16:03 +00:00
nicm
42285ac989
Try C.UTF-8 which is also a commonly useful locale on some platforms,
...
from Romain Francoise.
2017-07-03 08:08:30 +00:00
Thomas Adam
6fba9a39b7
Merge branch 'obsd-master'
2017-07-01 00:01:21 +01:00
nicm
fa677fc0e1
Don't write over right border.
2017-06-30 22:37:35 +00:00
nicm
b565644c81
Fix previous when we end up able to show no panes.
2017-06-30 22:36:11 +00:00
nicm
7247553c77
Try to show a better preview of sessions and windows in tree mode.
2017-06-30 22:24:08 +00:00
Thomas Adam
f059fe3ef2
Merge branch 'obsd-master'
2017-06-30 00:01:14 +01:00
nicm
8b0fd63ddb
Use 100 as the example for command-alias because the defaults are from 0
...
to (currently) 5.
2017-06-29 22:02:19 +00:00
Thomas Adam
336beeb09a
Merge branch 'obsd-master'
2017-06-28 14:01:13 +01:00
nicm
a00b0d13ed
Apply the xterm key flag when needed for send-keys, fixes problem
...
reported by Franky Spamschleuder.
2017-06-28 11:36:39 +00:00
Thomas Adam
1ca920bbeb
Merge branch 'obsd-master'
2017-06-28 10:01:16 +01:00
nicm
1e376be13d
Fix visual-silence (check accidentally the wrong way round), from Brad
...
Town. Plus some tmux.1 fixes from jmc@.
2017-06-28 06:45:31 +00:00
Thomas Adam
6995497e5b
Merge branch 'obsd-master'
2017-06-23 18:01:11 +01:00
nicm
95ed7d48c8
Add user-keys option to allow user-defined keys to be set, from Dan
...
Aloni.
2017-06-23 15:36:52 +00:00
Thomas Adam
a61200776d
Merge branch 'obsd-master'
2017-06-16 18:01:13 +01:00
nicm
a67df17763
Tweak some logging.
2017-06-16 15:12:38 +00:00
Thomas Adam
233bae6992
Merge branch 'obsd-master'
2017-06-16 14:01:14 +01:00
nicm
d685604d04
Log terminal capabilities for each new terminal.
2017-06-16 11:50:06 +00:00
Thomas Adam
91dec25fc9
Merge branch 'obsd-master'
2017-06-14 10:01:10 +01:00
nicm
af93453190
Don't overwrite error message when it is available in
...
cmd_string_parse. Reported by Jimi Damon in GitHub issue 975.
2017-06-14 07:42:41 +00:00
Nicholas Marriott
6e57401610
New test.
2017-06-14 08:37:58 +01:00
nicm
dec00d3579
Add missing error message when no target, GitHub issue 971.
2017-06-14 07:37:17 +00:00
Thomas Adam
154c95d0c9
Merge branch 'obsd-master'
2017-06-13 13:48:37 +01:00
nicm
ac7080b31b
Remove xterm flag from key before checking prefix, reported by Peter
...
Fern in GitHub issue 974.
2017-06-13 07:12:33 +00:00
Thomas Adam
a073d11c3e
Merge branch 'obsd-master'
2017-06-12 14:01:14 +01:00
nicm
e028ab3476
Need to flush out the linefeed after wrapper. GitHub issue 970.
2017-06-12 10:57:35 +00:00
Thomas Adam
5362f956f0
Merge branch 'obsd-master'
2017-06-12 10:01:15 +01:00
nicm
8037159f93
Add explicit keys for the bracketed paste sequences, both to avoid mix
...
ups with other keys and to make logs clearer.
2017-06-12 07:04:24 +00:00
Thomas Adam
4dbab75855
Merge branch 'obsd-master'
2017-06-09 18:01:14 +01:00
nicm
adcd5aff6f
Extend filters (f key) to buffer and client mode and add -f flag to
...
specify to command.
2017-06-09 16:01:39 +00:00
nicm
bab4da5133
Add -O option to choose-* to set initial sort order.
2017-06-09 15:29:15 +00:00
nicm
3ec28ceb9b
Default sort for buffer mode should be time not name.
2017-06-09 15:17:20 +00:00
Thomas Adam
ed45052d6d
Merge branch 'obsd-master'
2017-06-09 16:01:13 +01:00
Nicholas Marriott
411640c032
Merge branch 'master' of github.com:tmux/tmux
2017-06-09 15:57:13 +01:00
Nicholas Marriott
eea93638c6
Set AM_CFLAGS for ncurses libraries, reported by Peter Schow.
2017-06-09 15:56:50 +01:00
nicm
a2ca51c27a
Use brackets around prompts which looks better and matches the other modes.
2017-06-09 14:00:46 +00:00
Thomas Adam
e640907d24
Merge branch 'obsd-master'
2017-06-09 12:01:17 +01:00
nicm
74b2deae1c
Add a hook when the clipboard is set.
2017-06-09 09:21:24 +00:00
Nicholas Marriott
143ccd27b4
Add memmem to compat.
2017-06-09 08:53:58 +01:00
Nicholas Marriott
a4d2fa1b6d
Update TODO.
2017-06-08 17:21:30 +01:00
Nicholas Marriott
065c360730
Typo.
2017-06-08 14:08:04 +01:00
Nicholas Marriott
738d9aece7
Note what to have for building Git.
2017-06-08 13:40:24 +01:00
Nicholas Marriott
8c38409aef
Merge branch 'master' of github.com:tmux/tmux
2017-06-08 13:29:59 +01:00
Nicholas Marriott
61ed6425bd
Move FAQ online and do not ship TODO.
2017-06-08 13:29:36 +01:00
Thomas Adam
6e8c93afdd
Merge branch 'obsd-master'
2017-06-08 10:01:10 +01:00
nicm
8c4ae1c938
Add size to client descriptions in list, suggested by Greg Hurrell.
2017-06-08 07:48:04 +00:00
Thomas Adam
4aa02c3743
Merge branch 'obsd-master'
2017-06-07 18:01:13 +01:00
nicm
356fab7bcb
Return 1 if name matches not 0, also fix some spaces.
2017-06-07 15:27:46 +00:00
Nicholas Marriott
9543f076fd
Use osdep_get_name.
2017-06-07 16:21:01 +01:00
Thomas Adam
86d6666fe7
Merge branch 'obsd-master'
2017-06-07 16:01:10 +01:00
nicm
405cc337f3
Add simple searching (C-s and n) to the various choose modes: by name
...
for client and tree, and by name and content for buffer.
2017-06-07 14:37:30 +00:00
Nicholas Marriott
772dacc89b
Tweak title.
2017-06-07 11:27:04 +01:00
Nicholas Marriott
696d2889f4
Mention U8, from Carles Cufi.
2017-06-07 11:19:04 +01:00
Nicholas Marriott
9316b9b57a
Typo.
2017-06-07 11:15:36 +01:00
Nicholas Marriott
fb288ef9a7
Remove a bunch of out-of-date stuff from the FAQ or stuff that is documentation
...
for other programs.
2017-06-07 11:13:05 +01:00
Thomas Adam
7077980055
Merge branch 'obsd-master'
2017-06-06 18:01:13 +01:00
nicm
50b27c8c0d
Continue and pass keys through if they are repeated keys, so that the
...
first key after a repeated key doesn't get lost.
2017-06-06 15:49:35 +00:00
nicm
bbc35b0b19
Do not pass a state into commands when fired on individual items in tree
...
mode, rely on the %% target substitution in the command for the chosen
pane and leave the default target as the current pane (where the mode
is). Otherwise, joinp and similar end up with -t and -s the
same. Reported by Jacob Niehus in GitHub issue 960.
2017-06-06 15:07:35 +00:00
nicm
d7280917da
Delete input event when evbuffer_read() fails to avoid just spinning
...
around a dead file descriptor. Seems to fix a problem reported by Greg
Hurrell in GitHub issue 941.
2017-06-06 14:53:28 +00:00
Nicholas Marriott
78352fdd32
Add a small dance to daemon() to reattach tmux to the user's namespace (which
...
allows access to the clipboard) on OS X 10.10 and above.
Chis Johnsen has done much work on and documentation of this issue, the code is
copied (with some tweaks) from his reattach-to-user-namespace at:
https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
Tested by Enrico Ghirardi.
Will see how this goes, if it breaks stuff it might go away again.
2017-06-06 07:59:53 +01:00
Nicholas Marriott
63f8a2cb89
Merge branch 'master' of github.com:tmux/tmux
2017-06-05 12:02:10 +01:00
Nicholas Marriott
e1686c26dd
Update CHANGES.
2017-06-05 12:01:58 +01:00
Thomas Adam
a999f6f876
Linux build fixes
...
Linux doesn't have vis.h
2017-06-05 12:00:52 +01:00
Thomas Adam
e62e17d046
Merge branch 'obsd-master'
...
Conflicts:
tmux.1
window.c
2017-06-05 11:59:38 +01:00
nicm
2f04108f3a
Do not leak command, from David CARLIER.
2017-06-04 15:36:33 +00:00
Nicholas Marriott
1c83c0ebcd
tparm() fix for Solaris.
2017-06-04 11:27:35 +01:00
Nicholas Marriott
8ec6c323b6
signal.h for utempter, from David CARLIER.
2017-06-04 11:23:48 +01:00
nicm
c5b7faaefc
Add a timeout to prevent the sequences which wait for a specific
...
terminator (OSC, APC and DCS) waiting forever, which helps to avoid
garbage (cat /dev/random) locking up panes completely. This (and the
last commit) prompted by a discussion with theo.
2017-06-04 09:22:34 +00:00
nicm
467ece53e6
Remove unused variable.
2017-06-04 09:02:57 +00:00
nicm
8149bc3fa6
Be more strict about escape sequences that rename windows or set titles:
...
ignore any that not valid UTF-8 outright, and for good measure pass the
result through our UTF-8-aware vis(3).
2017-06-04 09:02:36 +00:00
nicm
adf5628087
Support SIGUSR2 to stop and start logging for an existing server. Also
...
we currently only have two log levels so just use -v and -vv rather than
-v and -vvvv, and clarify the man page entry for -v.
2017-06-04 08:25:57 +00:00
Nicholas Marriott
67cd496b39
Update CHANGES.
2017-06-04 09:09:31 +01:00
nicm
184039044a
Typo/style; plus man page escaping from jmc.
2017-06-04 08:02:20 +00:00
Thomas Adam
757eb060cd
Merge branch 'obsd-master'
2017-06-03 20:01:10 +01:00
nicm
3442066054
Make set-clipboard a three-state option so tmux itself can ignore the
...
sequencess.
2017-06-03 17:43:01 +00:00
Thomas Adam
80235d6fdd
Merge branch 'obsd-master'
2017-06-03 10:01:10 +01:00
nicm
493a1846d0
Foreground colours with the bright attribute set need to use the bright
...
entries in the palette. GitHub issue 954.
2017-06-03 07:15:23 +00:00
Thomas Adam
73b9328c1f
Merge branch 'obsd-master'
...
Conflicts:
window-buffer.c
2017-06-01 18:29:36 +01:00
nicm
248aa54bfd
Style and spacing nits.
2017-05-31 17:56:48 +00:00
nicm
70cc8f2c7e
Shut up a warning.
2017-05-31 16:44:33 +00:00
Nicholas Marriott
92d86586b7
Update TODO.
2017-05-31 17:38:34 +01:00
Nicholas Marriott
a8e0363914
Add setrgbf setrgbb.
2017-05-31 17:22:43 +01:00
Nicholas Marriott
35008200bd
Differences to OpenBSD.
2017-05-31 16:34:39 +01:00
Nicholas Marriott
113356c848
Build fixes.
2017-05-31 16:29:07 +01:00
nicm
b3d0ed4057
time.h here too.
2017-05-31 15:27:57 +00:00
nicm
61c0189bb1
Need time.h.
2017-05-31 15:26:41 +00:00
Thomas Adam
f17ecaa495
Merge branch 'obsd-master'
...
Conflicts:
Makefile.am
cfg.c
server-client.c
2017-05-31 15:56:13 +01:00
Nicholas Marriott
9c4d0d454a
Some changes that will appear when we sync up.
2017-05-31 13:56:07 +01:00
nicm
d60663ea86
Some applications like vi(1) and tmux until 10 minutes or so ago, do not
...
redraw on SIGWINCH if the size returns to the original size between the
original SIGWINCH and when they get around to calling TIOCGWINSZ. So use
the existing resize timer to introduce a small delay between the two
resizes.
2017-05-31 11:00:00 +00:00
nicm
ea6428a5d2
It is not OK to ignore SIGWINCH if SIOCGWINSZ reports the size has
...
unchanged, because it may have changed and changed back in the time
between us getting the signal and calling ioctl(). Always redraw when we
see SIGWINCH.
2017-05-31 10:29:15 +00:00
nicm
80c6b487dc
Because we defer actually resizing applications (calling TIOCSWINSZ)
...
until the end of the server loop, tmux may have gone through several
internal resizes in between. This can be a problem if the final size is
the same as the initial size (what the application things it currently
is), because the application may choose not to redraw, assuming the
screen state is unchanged, when in fact tmux has thrown away parts of
the screen, assuming the application will redraw them.
To avoid this, do an extra resize if the new size is the same size as
the initial size. This should force the application to redraw when tmux
needs it to, while retaining the benefits of deferring (so we now resize
at most two times instead of at most one - and only two very rarely).
Fixes a problem with break-pane and zoomed panes reported by Michal
Mazurek.
2017-05-31 10:15:51 +00:00
nicm
7eb496c00c
Look for setrgbf and setrgbb terminfo extensions for RGB colour. This is
...
the most reasonable of the various (some bizarre) suggestions for
capabilities.
2017-05-31 08:43:44 +00:00
nicm
aad4e4ddb1
Rewrite of choose mode, both to simplify and tidy the code and to add
...
some modern features.
Now the common code is in mode-tree.c, which provides an API used by the
three modes now separated into window-{buffer,client,tree}.c. Buffer
mode shows buffers, client mode clients and tree mode a tree of
sessions, windows and panes.
Each mode has a common set of key bindings plus a few that are specific
to the mode. Other changes are:
- each mode has a preview pane: for buffers this is the buffer content
(very useful), for others it is a preview of the pane;
- items may be sorted in different ways ('O' key);
- multiple items may be tagged and an operation applied to all of them
(for example, to delete multiple buffers at once);
- in tree mode a command may be run on the selected item (session,
window, pane) or on tagged items (key ':');
- displayed items may be filtered in tree mode by using a format (this
is used to implement find-window) (key 'f');
- the custom format (-F) for the display is no longer available;
- shortcut keys change from 0-9, a-z, A-Z which was always a bit weird
with keys used for other uses to 0-9, M-a to M-z.
Now that the code is simpler, other improvements will come later.
Primary key bindings for each mode are documented under the commands in
the man page (choose-buffer, choose-client, choose-tree).
Parts written by Thomas Adam.
2017-05-30 21:44:59 +00:00
Thomas Adam
cea83c0e1f
Merge branch 'obsd-master'
2017-05-30 10:01:12 +01:00
nicm
bd39fcbeea
Preserve search string when entering prompt again.
2017-05-30 08:13:48 +00:00
Thomas Adam
0d073907b5
Merge branch 'obsd-master'
2017-05-30 00:01:14 +01:00
Thomas Adam
5ee6dc2120
Merge branch 'obsd-master'
2017-05-29 22:01:15 +01:00
nicm
64552ae304
Add a flag to stop the prompt input being expanded.
2017-05-29 20:42:53 +00:00
nicm
b95e5827c1
Store a copy of the old status line, will be needed soon for new choose mode.
2017-05-29 20:41:29 +00:00
nicm
8a214b2f8e
Function to count clients.
2017-05-29 20:37:30 +00:00
Thomas Adam
5bc5fe5e7e
Merge branch 'obsd-master'
2017-05-29 20:01:12 +01:00
nicm
a2ace9da24
Add ||, && format operators and C: to search pane content.
2017-05-29 18:06:34 +00:00
Thomas Adam
d3959a2118
Merge branch 'obsd-master'
2017-05-29 18:01:14 +01:00
nicm
1257501499
Add m: for fnmatch(3) format matching.
2017-05-29 15:43:48 +00:00
Thomas Adam
bfd7209053
Merge branch 'obsd-master'
2017-05-29 10:01:15 +01:00
nicm
1883d299bf
Do not factor in screen_hsize() for the visible copy mode screen when
...
adjusting the selection, it should never have any useful history (and
when it does, after resize, we shouldn't use it). From Michal Mazurek.
2017-05-29 07:58:33 +00:00
nicm
15253448af
Tweak text to mention initial size, from John Hood.
2017-05-29 07:46:32 +00:00
Nicholas Marriott
b017dc7e32
Update release text.
2017-05-29 08:40:33 +01:00
Nicholas Marriott
b5a6458cde
Merge branch '2.5-rc'
2017-05-29 08:23:03 +01:00
Nicholas Marriott
caa90735cf
2.5.
2017-05-29 08:12:25 +01:00
Nicholas Marriott
de45957c42
Add to CHANGES.
2017-05-29 08:11:47 +01:00
Thomas Adam
f4a42738af
Merge branch 'obsd-master'
2017-05-29 02:01:15 +01:00
nicm
d5158620bb
Support OSC 10 and 11 to set foreground and background colours, from
...
"bertnp" in GitHub issue 942.
2017-05-28 23:23:40 +00:00
Nicholas Marriott
bf5a196c78
Changes in master.
2017-05-28 22:10:17 +01:00
Thomas Adam
5d7dfefa36
Merge branch 'obsd-master'
2017-05-28 22:01:11 +01:00
nicm
dbc8cae18c
Change so that sessions created detached (-d or no client) are always
...
80x24 and the status line is not applied until they attach. Also make -x
and -y work for control clients whether the session is detached or not.
2017-05-28 19:46:55 +00:00
Nicholas Marriott
1e1e0f1fbb
Add test for -x and -y too.
2017-05-28 20:15:45 +01:00
nicm
385bf084a5
Also recalculate session sizes when refreh-client -C is used. GitHub
...
issue 947.
2017-05-28 19:00:52 +00:00
Nicholas Marriott
eb1f362687
Do not need /dev/null.
2017-05-28 19:53:08 +01:00
Nicholas Marriott
5386e6583d
Add some tests.
2017-05-28 19:52:51 +01:00
Thomas Adam
d1497527c6
Merge branch 'obsd-master'
2017-05-17 18:01:14 +01:00
nicm
91d202da7e
Tidy command prompt callbacks and pass in the client.
2017-05-17 15:20:23 +00:00
Nicholas Marriott
3888bf9d12
Need to check libutil for fparseln.
2017-05-17 12:48:42 +01:00
Thomas Adam
3df4e78492
Merge branch 'obsd-master'
2017-05-16 16:01:28 +01:00
Nicholas Marriott
b74b6dc77f
Missed during merge.
2017-05-16 14:15:35 +01:00
nicm
31625c2d17
Line length and spaces to tabs.
2017-05-16 12:57:26 +00:00
Thomas Adam
dcdaf5c8b9
Merge branch 'obsd-master'
2017-05-15 20:01:14 +01:00
Thomas Adam
36181775cd
Merge branch 'obsd-master'
2017-05-15 18:01:14 +01:00
nicm
1ba7f1d03f
Check the terminfo(5) U8 capability and disable using UTF-8 for ACS if
...
it is present and zero. This is useful for users with terminals or fonts
that do not correctly support UTF-8 line drawing characters. GitHub
issue 927, reported by Hiroaki Yamazoe and Akinori Hattori.
2017-05-15 16:44:04 +00:00
nicm
b160de5cb4
Notify layout changed when choosing predefined layouts, from Joshua Brot.
2017-05-15 14:57:29 +00:00
Thomas Adam
7edaedf3a1
Merge branch 'obsd-master'
2017-05-15 10:01:16 +01:00
nicm
cb5fcb3d22
The Konsole SU bug means it can't clear the entire scroll region (it
...
ignores if >= size, not if > as I first thought). So we can't
effectively fix it in code - remove the workarounds which just cause
bugs on other terminals.
2017-05-15 07:54:44 +00:00
Thomas Adam
58f8421eac
Merge branch 'obsd-master'
2017-05-13 10:01:16 +01:00
nicm
7a4c66b7f5
Scroll the right number of lines off the region when clearing.
2017-05-13 07:41:59 +00:00
nicm
d58c3793d6
Some other unused variables.
2017-05-13 07:30:50 +00:00
Nicholas Marriott
ea190d862a
Merge branch '2.5-rc'
2017-05-13 08:20:01 +01:00
Nicholas Marriott
0f26739c9f
2.5-rc2.
2017-05-13 08:17:01 +01:00
Nicholas Marriott
ae2c5ad768
Reset updated flag when restarting job so new output is detected, reported by
...
Gregory Pakosz in GitHub issue 922.
2017-05-13 08:16:11 +01:00
Thomas Adam
9f9f8c8e76
Merge branch 'obsd-master'
2017-05-13 02:01:13 +01:00
nicm
50f1f1dce9
Compare >= for columns not >.
2017-05-12 23:10:19 +00:00
nicm
0264ef094a
Can scroll away full lines to clear them too.
2017-05-12 23:06:43 +00:00
nicm
f688653710
Remove an unused variable.
2017-05-12 22:43:15 +00:00
Thomas Adam
886d896098
Merge branch 'obsd-master'
2017-05-12 18:01:14 +01:00
Nicholas Marriott
8331000764
Merge branch '2.5-rc'
2017-05-12 16:18:31 +01:00
nicm
0cd74723e1
When expanding a line in order to clear it, we need to use the default
...
background colour - there may be portions that we do not want to clear
with the new background colour.
2017-05-12 15:18:13 +00:00
Nicholas Marriott
2bff5e7867
ECH needs to use background colour.
2017-05-12 16:16:16 +01:00
nicm
90f2a417af
Need to clear tty context before using it.
2017-05-12 16:04:13 +01:00
nicm
7c07f5f640
Cannot rely on cursor position after DL and IL (some terminals move to
...
column 0, some do not).
2017-05-12 16:03:49 +01:00
Thomas Adam
20e30593a5
Merge branch 'obsd-master'
2017-05-12 16:01:14 +01:00
nicm
e2a18e2b37
Need to store bg for ECH.
2017-05-12 14:56:56 +00:00
nicm
da724fe1c0
Cannot rely on cursor position after DL and IL (some terminals move to
...
column 0, some do not).
2017-05-12 14:13:54 +00:00
nicm
ffd8beb6f6
Need to clear tty context before using it.
2017-05-12 13:29:05 +00:00
nicm
5d3cf2ff15
Only redraw single client, and tweak some logging.
2017-05-12 13:27:57 +00:00
Thomas Adam
7f813dcb6a
Merge branch 'obsd-master'
2017-05-12 14:01:17 +01:00
nicm
18bab30792
Scrolling needs to use background colour.
2017-05-12 13:00:56 +00:00
nicm
60f7b05c0c
Regions can't be smaller than 2 so don't try to clear them by scrolling if so.
2017-05-12 11:19:24 +00:00
nicm
7f626c8959
Can use INDN to clear regions with default background colour if margins
...
are supported.
2017-05-12 11:13:43 +00:00
nicm
886d50dcab
ECH needs to use background colour.
2017-05-12 10:50:11 +00:00
nicm
7d3e2c83d4
Store copy mode search string in pane so search-again command works even
...
if you exit and reenter copy mode (it doesn't remember the position,
just the search string), suggested by espie@.
2017-05-12 10:45:38 +00:00
Nicholas Marriott
1cdc4568bd
Merge branch '2.5-rc'
2017-05-11 23:28:56 +01:00
nicm
69df38f8d8
Clear to start of screen needs to use background colour.
2017-05-11 23:28:44 +01:00
nicm
5e30b81825
Need to redraw out to cellsize (total cells used in a line) rather than
...
cellused (only non-space cells) because there may be cells with a
nondefault background.
2017-05-11 23:28:22 +01:00
Thomas Adam
99582befc4
Merge branch 'obsd-master'
2017-05-11 14:01:10 +01:00
nicm
c0d3f204b0
Clear to start of screen needs to use background colour.
2017-05-11 11:39:30 +00:00
nicm
989cdca95f
Need to redraw out to cellsize (total cells used in a line) rather than
...
cellused (only non-space cells) because there may be cells with a
nondefault background.
2017-05-11 11:38:49 +00:00
Thomas Adam
def8f852e3
Merge branch 'obsd-master'
2017-05-11 10:01:10 +01:00
nicm
349cdd6110
Make environ_log prefix take a format.
2017-05-11 07:34:54 +00:00
nicm
c54a5b3690
Change how we resolve which pane is dragging when there are multiple
...
options - choose the largest pane, which is more likely to be the one the
user wants to resize. Prompted by a report from Thomas Sattler.
2017-05-11 07:24:42 +00:00
Thomas Adam
6d961d672d
Merge branch 'obsd-master'
2017-05-10 22:01:13 +01:00
Thomas Adam
247ec2ad88
Merge branch 'obsd-master'
2017-05-10 20:01:17 +01:00
nicm
8ab2753521
Move to the right cursor position before using spaces to clear.
2017-05-10 18:40:13 +00:00
nicm
2dc9bfd93a
Prevent control clients from affecting the session size until they have
...
specified a size with refresh-client -C. Prompted by a different change
with the same purpose from George Nachman.
2017-05-10 16:48:36 +00:00
nicm
9dc6946ebf
We can use ECH to clear sections of lines, so use it for internal panes
...
(that don't touch an edge). Move all the tty clear code into two common
functions rather than having the same bunch of checks everywhere.
2017-05-10 16:47:03 +00:00
Thomas Adam
0868512bbc
Merge branch 'obsd-master'
2017-05-10 16:01:10 +01:00
nicm
b519551153
Expand formats in option names and add -F flag to do so in option values as well.
2017-05-10 13:05:41 +00:00
Thomas Adam
f8b3f1622d
Merge branch 'obsd-master'
2017-05-10 14:01:11 +01:00
nicm
0e3c5ebe1a
Insert copy mode bindings at the right place in the command queue.
2017-05-10 10:46:59 +00:00
Nicholas Marriott
daef51e038
Typo.
2017-05-09 23:18:48 +01:00
Nicholas Marriott
e82c42661b
Back to master.
2017-05-09 23:11:01 +01:00
Nicholas Marriott
3a47dec424
Fix test.
2017-05-09 23:01:10 +01:00
Nicholas Marriott
7b17618890
2.5-rc and changes.
2017-05-09 22:53:36 +01:00
Nicholas Marriott
71bc255e6f
Merge branch 'master' of github.com:tmux/tmux
2017-05-09 22:34:15 +01:00
Nicholas Marriott
8f990c573c
Update TODO.
2017-05-09 22:33:39 +01:00
Thomas Adam
3f1d6102f3
Merge branch 'obsd-master'
2017-05-09 20:01:10 +01:00
nicm
3712b41aba
If the target pane for send-keys in in a mode with a key table (that is,
...
copy mode), then look the key up in the table and fire any command
instead of delivering the key to the pane directly where it will be
ignored. This makes C-b C-b (send-prefix) work in copy mode again.
2017-05-09 17:56:55 +00:00
Thomas Adam
4bcb64f8c1
Merge branch 'obsd-master'
2017-05-09 15:44:33 +01:00
Thomas Adam
a651b08a2f
Merge branch 'obsd-master'
...
Conflicts:
format.c
2017-05-09 15:44:13 +01:00
nicm
3b35daacf7
If the current screen was complex enough, it was possible to make redraw
...
itself hit the "terminal can't keep up" check. To avoid this, record how
much data we send during redraw (we know we will be starting with 0) and
skip the check until it has been flushed. GitHub issue 912.
2017-05-09 13:04:36 +00:00
nicm
18f36906a9
Set current pane in rotate-window.
2017-05-09 11:00:48 +00:00
nicm
5fee4638e0
Add a format for the name of the pane's mode, lets it be used as a
...
conditional for key bindings.
2017-05-07 22:27:57 +00:00
nicm
d52f579fd5
Up to now, tmux sees \033\033[OA as M-Up and since we turned on
...
xterm-keys by default, generates \033[1;3A instead of
\033\033[OA. Unfortunately this confuses vi, which doesn't understand
xterm keys and now sees Escape+Up pressed within escape-time as Escape
followed by A.
The issue doesn't happen in xterm itself because it gets the keys from X
and can distinguish between a genuine M-Up and Escape+Up.
Because xterm can, tmux can too: xterm will give us \033[1;3A (that is,
kUP3) for a real M-Up and \033\033OA for Escape+Up - in fact, we can be
sure any \033 preceding an xterm key is a real Escape key press because
Meta would be part of the xterm key instead of a separate \033.
So change tmux to recognise both sequences as M-Up for its own purposes,
but generate the xterm version of M-Up only if it originally received
the xterm version from the terminal.
This means we will return to sending \033\033OA instead of the xterm key
for terminals that do not support xterm keys themselves, but there is no
practical way around this because they do not allow us to distinguish
between Escape+Up and M-Up. xterm style escape sequences are now the de
facto standard for these keys in any case.
Problem reported by jsing@ and subsequently by Cecile Tonglet in GitHub
issue 907.
2017-05-07 21:25:59 +00:00
nicm
2fef10b9ac
Add some formats to look at the session window stack, suggested by Scott
...
ROCHFORD.
2017-05-05 11:59:47 +00:00
Thomas Adam
f3221941f2
Merge branch 'obsd-master'
2017-05-04 10:01:12 +01:00
nicm
d98d316903
Some new notifications, mainly for active pane and current window and
...
session:
pane-mode-changed
window-pane-changed
client-session-changed
session-window-changed
From Joshua Brot.
2017-05-04 07:16:43 +00:00
Thomas Adam
97ecb4f9d8
Merge branch 'obsd-master'
2017-05-03 08:01:14 +01:00
nicm
ca6a121e63
Add a format for the last search string in copy mode and fix the prompt
...
so it can work when in -I, suggested by Suraj N Kurapati.
2017-05-03 05:53:34 +00:00
Thomas Adam
e354b0e40f
Merge branch 'obsd-master'
2017-05-01 14:01:14 +01:00
nicm
0ccfb61bb0
In order that people can use formats like #D in #() in the status line
...
and not have to wait for an update when they change pane, we allow
commands to run more than once a second if the expanded form
changes. Unfortunately this can mean them being run far too often
(pretty much continually) when multiple clients exist, because some
formats (including #D) will always differ between clients.
To avoid this, give each client its own tree of jobs which means that
the same command will be different instances for each client - similar
to how we have the tag to separate commands for different panes.
GitHub issue 889; test case reported by Paul Johnson.
2017-05-01 12:20:55 +00:00
Nicholas Marriott
4b39120d22
.NOTPARALLEL.
2017-04-30 13:55:32 +01:00
Nicholas Marriott
76950a6401
Add regress/Makefile.
2017-04-30 13:47:25 +01:00
Nicholas Marriott
909d962d3a
Make example match reality; Greg Hurrell.
2017-04-30 08:27:23 +01:00
Nicholas Marriott
dde53cfde1
Add to TODO.
2017-04-30 08:23:14 +01:00
Thomas Adam
0adb60b3a6
Merge branch 'obsd-master'
2017-04-30 00:01:17 +01:00
nicm
a2dd7daf4e
Fix UTF-8 combining characters in column 0, based on a diff from Keith
...
Winstein.
2017-04-29 21:27:46 +00:00
Thomas Adam
3a8e56b282
Merge branch 'obsd-master'
2017-04-28 22:01:18 +01:00
Nicholas Marriott
36202a63e9
Merge branch 'master' of github.com:tmux/tmux
2017-04-28 20:22:31 +01:00
Nicholas Marriott
abad809e7a
Test that kill-session closes the panes (processes end up dead).
2017-04-28 20:22:01 +01:00
nicm
0f2f783584
Log what is happening with window and session reference counts much more
...
obviously.
2017-04-28 19:13:55 +00:00
nicm
bcd6b41674
Remove a reference from the right window when removing from a winlink's
...
list.
2017-04-28 19:12:15 +00:00
nicm
92053cb492
Do not put the window on the alerts queue and add a reference unless the
...
alert is enabled and we are actually going to add the alerts event.
2017-04-28 19:10:48 +00:00
Thomas Adam
14cb489a3b
Merge branch 'obsd-master'
2017-04-28 20:01:14 +01:00
nicm
54e2205e54
Konsole incorrectly ignores SU (CSI S) if the parameter is bigger than
...
the scroll region, so clamp it. Reported by Moritz Bunkus.
2017-04-28 17:58:44 +00:00
Thomas Adam
99b0f48b2e
Merge branch 'obsd-master'
2017-04-28 16:01:12 +01:00
nicm
c12711affd
Default for xterm-keys was wrong, stop documenting it.
2017-04-28 13:39:59 +00:00
Nicholas Marriott
e4b4125310
source-file too.
2017-04-27 13:14:14 +01:00
Nicholas Marriott
6b2d850e54
Tests for some new session and new window bits.
2017-04-27 13:09:08 +01:00
Thomas Adam
0daeefefdb
Merge branch 'obsd-master'
2017-04-25 20:01:11 +01:00
nicm
d520dae6ac
Make full width panes try to play more nicely with terminal copy and
...
paste by avoiding explicit line wraps if we think the terminal will wrap
anyway.
2017-04-25 18:30:29 +00:00
nicm
03d01eabb5
When we write out the grid including escape sequences, an SGR 0 needs to
...
cause the colours to be written again. Also treat colours separately
from attributes so that RGB colours will work.
2017-04-25 18:20:51 +00:00
Thomas Adam
65d6278f88
Merge branch 'obsd-master'
2017-04-25 18:01:11 +01:00
nicm
c48d09ec88
Do not update TERM into config file parsing has finished.
2017-04-25 15:35:10 +00:00
nicm
4a51a9d9d5
Block the initial client if there is one until the configuration file
...
has finished loading.
2017-04-25 14:46:23 +00:00
Nicholas Marriott
b938212563
Another test.
2017-04-25 15:40:10 +01:00
Nicholas Marriott
accaff8ac0
Remove stuff from TODO.
2017-04-25 14:31:05 +01:00
Nicholas Marriott
45965fb020
And another test.
2017-04-25 14:30:58 +01:00
Thomas Adam
6ac39d5cdb
Merge branch 'obsd-master'
2017-04-25 14:01:16 +01:00
Nicholas Marriott
9794c03537
And another.
2017-04-25 13:50:44 +01:00
Nicholas Marriott
1b221a56ea
Try to start writing test scripts.
2017-04-25 13:37:03 +01:00
nicm
eb6fd6ff80
if-shell doesn't need to queue its error message into a callback, and in
...
fact it can't do so because the item it was working with will have been
freed. Reported by Daniel Hahler.
2017-04-25 11:49:35 +00:00
Thomas Adam
9d041d8e6c
Merge branch 'obsd-master'
2017-04-23 20:01:13 +01:00
nicm
5172014668
Only use ED for clear screen if at the bottom, same as earlier fix to
...
clear end of screen.
2017-04-23 18:13:24 +00:00
Thomas Adam
b853054e71
Merge branch 'obsd-master'
2017-04-22 16:01:19 +01:00
Thomas Adam
a6a294c8f8
Merge branch 'obsd-master'
2017-04-22 14:01:15 +01:00
nicm
1e0eb914d9
Memory leak from David CARLIER.
2017-04-22 12:55:06 +00:00
nicm
ae1a6c2fc5
Do not need getopt.h.
2017-04-22 12:08:41 +00:00
Thomas Adam
e802b683ea
Merge branch 'obsd-master'
2017-04-22 12:01:19 +01:00
nicm
55cd4c7bc7
Can't collect UTF-8 characters of more than one byte at the moment.
2017-04-22 10:30:56 +00:00
nicm
a4eaac359a
new -A should use the session name.
2017-04-22 10:26:44 +00:00
nicm
ee45a8a149
Get rid of the extra layer of flags and cmd_prepare() and just store the
...
CMD_FIND_* flags in the cmd_entry and call it for the command. Commands
with special requirements call it themselves and update the target for
hooks to use.
2017-04-22 10:22:39 +00:00
Thomas Adam
b08e451c91
Merge branch 'obsd-master'
2017-04-22 10:01:51 +01:00
nicm
2c0f826c36
Mouse bindings and hooks set up an initial current state when running a
...
command. This is used for the session, window and pane for all commands
in the command sequence if there is no -t or -s.
However, using it for all commands in the command sequence means that if
the active pane or current session is changed, subsequent commands still
use the previous state. So make commands which explicitly change the
current state (such as neww and selectp) update it themselves for later
commands. Commands which may invalidate the state (like killp) are
already OK because an invalid state will be ignored.
Also fill in the current state for all key bindings rather than just the
mouse, so that any omissions are easier to spot.
2017-04-22 08:56:24 +00:00
nicm
bcab77e266
We need to collect UTF-8 characters so that width != 1 characters are
...
correctly flushed.
2017-04-22 08:33:28 +00:00
Thomas Adam
d8398af770
Merge branch 'obsd-master'
2017-04-22 08:01:54 +01:00
nicm
30348edc7c
Fix if-shell without a client (so in the config file). Reported by Theo
...
Buehler.
2017-04-22 06:27:15 +00:00
nicm
59ff9b8128
Typo in example.
2017-04-22 06:15:22 +00:00
nicm
2c9bdd9e32
Memory leaks, from David CARLIER.
2017-04-22 06:13:30 +00:00
Thomas Adam
21240c1a8f
Merge branch 'obsd-master'
2017-04-22 00:01:11 +01:00
nicm
c8ecbf38ab
Log error properly when no current state, and some other minor tweaks.
2017-04-21 22:23:24 +00:00
nicm
194a121ef6
Make sure cmd_find_from_* clear the state if they fail.
2017-04-21 22:00:06 +00:00
nicm
8867951144
Rename a variable.
2017-04-21 21:02:26 +00:00
Thomas Adam
fd13731049
Merge branch 'obsd-master'
2017-04-21 22:01:14 +01:00
nicm
c68ceca8cd
Clear shared state if not filling it in.
2017-04-21 20:34:05 +00:00
nicm
efaf4c16cf
Make the cmd_find_* functions more obvious when looking for a client,
...
rather than having it inside other functions. Should be no change to the
way targets are resolved just yet.
2017-04-21 20:26:34 +00:00
nicm
2ad09ab5af
Key needs to be initialized to zero now it has flags in it.
2017-04-21 19:33:07 +00:00
Thomas Adam
1f209ed030
Merge branch 'obsd-master'
2017-04-21 20:01:18 +01:00
nicm
3c876235cc
Style nits and an unused struct.
2017-04-21 18:18:17 +00:00
nicm
afa4e3ed9c
Add cmd_find_from_winlink_pane and use it in a couple of places, and
...
make functions that can't fail void.
2017-04-21 17:22:20 +00:00
Thomas Adam
c376c5a817
Merge branch 'obsd-master'
2017-04-21 18:01:11 +01:00
nicm
92a77e7654
It is annoying that the copy mode key table (or any other key table)
...
will suppress root key table bindings. So change to always check the
root table if no binding is found in the current table (whether it be
the prefix table from pressing the prefix or the copy mode table from a
pane).
A root key binding can be blocked by binding the key to a command that
does nothing (like send-keys with no arguments).
Problem reported by Thomas Sattler.
2017-04-21 16:04:18 +00:00
Thomas Adam
4612419c14
Merge branch 'obsd-master'
2017-04-21 16:01:18 +01:00
nicm
c799425069
More unnecessary arguments now winlink points back to session.
2017-04-21 14:09:44 +00:00
nicm
428be9803c
History needs to be loaded after config parsing is done - now that
...
commands are queued, that's in cfg_done not after start_cfg finishes.
2017-04-21 14:04:54 +00:00
nicm
bba588752f
Store state shared between multiple commands in the queue in a shared
...
structure.
2017-04-21 14:01:19 +00:00
nicm
311dad8c28
Do not run the config file in the context of the first client, instead
...
use no client like we did before. This means commands like new-session
won't try to attach if they are in the config file.
2017-04-21 13:15:43 +00:00
Thomas Adam
93062ad099
Fix after merge
2017-04-21 09:29:22 +01:00
Thomas Adam
22e594fcea
Merge branch 'obsd-master'
...
Conflicts:
Makefile.am
pty.c
2017-04-21 09:25:07 +01:00
Nicholas Marriott
02580ac134
Typo; Daniel Hahler.
2017-04-21 06:49:38 +01:00
Nicholas Marriott
b723f50e65
Do not need getopt.h for getopt, from Eric N Vander Weele.
2017-04-20 20:35:11 +01:00
Nicholas Marriott
4a2e75fc8c
Merge branch 'master' of github.com:tmux/tmux
2017-04-20 19:09:36 +01:00
Nicholas Marriott
9420758127
getptmfd() and fdforkpty() compat.
2017-04-20 19:09:07 +01:00
nicm
87997efe8d
Use fdforkpty() instead of our own unwrapped versions.
2017-04-20 17:49:26 +00:00
Thomas Adam
69e0f28333
Merge branch 'obsd-master'
2017-04-20 18:01:12 +01:00
nicm
51a0dbb172
Only set up a current target for mouse key bindings. Fixes:
...
bind q select-pane -U \; resize-pane -Z
(There is still some possible weirdness with the way we do current
targets, it should probably be done in a different way at some point.)
2017-04-20 15:16:20 +00:00
Nicholas Marriott
7934e7a6b5
Notes on target resolution.
2017-04-20 15:40:28 +01:00
Nicholas Marriott
aebbb15fe2
Turn on debug if $VERSION is master rather than commenting and uncommenting.
2017-04-20 12:06:39 +01:00
Thomas Adam
48371216df
Merge branch 'obsd-master'
2017-04-20 12:01:14 +01:00
Nicholas Marriott
e30f9dc1fa
Merge tag '2.4'
...
Version 2.4.
2017-04-20 11:59:07 +01:00
Nicholas Marriott
f21cb71fbe
Enter date of release.
2017-04-20 11:52:16 +01:00
Nicholas Marriott
990218739a
Missing :.
2017-04-20 11:03:23 +01:00
Nicholas Marriott
e7c2f53f2a
Changes to CHANGES.
2017-04-20 11:00:15 +01:00
nicm
21993105e5
Now that struct winlink has a session pointer, can remove some arguments.
2017-04-20 09:43:45 +00:00
Thomas Adam
9b2f02efbd
Update CHANGES file
2017-04-20 10:39:16 +01:00
nicm
0f25ad3ca3
There is no real need for window_printable_flags to allocate, make it
...
return a buffer from the stack.
2017-04-20 09:39:07 +00:00
Nicholas Marriott
f9c7c50a93
Update TODO.
2017-04-20 10:20:42 +01:00
nicm
0b44ad99b5
If a #() command doesn't exit, use its most recent line of output (it
...
must be a full line). Don't let it redraw the status line more than once
a second.
Requested by someone about 10 years ago...
2017-04-20 09:20:22 +00:00
Nicholas Marriott
78d707dc83
Add to TODO.
2017-04-20 08:53:03 +01:00
nicm
b087483538
load_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi.
2017-04-19 22:19:22 +01:00
Thomas Adam
3385159c94
Merge branch 'obsd-master'
2017-04-19 20:01:11 +01:00
nicm
f184c6f06c
load_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi.
2017-04-19 16:59:54 +00:00
Thomas Adam
5a551ac57f
Merge branch 'obsd-master'
2017-04-19 16:01:14 +01:00
nicm
53fde21bb8
Add a suspend helper function, and do not allow detaching or suspending
...
while already doing so.
2017-04-19 14:00:28 +00:00
Nicholas Marriott
b946bf43f5
Version 2.4.
2017-04-19 13:51:49 +01:00
Nicholas Marriott
d64a815e8d
Missed freezero.
2017-04-19 13:50:52 +01:00
nicm
689f4bfac2
Style nits and a missing cast.
2017-04-19 12:44:29 +00:00
Thomas Adam
85af9c9c9d
Merge branch 'obsd-master'
2017-04-19 10:01:12 +01:00
Nicholas Marriott
95c38087db
Missed freezero.
2017-04-19 07:58:45 +01:00
nicm
fa6deb5866
When the data we have buffered to write to a terminal grows beyond a
...
reasonable amount (currently width * height * 8 bytes), discard all
output to the terminal and start trying to redraw periodically
instead. Continue with this until the amount of data we are trying to
write falls to a low level again.
This helps to prevent tmux sitting on a huge buffer of data when there
are processes with fast output running inside tmux but the outside
terminal is slow.
A new client_discarded format holds the amount of data that has been
discarded due to this mechanism.
The three variables (when to start this, when to stop, and how often to
redraw) are basically "works for me" at the moment, this is going in to
see how it goes and if it causes problems for anyone else.
2017-04-19 06:52:27 +00:00
Thomas Adam
a71c262d5f
Merge branch 'obsd-master'
2017-04-19 00:01:15 +01:00
nicm
f731ae4a2d
Revert use of DECSLRM on iTerm2, it doesn't help as much as we throught,
...
and there are some question marks about it's support.
2017-04-18 21:41:42 +00:00
nicm
8c8ce08d79
On terminals without DECSLRM, when a pane that is less than the full
...
with of the terminal scrolls, tmux needs to redraw the entire pane. This
results in a large amount of output data which can cause slow terminals
to struggle, particularly when many lines are scrolled together quickly.
This can be reduced by only redrawing when tmux doesn't hold any
buffered data for the terminal. If a redraw is required and data is
buffered, the redraw is deferred until all that data is consumed (it is
checked after every event loop, a timer is used to ensure this happens
at some point). While a redraw is pending, no additional data will be
written to the terminal.
The redraw still happens, now it is just pushed back if it is possible
it would just add more data on top of a terminal that is already
behind. This both gives the terminal a chance to catch up, and allows
tmux to process more scrolling (that would require additional redraws)
in the meantime.
Helps with a problem reported by Greg Hurrell.
2017-04-18 20:37:49 +00:00
Thomas Adam
de4f817bd6
Merge branch 'obsd-master'
2017-04-18 20:01:12 +01:00
nicm
623e35f594
Detect iTerm2 and use DECSLRM for it as well.
2017-04-18 18:21:37 +00:00
Thomas Adam
a54309147d
Merge branch 'obsd-master'
2017-04-18 18:01:17 +01:00
nicm
fb3c5efa50
Add a format for number of bytes writtent to client, useful for debugging.
2017-04-18 15:44:17 +00:00
nicm
aace1ead1e
Do not check for BCE for a background colour that isn't needed, use
...
colour 8 instead.
2017-04-18 15:27:47 +00:00
Thomas Adam
0aa959d7a3
Merge branch 'obsd-master'
2017-04-18 16:01:18 +01:00
nicm
83ff1e9bd3
Include client name in key logging.
2017-04-18 13:34:04 +00:00
Thomas Adam
28833efb48
Merge branch 'obsd-master'
2017-04-17 10:01:13 +01:00
nicm
175d1854d4
Don't bother moving the cursor for empty lines.
2017-04-17 08:10:44 +00:00
nicm
7461c165b5
Remove a couple of redraw flags that no longer have any effect.
2017-04-17 06:40:32 +00:00
Thomas Adam
d912687be7
Merge branch 'obsd-master'
2017-04-16 22:01:19 +01:00
nicm
d566c780e5
Memory leak, from David CARLIER.
2017-04-16 20:33:46 +00:00
nicm
54bcaab70e
Use EL1 to clear lines when redrawing the leftmost pane, rather than
...
spaces.
2017-04-16 20:32:14 +00:00
Nicholas Marriott
9583878a7b
Accept NULL pointer.
2017-04-12 07:41:11 +01:00
Nicholas Marriott
d720a1487b
Update imsg*.c from OpenBSD.
2017-04-11 11:51:25 +01:00
Thomas Adam
5f662d91db
Merge branch 'obsd-master'
...
Conflicts:
server-client.c
tmux.1
2017-04-06 11:10:17 +01:00
nicm
94b71bcb64
Add Home and End for copy mode.
2017-04-05 12:14:18 +00:00
nicm
36882ec789
Try again to resolve problems with mistaking sessions for windows: now
...
do not look up windows as sessions (and panes as windows) when they are
qualified with a ':' or a '.'. So 'foo' as a window target will look for
windows and sessions called 'foo', but ':foo' will only look for
windows, and 'foo:' only for sessions. This means the common case of
using an unadorned session as a window target (send -tfoo) should
continue to work, but an explicit window will not get confused with a
session (send -t:foo).
2017-04-05 11:04:48 +00:00
nicm
9b28200578
Give each client a name. This defaults to the tty name as before but
...
falls back to an alternative if the tty name is not available. This is
clearer than overloading the client ttyname member and allows us to
remove the path stored in the tty struct, it should always be the same
as the client.
2017-04-05 10:49:46 +00:00
nicm
ab4a4b2ad0
cfg_file can be static.
2017-04-05 10:45:39 +00:00
Thomas Adam
05c97d7fe9
Merge branch 'obsd-master'
2017-03-25 14:01:12 +00:00
nicm
b9a4beb6e7
Write raw strings in one go rather than character at a time.
2017-03-24 14:45:00 +00:00
Nicholas Marriott
2d84ee9001
Merge branch 'master' of github.com:tmux/tmux
2017-03-24 10:06:22 +00:00
Nicholas Marriott
2e5664d2df
Update imsg*.[ch] from OpenBSD, add some compat bits it needs and remove some
...
bits it doesn't.
2017-03-24 10:05:53 +00:00
Thomas Adam
1384525dc1
Merge branch 'obsd-master'
2017-03-24 08:01:13 +00:00
nicm
591b26e46f
Show count of search results in copy mode.
2017-03-24 07:14:27 +00:00
Nicholas Marriott
e87d808594
Remove coverage and profile flags.
2017-03-22 21:59:43 +00:00
Nicholas Marriott
1cb8145dc5
Tweak some comments.
2017-03-22 21:29:07 +00:00
Nicholas Marriott
c57039bc3d
Can shorten these by using LIBOBJ.
2017-03-22 19:22:32 +00:00
Nicholas Marriott
9c0520f2c5
Merge branch 'master' of github.com:tmux/tmux
2017-03-22 08:46:12 +00:00
Nicholas Marriott
c3dbbdaadf
Bump automake and autoconf versions.
2017-03-22 08:45:53 +00:00
Thomas Adam
843e605b89
Merge branch 'obsd-master'
2017-03-22 08:01:17 +00:00
Nicholas Marriott
643813c6ed
DEFS -> AM_CPPFLAGS.
2017-03-22 07:54:30 +00:00
Nicholas Marriott
223ed4a989
Should not need -D_POSIX_PTHREAD_SEMANTICS.
2017-03-22 07:49:27 +00:00
Nicholas Marriott
080080fa23
Use AC_USE_SYSTEM_EXTENSIONS and explicitly check for daemon() in headers.
2017-03-22 07:42:45 +00:00
nicm
df3ab87964
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.
2017-03-22 07:16:54 +00:00
Nicholas Marriott
3cc2486106
Merge branch 'master' of github.com:tmux/tmux
2017-03-21 21:38:03 +00:00
Nicholas Marriott
57cb6ef3a2
Add to TODO.
2017-03-21 21:28:37 +00:00
Thomas Adam
02ddd4ce70
Merge branch 'obsd-master'
2017-03-21 20:01:16 +00:00
Nicholas Marriott
b008a07ebb
Do not test for term.h since we don't use the result.
2017-03-21 19:41:25 +00:00
nicm
04e17a7e11
Use uid_t for UID not u_int.
2017-03-21 19:28:03 +00:00
Nicholas Marriott
cd7550cdf1
Some __unused.
2017-03-21 19:27:18 +00:00
Nicholas Marriott
c2b53598ad
Bad merge.
2017-03-21 14:48:44 +00:00
Thomas Adam
57b4d3d593
Merge branch 'obsd-master'
2017-03-21 12:01:14 +00:00
nicm
cdaa758340
Fix movement after select-line, from Omar Sandoval.
2017-03-21 09:51:00 +00:00
nicm
c916feaf29
Fix pane movement by direction (up, down, left, right) when
...
pane-border-status is set, from KOIE Hidetaka.
2017-03-21 09:49:10 +00:00
Thomas Adam
31ae09efa0
Merge branch 'obsd-master'
...
Conflicts:
utf8.c
2017-03-20 13:45:18 +00:00
Nicholas Marriott
066575fd5a
Add to TODO.
2017-03-20 11:50:54 +00:00
Nicholas Marriott
792455ce87
Tweak test for program_invocation_short_name.
2017-03-18 14:37:37 +00:00
Nicholas Marriott
4eec3270ec
Clarify that release instructions will install.
2017-03-18 08:33:15 +00:00
Nicholas Marriott
640666fb36
Fix some warnings.
2017-03-17 14:55:33 +00:00
nicm
67d2335130
Fix a couple of argument types.
2017-03-17 14:51:41 +00:00
nicm
481e48d119
Add h and l for collapse and expand in choose mode with vi(1) keys, from
...
Gregory Pakosz.
2017-03-17 14:41:54 +00:00
Thomas Adam
1ea19245b3
Merge branch 'obsd-master'
2017-03-16 22:01:18 +00:00
nicm
b69efbdd30
Redraw after killp -a.
2017-03-16 20:05:14 +00:00
Thomas Adam
0dd694f5fd
Merge branch 'obsd-master'
2017-03-15 16:01:13 +00:00
nicm
2a9d697771
Invalidate the cursor when we think we should have wrapped.
2017-03-15 15:22:14 +00:00
Thomas Adam
4e809a3130
Merge branch 'obsd-master'
2017-03-15 10:01:11 +00:00
nicm
3c3c08b6d9
Try to avoid moving the cursor to the start of the next line when
...
printing cells if it is already at the very end of the line and the
terminal will wrap it to the next line itself, this means terminals
still see it as a wrapped line for the purposes of their own mouse
selection. Reported by millert@.
2017-03-15 09:21:21 +00:00
Thomas Adam
cc6c6edb6f
Merge branch 'obsd-master'
2017-03-13 18:01:13 +00:00
nicm
8e9b10062b
Log where panes are created.
2017-03-13 17:20:11 +00:00
Thomas Adam
12c6c723a9
Merge branch 'obsd-master'
2017-03-13 12:01:13 +00:00
nicm
fd65210139
Revert previous, breaks normal short targets, reported by Theo Buehler.
2017-03-13 10:53:32 +00:00
Thomas Adam
266e662fae
Merge branch 'obsd-master'
2017-03-11 16:01:12 +00:00
nicm
d455da45eb
Fix calculation of size for full size splits.
2017-03-11 15:16:35 +00:00
nicm
0fe3b739a1
Only look for window and pane parts of target as a sesson and window if
...
they look like an ID.
2017-03-11 15:16:08 +00:00
Thomas Adam
392253f032
Merge branch 'obsd-master'
2017-03-10 00:01:16 +00:00
Nicholas Marriott
385a361bf8
Merge branch 'master' of github.com:tmux/tmux
2017-03-09 22:21:29 +00:00
Nicholas Marriott
a24cf4a5e1
Can only check for one with AC_CHECK_LIB.
2017-03-09 22:21:12 +00:00
nicm
55e73e3612
Clear the bracket paste mode when in the command prompt.
2017-03-09 22:00:46 +00:00
Thomas Adam
c5bdae466e
Merge branch 'obsd-master'
2017-03-09 18:01:16 +00:00
nicm
bce1dee034
Move the client identify (display-panes) code into server-client.c.
2017-03-09 17:06:35 +00:00
nicm
dbfee6a468
Move server_fill_environ into environ.c and move some other common code
...
into it.
2017-03-09 17:02:38 +00:00
Nicholas Marriott
fd96ccfd80
No extra : for errx and warnx.
2017-03-09 16:49:37 +00:00
Nicholas Marriott
b79df1dc29
Compat code for strndup and strnlen.
2017-03-09 15:43:08 +00:00
Nicholas Marriott
180ebf0208
Merge branch 'master' of github.com:tmux/tmux
2017-03-09 15:39:36 +00:00
Nicholas Marriott
514a723f74
Solaris fixes, mostly from Dagobert Michelsen.
2017-03-09 15:39:13 +00:00
Thomas Adam
92434b0afd
Merge branch 'obsd-master'
2017-03-08 22:01:19 +00:00
nicm
e8f2609ca4
Skip over padding cells when moving the cursor left or right.
2017-03-08 20:05:25 +00:00
Thomas Adam
41a01fc629
Merge branch 'obsd-master'
2017-03-08 16:01:15 +00:00
nicm
41b31fe240
Handle empty options correctly.
2017-03-08 14:43:40 +00:00
nicm
78ca1b0265
Always send smkx to the terminal outside, the keys we get from terminfo
...
are the keys when it is on.
2017-03-08 14:34:35 +00:00
Thomas Adam
3ea36830f3
Merge branch 'obsd-master'
2017-03-08 14:01:23 +00:00
nicm
6b2009ad72
Add a helper function for the most common format_create/defaults/expand
...
pattern.
2017-03-08 13:36:12 +00:00
Thomas Adam
5d3296c53b
Merge branch 'obsd-master'
2017-03-07 15:32:28 +00:00
nicm
1e6e606f54
Need to flush before writing out cells we are not collecting, also add
...
some extra logging.
2017-03-07 13:48:28 +00:00
nicm
daac28febb
If moving cells outside the current used count, update it.
2017-03-07 13:47:56 +00:00
Thomas Adam
69257bc0aa
Merge branch 'obsd-master'
2017-03-06 10:01:21 +00:00
Nicholas Marriott
8684e60f51
Merge branch 'master' of github.com:tmux/tmux
2017-03-06 09:26:16 +00:00
Nicholas Marriott
fa27cbd035
Expand on OS X faffing, based on a diff from Kurtis Rader.
2017-03-06 09:24:41 +00:00
nicm
dc8fefe902
Collect strings correctly when on terminals that don't support UTF-8.
2017-03-06 09:02:59 +00:00
nicm
fba9ebcc0c
When redrawing a combined UTF-8 characters in its existing position,
...
need to save and restore the cursor so that the next character goes into
the right place.
2017-03-06 09:02:36 +00:00
Thomas Adam
48a3dba6b9
Merge branch 'obsd-master'
2017-02-27 14:01:20 +00:00
Nicholas Marriott
2fa16eee53
Change to vim(1) script by Eric Pruitt.
2017-02-27 13:21:04 +00:00
nicm
e741a0bcd7
If splitw -b is used, insert the new pane before the current one in the
...
pane list. This means the numbering is in order (for example for
display-panes) and fixes a problem with redrawing the active pane
borders.
2017-02-27 13:07:57 +00:00
Thomas Adam
14dc2acc25
Merge branch 'obsd-master'
2017-02-22 10:01:12 +00:00
nicm
0414b1fc78
Minor bits: fix an array size, add comment, make grid_cell_entry static.
2017-02-22 09:01:32 +00:00
Thomas Adam
4b112c19f1
Merge branch 'obsd-master'
2017-02-21 18:01:12 +00:00
nicm
8a0b279c31
Change pane redraw to collect cells up as well, and simplify it a bit.
2017-02-21 16:25:04 +00:00
Thomas Adam
6b45464120
Merge branch 'obsd-master'
2017-02-21 16:01:15 +00:00
nicm
27ee34e7fa
Don't need is1,is2,is3 so remove them.
2017-02-21 14:18:12 +00:00
Thomas Adam
e9819eef3c
Merge branch 'obsd-master'
2017-02-21 12:01:16 +00:00
nicm
9e4c5133c8
Scrolling at least needs to be flushed before sending EL to the terminal
...
(but it is simpler to flush everything, so do that instead).
2017-02-21 10:30:15 +00:00
Thomas Adam
11e7915195
Reflect OBSD Makefile changes in Makefile.am
2017-02-21 09:24:53 +00:00
Thomas Adam
0ad2beae7e
Merge branch 'obsd-master'
...
Conflicts:
Makefile
2017-02-21 09:23:50 +00:00
Nicholas Marriott
55e76edd3c
Improve NetBSD KERN_PROC2 bit, mostly from Kamil Rytarowski.
2017-02-19 08:31:05 +00:00
nicm
f27e1d07fc
Add SGR 28 to clear hidden flag.
2017-02-19 07:55:11 +00:00
Nicholas Marriott
203d604bf7
Add to TODO.
2017-02-17 10:52:40 +00:00
Nicholas Marriott
ee7acde149
Update TODO.
2017-02-16 15:06:20 +00:00
nicm
82db1fa9e5
There are buggy terminals out there that do not move the cursor to 0,0
...
after CSR, so invalidate the cursor position rather than assuming 0,0.
2017-02-16 12:56:01 +00:00
nicm
c948c6b697
Handle insert cells when cursor at edge of screen correctly, and do a
...
full flush before insert.
2017-02-16 12:43:08 +00:00
nicm
c889e11375
Merge clear-history into capture-pane.
2017-02-16 12:18:38 +00:00
Thomas Adam
f734d81074
Merge branch 'obsd-master'
2017-02-16 12:01:21 +00:00
nicm
8b8d0963da
Style nits.
2017-02-16 10:53:25 +00:00
Thomas Adam
c9f2dc5ee5
Merge branch 'obsd-master'
2017-02-15 12:01:15 +00:00
nicm
dd25a6cdc2
Do not clear to end of screen unless the pane is at the bottom.
2017-02-15 11:22:13 +00:00
Nicholas Marriott
47bc867ab9
Merge branch 'master' of github.com:tmux/tmux
2017-02-15 10:34:38 +00:00
Nicholas Marriott
b9b7daf3b2
Copy 24-bit-color.sh from iTerm2.
2017-02-15 10:34:20 +00:00
Thomas Adam
631a89954f
Merge branch 'obsd-master'
2017-02-15 10:01:17 +00:00
Nicholas Marriott
36734afdd8
Hide or fix some warnings.
2017-02-15 08:54:21 +00:00
nicm
640d9e54b7
"status bar" -> "status line" for consistency, from Benjamin Dopplinger.
2017-02-15 08:47:55 +00:00
Nicholas Marriott
2b4c144f96
Remove vis.h.
2017-02-15 08:37:11 +00:00
Thomas Adam
ba3c1534e0
Merge branch 'obsd-master'
2017-02-14 20:01:12 +00:00
nicm
e340df2034
Make source-file look for files relative to the client working directory
...
(like load-buffer and save-buffer), from Chris Pickel. Also break the
where-is-this-file code out into its own function for loadb and saveb.
2017-02-14 18:13:05 +00:00
Thomas Adam
02e04477de
Merge branch 'obsd-master'
...
Conflicts:
server.c
2017-02-14 13:55:16 +00:00
nicm
4c2a78029d
Collected cells may still need to be extended for RGB colours.
2017-02-13 16:05:30 +00:00
nicm
921880e00b
Add not delete the event if more to write.
2017-02-10 15:39:43 +00:00
nicm
d22c15107b
Don't use a bufferevent for the tty, so we can keep better track of what
...
is being written and when.
Also a manpage typo fix from jmc@.
2017-02-10 12:59:18 +00:00
nicm
c6a3446398
Instead of numbering session groups, give them a name which may be given
...
to -t instead of a target session. Also allow them to contain only one
session.
2017-02-09 15:04:53 +00:00
nicm
8de4c15dfa
Document refresh-client -C.
2017-02-09 14:49:00 +00:00
Nicholas Marriott
c75cced07d
Add to TODO.
2017-02-09 14:40:30 +00:00
Thomas Adam
96ad1d7779
Merge branch 'obsd-master'
2017-02-09 14:01:18 +00:00
nicm
b1fa3e25e4
Break the message storage function into its own function, useful for
...
debugging.
2017-02-09 12:09:33 +00:00
Thomas Adam
cb50a51127
Merge branch 'obsd-master'
2017-02-09 12:01:12 +00:00
nicm
b7ddfb39f3
Don't lie about the default size in the man page.
2017-02-09 12:00:42 +00:00
nicm
ddb3750c8b
Combining characters need a full flush.
2017-02-09 10:09:14 +00:00
Thomas Adam
79409dc1cc
Merge branch 'obsd-master'
2017-02-09 10:01:18 +00:00
nicm
fd6e46596d
When an ordinary (not collected) cell is received, we need to flush any
...
delayed scrolling before drawing it.
2017-02-09 09:33:15 +00:00
Thomas Adam
743f772bef
Merge branch 'obsd-master'
2017-02-09 02:01:17 +00:00
Thomas Adam
be033b1ed0
Merge branch 'obsd-master'
2017-02-09 00:01:12 +00:00
nicm
1811dc5271
Another helper function to write to terminal and log.
2017-02-08 23:53:03 +00:00
nicm
2f854969ff
Do not adjust region lower by pane offset when scrolling up, it is
...
already an absolute position.
2017-02-08 22:42:07 +00:00
Thomas Adam
130b77edc7
Merge branch 'obsd-master'
2017-02-08 18:01:17 +00:00
nicm
05802a6fe3
window_copy_pagedown shouldn't reset the mode anymore, instead let the
...
caller do it so it can free the marks. Problem reported by attila at
stalphonsos dot com.
2017-02-08 17:33:51 +00:00
nicm
e100d465da
Add support for scroll up escape sequence (CSI S) and use it when
...
possible instead of sending individual line feeds.
2017-02-08 17:31:09 +00:00
nicm
13a0b6bb3f
Collect sequences of printable ASCII characters and process them
...
together instead of handling them one by one. This is significantly
faster. Sequences are terminated when we reach the end of the line, fill
the internal buffer, or a different character is seen by the input
parser (an escape sequence, or UTF-8).
Rather than writing collected sequences out immediately, hold them until
it is necessary (another screen modification, or we consume all
available data). This means we can discard changes that would have no
effect (for example, lines that would just be scrolled off the screen or
cleared). This reduces the total amount of data we write out to the
terminal - not important for fast terminals, but a big help with slow
(like xterm).
2017-02-08 16:45:18 +00:00
nicm
d4b006b9fa
Fix clear start of line.
2017-02-08 16:18:20 +00:00
Thomas Adam
e09625e38b
Merge branch 'obsd-master'
2017-02-08 16:01:17 +00:00
nicm
7475165cd8
Some other tidying bits.
2017-02-08 15:49:29 +00:00
nicm
ac1f294bb9
Add a helper to store a cell, and some tidying.
2017-02-08 15:41:41 +00:00
nicm
96b66f8fc3
Remove unnecessary duplicate check.
2017-02-08 15:24:48 +00:00
nicm
713f3b05f3
Improve some of the logging on resize.
2017-02-08 13:53:32 +00:00
Nicholas Marriott
9af5f3ff81
Give an example, from Timothee Cour.
2017-02-08 11:52:42 +00:00
Thomas Adam
a9a0039be4
Merge branch 'obsd-master'
2017-02-08 10:01:22 +00:00
nicm
cb80901d33
Log size of output buffer as well.
2017-02-08 08:54:45 +00:00
nicm
9cc02d1498
Trying to avoid the occasional newline by saving the last cell on screen
...
is not actually helping us much and just adds complexity, so don't
bother.
2017-02-08 08:50:10 +00:00
nicm
acb4bd9e56
Tweak how much we expand lines by.
2017-02-08 08:26:35 +00:00
nicm
35a0606de1
Remove event watermarks, don't work well enough to be worth it.
2017-02-08 08:25:12 +00:00
Thomas Adam
5aaf640629
Merge branch 'obsd-master'
2017-02-07 20:01:14 +00:00
nicm
c0a34821c1
Do not clear the scroll region, instead set it to the scroll region we
...
actually want.
2017-02-07 18:27:46 +00:00
nicm
20f5e377fb
Remove a debugging leftover.
2017-02-07 18:06:42 +00:00
Thomas Adam
178289fb4c
Merge branch 'obsd-master'
2017-02-07 18:01:13 +00:00
nicm
6ea36afc4b
DECSLRM in xterm(1) appears to have a quirk where it can generate an
...
extra scroll of the entire terminal; issuing DECSTBM first prevents
this. Do that for now.
2017-02-07 17:13:28 +00:00
Thomas Adam
97fd291079
Merge branch 'obsd-master'
2017-02-07 16:01:13 +00:00
nicm
9491a5c1cf
Unfortunately DECFRA does not handle default colours properly (it does
...
not reset colours when in SGR 0), so we can't use it without more
trouble than it is worth. Abandon the idea for now.
2017-02-07 14:33:37 +00:00
Nicholas Marriott
8872a0da8e
Merge branch 'master' of github.com:tmux/tmux
2017-02-07 13:41:17 +00:00
Nicholas Marriott
0f5a2c86da
Look for libtinfo before libncurses.
2017-02-07 13:40:36 +00:00
Thomas Adam
9f66fb4fd7
Merge branch 'obsd-master'
2017-02-07 00:01:13 +00:00
nicm
d60e585d9e
Use DECFRA on VT420 compatible terminals (so, xterm) and ED on all
...
others for clearing panes.
2017-02-06 22:05:11 +00:00
Thomas Adam
dfdc23d86c
Merge branch 'obsd-master'
2017-02-06 22:01:16 +00:00
Thomas Adam
7417e391d5
Merge branch 'obsd-master'
2017-02-06 20:01:15 +00:00
nicm
68e04907de
Do not go through the whole attributes setting process if the new cell
...
is the same as the previous one.
2017-02-06 19:45:23 +00:00
nicm
10e14ae504
Add BCE for clear to start of screen, which was somehow missed.
2017-02-06 19:26:49 +00:00
Thomas Adam
1199f8fc59
Merge branch 'obsd-master'
2017-02-06 16:01:20 +00:00
nicm
e67548dc36
Cancel key table when switching session, unless the key is going to
...
repeat. Reported by Amos Bird.
2017-02-06 15:00:41 +00:00
Thomas Adam
446177a832
Merge branch 'obsd-master'
2017-02-06 14:01:16 +00:00
Nicholas Marriott
4eabd7ec90
Do not declare program_invocation_short_name because people can't make up their
...
mind what type it should be.
2017-02-06 13:34:19 +00:00
nicm
d150d9b384
Fix logging of CSI parameters.
2017-02-06 13:25:15 +00:00
nicm
3fd34e70e5
Only redraw the modified character when adding combining characters, not
...
the whole line.
2017-02-06 13:23:00 +00:00
Nicholas Marriott
50f25a8f05
Merge branch 'master' of github.com:tmux/tmux
2017-02-06 10:06:14 +00:00
Nicholas Marriott
c7c1018e9b
Update sys/queue.h from OpenBSD.
2017-02-06 10:05:56 +00:00
Thomas Adam
7bccc82284
Merge branch 'obsd-master'
2017-02-05 02:01:12 +00:00
nicm
d091253a5d
Missing va_end, from Anton Lindqvist.
2017-02-04 23:42:53 +00:00
Thomas Adam
e1c283325e
Merge branch 'obsd-master'
2017-02-03 22:01:18 +00:00
nicm
5e6a8177e5
Cache status line position to reduce option lookups during output.
2017-02-03 21:01:02 +00:00
nicm
75adf8368a
Expand lines more aggressively to reduce rate of allocations.
2017-02-03 20:53:03 +00:00
Thomas Adam
6c333cc486
Merge branch 'obsd-master'
2017-02-03 14:01:13 +00:00
nicm
7d23d019c0
Add a window or pane id "tag" to each format tree and use it to separate
...
jobs, this means that if the same job is used for different windows or
panes (for example in pane-border-format), it will be run separately for
each pane.
2017-02-03 11:57:27 +00:00
Thomas Adam
9b1f620aa0
Merge branch 'obsd-master'
2017-02-01 12:01:18 +00:00
nicm
dd0c814779
Implement "all event" (1003) mouse mode but in a way that works. The
...
main issue is that if we have two panes, A with 1002 and B with 1003, we
need to set 1003 outside tmux in order to get all the mouse events, but
then we need to suppress the ones that pane A doesn't want. This is easy
in SGR mouse mode, because buttons == 3 is only used for movement events
(for other events the trailing m/M marks a release instead), but in
normal mouse mode we can't tell so easily. So for that, look at the
previous event instead - if it is drag+release as well, then the current
event is a movement event.
2017-02-01 09:55:07 +00:00
Nicholas Marriott
9b9a5a292d
Merge branch 'master' of github.com:tmux/tmux
2017-01-31 12:52:50 +00:00
Nicholas Marriott
c54a5d9fb3
Add wchar.h to compat.h, from Koichi Shiraishi.
2017-01-31 12:51:53 +00:00
Thomas Adam
d8da761d54
Merge branch 'obsd-master'
2017-01-31 00:01:12 +00:00
nicm
3408595f77
When a flag option is used in a format, it should use the number form
...
not string.
2017-01-30 21:41:17 +00:00
Thomas Adam
9094f01c6b
Merge branch 'obsd-master'
2017-01-30 00:01:13 +00:00
nicm
b6099f31ea
Add -n to break-pane.
2017-01-29 22:10:55 +00:00
Thomas Adam
4b482c95c3
Merge branch 'obsd-master'
2017-01-28 18:01:12 +00:00
nicm
54309cc25d
Do not clear the key table when changing session on a client, so that
...
switch-client and friends work with bind -n.
2017-01-28 16:11:27 +00:00
Nicholas Marriott
503af3df54
This link is better.
2017-01-26 19:57:16 +00:00
Nicholas Marriott
b2e909b252
Merge branch 'master' of github.com:tmux/tmux
2017-01-26 19:55:45 +00:00
Nicholas Marriott
a4367b44fb
Add ISSUE_TEMPLATE.
2017-01-26 19:55:16 +00:00
Thomas Adam
78c0b96004
Merge branch 'obsd-master'
2017-01-26 02:01:12 +00:00
nicm
776ce8a9d5
Clear option before adding to array if no -a, reported by Michael
...
Nickerson.
2017-01-25 23:50:51 +00:00
Nicholas Marriott
ea70e68a51
-paths.h.
2017-01-25 16:39:02 +00:00
Nicholas Marriott
0f9354eec2
Bad merge.
2017-01-25 16:38:13 +00:00
Thomas Adam
21d8f77a0d
Merge branch 'obsd-master'
2017-01-25 16:01:13 +00:00
nicm
163732e89f
Revert previous for now, it will break TERM=screen.
2017-01-25 14:36:08 +00:00
nicm
0a63ab4f0f
If xterm-keys is on, use xterm(1) style keys for Home and End as well as
...
modified keys.
2017-01-25 14:24:54 +00:00
Nicholas Marriott
3e495b4001
compat/* should not include tmux.h.
2017-01-25 13:49:01 +00:00
Thomas Adam
418ab1a553
Merge branch 'obsd-master'
2017-01-24 22:01:13 +00:00
nicm
ffc28a7765
Fix set -u on array options.
2017-01-24 20:24:54 +00:00
nicm
4b2821ff98
Make update-environment an array as well.
2017-01-24 20:15:32 +00:00
nicm
b77dd75b57
Convert terminal-overrides to an array option.
2017-01-24 20:05:15 +00:00
nicm
16e43d6a42
Remove some lies about terminal-overrides from tmux.1.
2017-01-24 20:01:34 +00:00
Thomas Adam
f38a6bbd81
Merge branch 'obsd-master'
2017-01-24 20:01:12 +00:00
nicm
126d364abe
server-info can become an alias rather than a command.
2017-01-24 19:59:19 +00:00
nicm
85338bb75f
Add support for custom command aliases, this is an array option which
...
contains items of the form "alias=command". This is consulted when an
unknown command is parsed.
2017-01-24 19:53:37 +00:00
nicm
61fce272ea
If given an array option without an index either show or set all items,
...
and support -a for array options. Allow the separator for set to be
specified in the options table (will be used for backwards compatibility
later).
2017-01-24 19:11:46 +00:00
Thomas Adam
f1282a683d
Merge branch 'obsd-master'
2017-01-24 14:01:15 +00:00
Nicholas Marriott
c68ea386d1
pty.c needs compat.h.
2017-01-24 13:34:08 +00:00
nicm
3d74e89a39
Shorten a long line, and don't leak buffer in paste_add if size is zero.
2017-01-24 13:28:33 +00:00
Nicholas Marriott
a3d5bfcece
Define away pledge() on !OpenBSD.
2017-01-23 12:27:58 +00:00
Nicholas Marriott
1ebe79dd62
Use forkpty() except on OpenBSD.
2017-01-23 12:26:06 +00:00
Thomas Adam
b3a724f30c
Merge branch 'obsd-master'
...
Conflicts:
Makefile
tmux.c
2017-01-23 12:20:43 +00:00
nicm
98e7fbb2ac
Open /dev/ptm before pledge() and save it to be used for PTMGET later
...
(this means inlining forkpty()).
ok deraadt
2017-01-23 10:09:43 +00:00
Thomas Adam
d2eab39ffa
Merge branch 'obsd-master'
2017-01-22 20:01:12 +00:00
Nicholas Marriott
aa70f28069
Merge branch 'master' of github.com:tmux/tmux
2017-01-22 19:14:10 +00:00
Nicholas Marriott
acf331f7f1
Add b64_pton as well.
2017-01-22 19:12:15 +00:00
nicm
4ede35c48c
Accept the OSC 52 escape sequence inside tmux to add a new buffer, from
...
harry dot gindi at live dot com.
2017-01-22 19:00:01 +00:00
Thomas Adam
c17b0a202a
Merge branch 'obsd-master'
2017-01-20 16:01:11 +00:00
nicm
46572ba904
Print error rather than fatal() if tcgetattr() fails, which is much more
...
useful to user.
2017-01-20 14:02:33 +00:00
Nicholas Marriott
61af9d7cc2
Look for ncursesw as well as ncurses, based on a change from Bert van Hall.
2017-01-19 15:31:22 +00:00
Nicholas Marriott
b98b4e23a3
Put version in log in portable tmux.
2017-01-18 17:35:41 +00:00
Nicholas Marriott
7e4908f751
If --enable-{utf8proc,utempter} is given, do not build without it.
2017-01-18 14:32:50 +00:00
Nicholas Marriott
787f9de5d8
vis.h comes from compat.h.
2017-01-18 12:16:14 +00:00
Thomas Adam
044999ce6d
Merge branch 'obsd-master'
2017-01-18 12:01:11 +00:00
nicm
faa0570309
Plain stravis() because it will mangle UTF-8 characters, so add
...
utf8_stravis() which calls our existing utf8_strvis() and use it instead
2017-01-18 10:08:05 +00:00
Thomas Adam
6d37984f4f
Merge branch 'obsd-master'
2017-01-18 10:01:12 +00:00
nicm
4bb5a1d6a7
Run arguments through vis() as well when printing them.
2017-01-18 10:00:50 +00:00
nicm
649c0d8e91
Do not reset idx, it has just been set.
2017-01-18 08:43:21 +00:00
nicm
373541104b
options_match needs to explicitly check for user options.
2017-01-18 08:40:50 +00:00
Thomas Adam
64c486ae81
Merge branch 'obsd-master'
2017-01-17 02:01:11 +00:00
nicm
6b6b0e91d0
Correctly handle -style options without all of a corresponding -fg/-bg/-attr.
2017-01-16 23:45:08 +00:00
Nicholas Marriott
c0346701df
Fix VIS_DQ check.
2017-01-16 18:20:50 +00:00
Thomas Adam
7e110b9d99
Merge branch 'obsd-master'
2017-01-16 15:36:02 +00:00
Nicholas Marriott
f20e3ee62c
We need VIS_DQ in vis.h as well.
2017-01-16 15:01:14 +00:00
nicm
ef15b4195f
Revert WIP parts of previous I didn't mean to commit yet.
2017-01-16 14:52:25 +00:00
nicm
68db958477
getopt() has a struct option so just return to using options_entry.
2017-01-16 14:49:14 +00:00
Nicholas Marriott
997b11741c
Remove vis.h which comes from compat.
2017-01-16 12:09:04 +00:00
Thomas Adam
7b60645732
Merge branch 'obsd-master'
2017-01-16 00:01:10 +00:00
Thomas Adam
c9fcb76651
Merge branch 'obsd-master'
2017-01-15 22:01:11 +00:00
nicm
52847a9518
It is silly for cmd_list_parse to return an integer error when it could
...
just return NULL.
2017-01-15 22:00:56 +00:00
nicm
3054846143
-q flag now needs to be checked in a couple more places.
2017-01-15 20:50:34 +00:00
nicm
2b0bc9f1c5
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.
2017-01-15 20:48:41 +00:00
nicm
404214b0ac
Remove unused quiet option.
2017-01-15 20:16:22 +00:00
nicm
a3cf995017
Append needs to go old,new not new,old...
2017-01-15 20:14:36 +00:00
Thomas Adam
4f077fe62c
Merge branch 'obsd-master'
2017-01-14 20:01:13 +00:00
nicm
e06efab9da
killp -a should not kill the window if only one pane.
2017-01-14 18:53:08 +00:00
Thomas Adam
780dd7ac82
Merge branch 'obsd-master'
2017-01-13 14:01:13 +00:00
Thomas Adam
2311bbd28a
Merge branch 'obsd-master'
2017-01-13 12:01:12 +00:00
nicm
08d21936e4
options_get_style return const too.
2017-01-13 11:58:49 +00:00
nicm
22a528905d
Make options_get_string return const string.
2017-01-13 11:56:43 +00:00
nicm
95950bf668
Add -E to detach-client to exec a command to replace the client instead
...
of exiting it, useful if tmux wasn't exec'd itself. From Jenna Magius.
2017-01-13 10:12:12 +00:00
Thomas Adam
d4cb178249
Merge branch 'obsd-master'
2017-01-12 16:01:13 +00:00
nicm
24cba5907b
Simplify appending to string options.
2017-01-12 15:36:35 +00:00
Thomas Adam
1eb9500644
Merge branch 'obsd-master'
2017-01-12 12:01:10 +00:00
nicm
dad3090d32
Put all palette functions together in the file.
2017-01-12 10:15:55 +00:00
Thomas Adam
4a76861925
Merge branch 'obsd-master'
2017-01-12 02:01:11 +00:00
nicm
9b6aeacdc0
aixterm colours can be used if -2 is given, as well as if TERM tells us
...
the terminal has >=16 colours.
2017-01-12 00:30:41 +00:00
nicm
0752fdaf6a
Erm the aixterm colours should start at 8, not 7.
2017-01-12 00:24:28 +00:00
nicm
9e786030df
Fix setting the palette of aixterm colours (90-97).
2017-01-12 00:19:32 +00:00
Thomas Adam
33ebb9ec39
Merge branch 'obsd-master'
2017-01-12 00:01:13 +00:00
nicm
74c40d04ea
Be less aggressive about turning margins off.
2017-01-11 23:10:04 +00:00
nicm
3bb14001b9
Add some missing special keys to key_string_lookup_key, fix a mouse
...
check in server_client_handle_key, and tweak a comment.
2017-01-11 22:36:07 +00:00
Thomas Adam
d87ab0cadf
Merge branch 'obsd-master'
2017-01-11 18:01:13 +00:00
nicm
bf6a5c056d
Add a format for terminal type.
2017-01-11 16:09:57 +00:00
nicm
7497ecd979
Use a macro for looking up tty types.
2017-01-11 16:05:46 +00:00
Thomas Adam
0d19d78fff
Merge branch 'obsd-master'
2017-01-11 16:01:16 +00:00
nicm
458b6eb600
Some tidying and tweaks to options code.
2017-01-11 14:56:44 +00:00
Thomas Adam
8f79b079cd
Merge branch 'obsd-master'
2017-01-10 22:01:14 +00:00
Thomas Adam
db8dff6814
Merge branch 'obsd-master'
2017-01-10 20:01:12 +00:00
nicm
5526627558
Minor tidying in a couple of commands.
2017-01-10 19:45:55 +00:00
Nicholas Marriott
ba35e8f292
15 minutes is not 1800 seconds, but just remove lock-after-time because it won't work for Linux folks without additional configuration
2017-01-10 19:33:22 +00:00
Nicholas Marriott
2283f19876
-temacs-copy should now be -Tcopy-mode
2017-01-10 19:31:34 +00:00
Nicholas Marriott
152bfa02f0
Merge branch 'master' of github.com:tmux/tmux
2017-01-10 19:27:23 +00:00
Nicholas Marriott
a5c89a1802
Change around the example .tmux.conf to show some newer features.
2017-01-10 19:26:54 +00:00
nicm
aa4de2d4b2
Need to escape ; twice because the command list parser will eat one,
...
reported by Theo Buehler.
2017-01-10 18:10:24 +00:00
Thomas Adam
570943beb7
Merge branch 'obsd-master'
2017-01-10 14:01:12 +00:00
Thomas Adam
1e12e1d843
Merge branch 'obsd-master'
2017-01-10 12:01:10 +00:00
nicm
5ea7a00eba
Quote backslash as well for %%%.
2017-01-10 11:58:30 +00:00
nicm
e78142232f
Some manpage fixes: rephrase a convoluted sentence, make the names of
...
some keys more standard, and use Ql instead of Dq.
2017-01-10 10:08:59 +00:00
Thomas Adam
628f3ad9f4
Merge branch 'obsd-master'
2017-01-10 10:01:11 +00:00
jmc
40fddfbdd6
avoid unneccessary markup; tweaked and ok nicm
2017-01-10 07:55:48 +00:00
Thomas Adam
2c862b04af
Merge branch 'obsd-master'
2017-01-09 22:01:12 +00:00
Nicholas Marriott
36619607ba
Add a format for the version.
2017-01-09 21:44:19 +00:00
nicm
d2d984647e
Add %if/%endif for conditionals when parsing configuration files, the
...
argument is a format (the new == and != are useful).
2017-01-09 21:28:56 +00:00
nicm
844f2eacf4
Add simple comparisons in formats: #{==:a,b} and #{!=:a,b} ("a" and "b"
...
are expanded so can compare formats). And expand the condition to
#{?a,b,c} (the "a" part) if it doesn't work as a simple lookup.
Also add FORMAT_NOJOBS flag to disable jobs in a format.
2017-01-09 21:03:25 +00:00
Thomas Adam
95f5d406e5
Merge branch 'obsd-master'
2017-01-09 20:01:12 +00:00
nicm
561b5c6fdb
source-file -q needs to apply to glob(3) too.
2017-01-09 19:29:12 +00:00
nicm
5330a2a85d
Run the source-file pattern through glob(3).
2017-01-09 19:27:00 +00:00
Nicholas Marriott
d90fa2ec13
Tweak TODO file.
2017-01-09 17:48:30 +00:00
Thomas Adam
325c85a5c1
Merge branch 'obsd-master'
2017-01-07 18:01:11 +00:00
Thomas Adam
29e64a8c64
Merge branch 'obsd-master'
2017-01-07 16:01:17 +00:00
nicm
c05002b0f2
Add note about ccc and initc so people who want it can see it is
...
possible.
2017-01-07 15:40:23 +00:00
nicm
314e933914
Add support for the OSC 4 and OSC 104 palette setting escape sequences,
...
from S Gilles.
2017-01-07 15:28:13 +00:00
Thomas Adam
a3428487a7
Merge branch 'obsd-master'
2017-01-06 14:01:15 +00:00
nicm
cae0fbbe8c
Nits found with clang.
2017-01-06 13:26:09 +00:00
nicm
461217d0f0
Incremental search in copy mode (on for emacs keys by default) - much
...
the same as normal searching but updates the cursor position and marked
search terms as you type. C-r and C-s in the prompt repeat the search,
once finished searching (with Enter), N and n work as before.
2017-01-06 11:57:03 +00:00
Thomas Adam
58642011df
Merge branch 'obsd-master'
2017-01-05 10:01:11 +00:00
nicm
9a56671a75
Highlight all occurrences of search string after searching in copy mode.
2017-01-05 09:07:15 +00:00
Thomas Adam
45dbbb78b0
Merge branch 'obsd-master'
2017-01-03 00:01:12 +00:00
nicm
43e8f60bc6
Escape backspace for capture-pane -P, from George Nachman.
2017-01-02 22:42:19 +00:00
Thomas Adam
f5c5847788
Merge branch 'obsd-master'
2016-12-30 16:01:15 +00:00
nicm
1015b124d5
Change the xterm-keys option to default to on, so that tmux will
...
generate xterm(1) escape sequences for function keys with modifiers.
With the option off most of these keys are ignored by default, except
for ctrl + arrows which use a variant that nothing else seems to use and
I don't remember why we chose. The xterm escape sequences are now the
most common.
Prompted by a question from mpi@.
2016-12-30 13:49:34 +00:00
Thomas Adam
d3328a3b1e
Merge branch 'obsd-master'
2016-12-28 12:01:14 +00:00
nicm
70ba3c147f
Fix the prefer unattached session behaviour of
...
attach-session/switch-client, reported by Thomas Sattle.
2016-12-28 10:34:34 +00:00
Nicholas Marriott
af56e50f74
utempter is no longer the default, and mention ncurses.
2016-12-20 16:28:11 +00:00
Thomas Adam
00445ebadd
Merge branch 'obsd-master'
2016-12-14 20:01:11 +00:00
nicm
e36f932f62
Fix up winlink lists after swap-window.
2016-12-14 17:38:59 +00:00
Thomas Adam
dda701d95f
Merge branch 'obsd-master'
2016-12-12 02:01:27 +00:00
nicm
b851c628f4
-N without arguments needs to set prefix count for the mode command, so
...
that M-1 etc work. Reported by Theo Buehler.
2016-12-11 22:55:25 +00:00
Thomas Adam
a64b7cfe5d
Merge branch 'obsd-master'
2016-12-10 00:01:11 +00:00
nicm
bee95bf378
Spacing nits.
2016-12-09 21:39:27 +00:00
Thomas Adam
75135ded09
Merge branch 'obsd-master'
2016-12-09 00:01:12 +00:00
nicm
2a7b4bb017
Fix send-keys with UTF-8.
2016-12-08 22:15:37 +00:00
Thomas Adam
d3ede11212
Merge branch 'obsd-master'
2016-12-08 00:01:10 +00:00
nicm
5819d2a9d7
Do not clear the prompt when a message is shown, just leave it around and
...
return to it when the message is finished.
2016-12-07 23:03:04 +00:00
Thomas Adam
b9fa8f12d7
Merge branch 'obsd-master'
2016-12-07 10:01:12 +00:00
nicm
5ea143f521
Only skip moving the cursor if it is already in the last position _on
...
the same line_, fixes redraw bug reported by patrick keshishian.
2016-12-07 09:16:55 +00:00
nicm
a8f3ad4487
Make prefix work in all tables (except the prefix table). Users who want
...
to avoid this can set prefix to "none" and bind send-prefix
themselves. Allows C-b t be bound in the copy mode tables again, pointed
out by millert@.
2016-12-07 09:16:13 +00:00
Thomas Adam
6749a30a6e
Merge branch 'obsd-master'
2016-11-30 14:01:11 +00:00
nicm
1a6156d8fd
Fix check for cursor at end of line.
2016-11-30 13:20:02 +00:00
Thomas Adam
1fccfd7be5
Merge branch 'obsd-master'
2016-11-29 14:01:11 +00:00
nicm
6b46c62bb4
Make send -N work for all keys, not just in copy mode. From Artem Fokin.
2016-11-29 12:54:46 +00:00
Thomas Adam
d7837cca52
Merge branch 'obsd-master'
2016-11-28 20:01:10 +00:00
nicm
9fc925ac51
When comparing ocy to orlower in tty_cmd_cell, there is no need to add
...
yoff (because they are both already relative to the pane). Also fix some
other minor nits.
2016-11-28 17:50:00 +00:00
Thomas Adam
2864a31311
Merge branch 'obsd-master'
2016-11-24 20:01:10 +00:00
nicm
6f8cedb1bc
The mouse valid flag needs to be correct before we fire the dragging
...
callback, so move the callback outside of server_client_check_mouse and
use a new special key code to indicate it.
2016-11-24 18:45:45 +00:00
Thomas Adam
a02d95a313
Merge branch 'obsd-master'
2016-11-24 16:01:11 +00:00
nicm
84319aa8f0
If in the middle of a drag, don't use an invalid key, just use
...
KEYC_MOUSE as a placeholder. Reported by Artem Fokin.
2016-11-24 14:38:55 +00:00
nicm
0d1be2e328
Fix so that we work out the right pane from mouse events - we were doing
...
so too early, before the mouse event was necessarily valid, so could end
up using the pane from the previous mouse event, or the active pane.
It is important that we use the right pane now that different panes can
have different key tables (for copy mode).
Fixes problem reported by Greg Hurrell.
2016-11-24 13:46:50 +00:00
nicm
7e6c2cb238
Make the selection able to exist independent of the cursor position, so
...
that it is not affected by scrolling. If MouseDragEnd1Pane is bound to
the new "stop-selection" command:
bind -Tcopy-mode MouseDragEnd1Pane stop-selection
A selection made with the mouse will stay as it is after button 1 is
released. (It also works bound to a key.)
From Artem Fokin.
2016-11-24 13:38:44 +00:00
Thomas Adam
8a8001350d
Merge branch 'obsd-master'
2016-11-23 18:01:19 +00:00
nicm
6de466cf8b
For mouse keys, use the mouse pane as the default current pane.
2016-11-23 17:01:24 +00:00
nicm
24916f2f6e
Error on invalid modifier keys.
2016-11-23 16:44:42 +00:00
Thomas Adam
442e49f51c
Merge branch 'obsd-master'
2016-11-17 12:01:10 +00:00
nicm
3cf19d6dd0
Key running commands for #() by the unexpanded command, and run them
...
again if the expanded form changes (otherwise at most once per second as
usual). Fixes issues reported by Gregory Pakosz.
2016-11-17 10:06:08 +00:00
Thomas Adam
759953cb8d
Merge branch 'obsd-master'
2016-11-16 14:01:11 +00:00
nicm
ddf7ac5ae4
Fix calculation of whether we need a region for drawing a cell (only if
...
full width and at the edge of the region), otherwise clear the region entirely.
2016-11-16 13:31:22 +00:00
Thomas Adam
06fd3b00ff
Merge branch 'obsd-master'
2016-11-16 12:01:11 +00:00
nicm
a8e2d851fe
Don't error if renaming a session to its current name, from shik dot
...
chen at gmail dot com.
2016-11-16 11:41:17 +00:00
nicm
81f1d625af
Do not stop dragging when the wheel is pressed, from Artem Fokin.
2016-11-16 11:37:16 +00:00
Thomas Adam
0f5b7814b5
Merge branch 'obsd-master'
2016-11-16 10:01:10 +00:00
nicm
5636d38a9d
Initialize modeprefix to 1 properly in window_pane_create, from Artem Fokin.
2016-11-16 09:22:16 +00:00
Thomas Adam
12c49fa3bd
Merge branch 'obsd-master'
2016-11-16 02:01:11 +00:00
nicm
e88b74350f
The target validity check used window_pane_visible but that may be false
...
if the pane is zoomed, so instead add a new function to just check if
the pane is actually on screen (most commands still want to accept panes
invisible by zoom). Also reject panes outside the window for various
special targets. Problem reported by Sean Haugh.
2016-11-16 00:24:03 +00:00
Thomas Adam
1afe9e98de
Merge branch 'obsd-master'
2016-11-15 16:01:10 +00:00
nicm
c34a79b152
Turn on margins, with a couple of fixes (only limit to the pane for line
...
feeds, and do not move cursor to end for full width panes).
2016-11-15 15:17:28 +00:00
nicm
d81a5c630f
And of course I just find a bug, disable previous for now.
2016-11-15 14:08:27 +00:00
nicm
0ace779cde
Initial attempt to make use of left and right margins if the terminal
...
supports them (that is, if it advertises itself as a VT420 - probably
just xterm). These are the vertical equivalent of the scroll region and
allow much faster scrolling of panes that do not take up the full width
of the terminal.
2016-11-15 14:02:32 +00:00
Thomas Adam
fe7d9af331
Merge branch 'obsd-master'
2016-11-15 12:01:18 +00:00
nicm
9fe43d6acb
Add copy-pipe-and-cancel, from Artem Fokin.
2016-11-15 09:53:23 +00:00
Thomas Adam
9908681ba8
Merge branch 'obsd-master'
2016-11-14 18:01:13 +00:00
nicm
afbf0d42a7
rotate-window needs to unzoom, problem reported by Sean Haugh.
2016-11-14 16:27:12 +00:00
Thomas Adam
7177eeaa42
Merge branch 'obsd-master'
2016-11-12 20:01:10 +00:00
nicm
db2412e2ac
Apply the right fix for run -b, used the wrong diff before.
2016-11-12 19:05:53 +00:00
nicm
b7398a4918
Do not execute commands for a client until it has identified, fixes
...
problem reported by Frank Terbeck.
2016-11-12 19:04:41 +00:00
Thomas Adam
afdef6d122
Merge branch 'obsd-master'
2016-11-11 12:01:11 +00:00
nicm
36f8fa316d
Do not crash with run-shell -b and no window pane available, reported by
...
Sergei Dyshel.
2016-11-11 11:37:25 +00:00
Thomas Adam
13f1a922e1
Merge branch 'obsd-master'
2016-11-04 20:01:11 +00:00
nicm
f947d25c9d
Do not try to set the CHANGED flag on windows with no active pane, fixes
...
problem reported by Nelo-T Wallus.
2016-11-04 18:56:25 +00:00
Thomas Adam
1de107c405
Merge branch 'obsd-master'
2016-11-04 16:01:11 +00:00
nicm
353439acee
enum values need to fit in 32 bits; we only use enum for numbering and
...
Unicode characters fit in 24 bits, so we can leave key_code as 64 bits
and change KEYC_BASE down to 0x10000000.
2016-11-04 14:47:38 +00:00
Nicholas Marriott
a44024a795
Note about TERM.
2016-11-04 13:18:09 +00:00
Thomas Adam
15b6774f9b
Merge branch 'obsd-master'
2016-11-02 14:01:10 +00:00
nicm
382e09bed1
Make an empty state on error rather than leaving something partially
...
created (which now is now a fatal() later).
2016-11-02 13:35:36 +00:00
Thomas Adam
5da94182ae
Merge branch 'obsd-master'
2016-11-01 10:01:10 +00:00
nicm
c83feeb6f8
Clear window alert flags after setting winlink alert flags, fixes problem
...
reported by Tommy Allen.
2016-11-01 09:07:18 +00:00
Nicholas Marriott
178894b0fe
Do not force symbols to width 1, from Yen Chi Hsuan.
2016-10-28 19:58:14 +01:00
Nicholas Marriott
4dbbcff72b
Merge branch 'master' of github.com:tmux/tmux
2016-10-27 18:28:53 +01:00
Nicholas Marriott
4aa5dd0ee0
Add a CONTRIBUTING file with some information on opening issues.
2016-10-27 18:28:21 +01:00
Thomas Adam
b6f00a3945
Merge branch 'obsd-master'
2016-10-26 14:01:13 +01:00
nicm
abea17afd9
Buffer name can be NULL, check before strdup().
2016-10-26 11:48:07 +00:00
Thomas Adam
f523fddf6a
Merge branch 'obsd-master'
2016-10-25 10:01:09 +01:00
nicm
99946aaaaf
Do not handle activity or silence alerts in the current window, reported
...
by jasper@.
2016-10-25 07:24:10 +00:00
Thomas Adam
5f9ba2f223
Merge branch 'obsd-master'
2016-10-21 16:01:11 +01:00
nicm
8084a2c9e6
Add %%% to substitute with quotes escaped (convert " to \"). Use this
...
for the prompts in copy mode. Fixes problems with jumping to ' reported
by Theo Buehler.
2016-10-21 13:51:59 +00:00
Nicholas Marriott
b951f0621c
Put AM_* back, but this time do a dance in configure.ac so that we can keep
...
using CFLAGS for the tests.
2016-10-19 15:20:21 +01:00
Thomas Adam
28a31201d3
Merge branch 'obsd-master'
2016-10-19 12:01:11 +01:00
nicm
99c262b7d0
Do not have a default binding for C-b in copy-mode-vi or it conflicts
...
with the default prefix. Reported by natano@.
2016-10-19 09:24:57 +00:00
nicm
899e629bf0
Alerts are too slow, so rather than walking all sessions and windows,
...
add a link of winlinks to each window and a pointer to the session to
each winlink. Also rewrite the alerts processing to return to the old
behaviour (alert in any window sets the flag on any winlink).
2016-10-19 09:22:07 +00:00
Thomas Adam
4c6eb6cc2f
Merge branch 'obsd-master'
2016-10-19 10:01:10 +01:00
nicm
bc27451e15
Move session-create hook out of session_create so it works with grouped sessions.
2016-10-19 08:17:11 +00:00
Nicholas Marriott
1fbb7f1a41
Merge branch 'master' of github.com:tmux/tmux
2016-10-18 23:23:49 +01:00
Nicholas Marriott
3742f66abb
Revert the AM_* change, I can't find a way to make AC_CHECK_HEADER use
...
LIBEVENT_CFLAGS.
2016-10-18 23:19:08 +01:00
Thomas Adam
3a6beea064
Merge branch 'obsd-master'
2016-10-18 22:01:12 +01:00
nicm
e0e9a54a32
Clear cell entry with grid_default_entry not grid_default_cell.
2016-10-18 19:52:49 +00:00
Nicholas Marriott
ec47907772
I don't remember why we have make clean in dist-hook; remove it.
2016-10-18 20:41:31 +01:00
Nicholas Marriott
bd1dc89a5d
*.h can go in dist_tmux_SOURCES, from Dilyan Palauzov.
2016-10-18 20:34:18 +01:00
nicm
fb109ae97d
xterm-keys was in the wrong place in the list; Dilyan Palauzov.
2016-10-18 19:25:26 +00:00
Nicholas Marriott
66d637be3d
Merge branch 'master' of github.com:tmux/tmux
2016-10-18 20:21:13 +01:00
Nicholas Marriott
ba9f47c544
Rename found_debug to enable_debug.
2016-10-18 20:19:24 +01:00
Thomas Adam
9b991a7301
Merge branch 'obsd-master'
2016-10-18 18:01:11 +01:00
Thomas Adam
0041e40ca8
Merge branch 'obsd-master'
2016-10-18 16:01:11 +01:00
nicm
a0998e42b7
Make grid_clear_cell set up the entry properly for 256 and RGB cells.
2016-10-18 14:56:17 +00:00
nicm
cf7289662f
Tweak a couple of log statements.
2016-10-18 12:51:26 +00:00
Thomas Adam
8576ecaf32
Merge branch 'obsd-master'
2016-10-18 12:01:10 +01:00
Thomas Adam
b3ab39c4d9
Merge branch 'obsd-master'
2016-10-18 10:01:11 +01:00
nicm
2e5c49a1fd
Give each item on queue a name for better logging.
2016-10-18 08:46:43 +00:00
nicm
8763bced76
Zero dirty count after flushing.
2016-10-18 08:39:18 +00:00
nicm
c2f88373e7
Store the right size in the pipe offset for pipe-pane.
2016-10-18 07:38:16 +00:00
Nicholas Marriott
7d5fd5fcd0
Preserve existing AM_CPPFLAGS and AM_LDFLAGS values.
2016-10-17 21:51:21 +01:00
Nicholas Marriott
f6c49cecc1
One extra empty line not in OpenBSD, and tweak a #define style.
2016-10-17 19:25:45 +01:00
Nicholas Marriott
7ba845297f
CFLAGS/CPPFLAGS/LDFLAGS -> AM_*, requested by Dilyan Palauzov.
2016-10-17 19:14:56 +01:00
Nicholas Marriott
733185d0a9
Can use enable_* rather than adding our own found_* variables, from Dilyan Palauzov.
2016-10-17 19:09:38 +01:00
Thomas Adam
d54e990c4f
Merge branch 'obsd-master'
2016-10-17 00:01:11 +01:00
nicm
fe106842c8
Use notifys for alerts too.
2016-10-16 22:18:04 +00:00
nicm
41e633acf5
Use the notify name string instead of going via an enum and change
...
existing hooks to use notifys instead.
2016-10-16 22:06:40 +00:00
Thomas Adam
1a6e696b08
Merge branch 'obsd-master'
2016-10-16 22:01:14 +01:00
Nicholas Marriott
d401340c51
Update TODO.
2016-10-16 20:59:43 +01:00
nicm
d15d54c2c8
Add hook_session and hook_window formats to get information on the
...
affected session or window when a hook fires. Enable session-created and
session-closed hooks now that that is available.
2016-10-16 19:55:52 +00:00
nicm
3f35b5299f
Provide a way for hooks to tag formats onto the commands they fire so
...
that the user can get at additional information - now used for the
"hook" format, more to come.
2016-10-16 19:36:37 +00:00
nicm
026ad08b56
Notifys can go via the command queue instead of using their own queue.
2016-10-16 19:15:02 +00:00
nicm
b342bd0b46
Mass rename struct cmd_q to struct cmdq_item and related.
2016-10-16 19:04:05 +00:00
Thomas Adam
c67b702588
Merge branch 'obsd-master'
2016-10-16 20:01:10 +01:00
nicm
ddc4512d2e
Rewrite command queue handling. Each client still has a command queue,
...
but there is also now a global command queue. Instead of command queues
being dispatched on demand from wherever the command happens to be
added, they are now all dispatched from the top level server
loop. Command queues may now also include callbacks as well as commands,
and items may be inserted after the current command as well as at the end.
This all makes command queues significantly more predictable and easier
to use, and avoids the complex multiple nested command queues used by
source-file, if-shell and friends.
A mass rename of struct cmdq to a better name (cmdq_item probably) is
coming.
2016-10-16 17:55:14 +00:00
Thomas Adam
3d8efdf310
Merge branch 'obsd-master'
2016-10-16 02:01:11 +01:00
nicm
bfe14b5312
Only use pane with run-shell if -t is given.
2016-10-15 23:06:39 +00:00
Thomas Adam
a15939b502
Merge branch 'obsd-master'
2016-10-15 14:01:10 +01:00
jmc
4fbf564292
zap double .Pp;
2016-10-15 12:34:02 +00:00
Thomas Adam
59d1147469
Merge branch 'obsd-master'
2016-10-15 12:01:14 +01:00
nicm
e7990375cb
Give window_create and window_create1 better names.
2016-10-15 09:27:52 +00:00
Thomas Adam
623e54788e
Merge branch 'obsd-master'
2016-10-15 02:01:12 +01:00
nicm
3f138dc40c
Rename a function for consistency and some spacing nits.
2016-10-15 00:12:58 +00:00
nicm
63b2547a02
Fire hooks on the simple notifys (window-renamed and session-renamed),
...
the complicated ones get no hooks for now (more to come).
2016-10-15 00:09:30 +00:00
nicm
9b3ae84993
Drain notifys once at the end of the server loop instead of doing it
...
from the end of every command queue (which could be nested).
2016-10-15 00:01:01 +00:00
Thomas Adam
3d2686a236
Merge branch 'obsd-master'
2016-10-15 00:01:10 +01:00
nicm
ed971268be
Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling.
2016-10-14 22:14:22 +00:00
nicm
d413a945ac
Don't make assumptions about line wrap on !xenl terminals, means that
...
using a wrong TERM without xenl is not so broken if used on a sensible
terminal.
2016-10-14 21:48:00 +00:00
Thomas Adam
9d58febc8f
Merge branch 'obsd-master'
2016-10-14 22:01:11 +01:00
Thomas Adam
33fbf82ac0
Merge branch 'obsd-master'
2016-10-14 20:01:13 +01:00
nicm
1721d1994e
source-file and some other commands can recurse back into cmdq_continue,
...
which could potentially free the currently running command, so we need
to take a reference to it in cmdq_continue_one.
Fixes problem reported by Theo Buehler.
2016-10-14 18:41:53 +00:00
nicm
0ec18e537d
Missing flags in capture-pane, and tweak choose-tree text. From Dilyan Palauzov.
2016-10-14 17:40:47 +00:00
Thomas Adam
117737c6ca
Merge branch 'obsd-master'
2016-10-14 02:01:14 +01:00
Thomas Adam
a7ce19347a
Merge branch 'obsd-master'
2016-10-14 00:01:13 +01:00
nicm
4289a1ebfa
Trying to do hooks generically is way too complicated and unreliable and
...
confusing, particularly trying to automatically figure out what target
hooks should be using. So simplify it:
- drop before hooks entirely, they don't seem to be very useful;
- commands with special requirements now fire their own after hook (for
example, if they change session or window, or if they have -t and -s
and need to choose which one the hook uses as current target);
- commands with no special requirements can have the CMD_AFTERHOOK flag
added and they will use the -t state.
At the moment new-session, new-window, split-window fire their own hook,
and display-message uses the flag. The remaining commands still need to
be looked at.
2016-10-13 22:48:51 +00:00
Nicholas Marriott
5d2288b22a
Update TODO.
2016-10-13 22:40:20 +01:00
nicm
7a1a01feef
Remove the set-remain-on-exit option, it was always a hack and can now
...
be done with hooks instead.
2016-10-13 21:37:03 +00:00
Nicholas Marriott
e6f7180af1
tmux no longer uses openat() so we can remove the compatibilty function.
2016-10-13 22:17:29 +01:00
Thomas Adam
ad5a561adb
Merge branch 'obsd-master'
2016-10-13 22:01:12 +01:00
nicm
4179b42424
Add support for BCE (background colour erase). This makes various escape
...
sequences (notable EL and ED but also IL, DL, ICH, DCH) create blank
cells using the current background colour rather than the default
colour.
On modern systems BCE doesn't really have many benefits, but most other
terminals now support it, some (lazy) applications rely on it, and it is
not hard to include now that we have pane background colours anyway.
Mostly written by Sean Haugh.
2016-10-13 20:27:27 +00:00
Nicholas Marriott
f691d46a16
Update TODO.
2016-10-13 21:14:33 +01:00
nicm
1bd08f903b
Remove mention of key tables than no longer exist.
2016-10-13 20:09:19 +00:00
Thomas Adam
6270392d04
Merge branch 'obsd-master'
2016-10-13 12:01:11 +01:00
nicm
4d9e6ea310
Some improvements and bug fixes for hooks:
...
- Prepare the state again before the "after" hooks are run, because the
command may have killed or moved windows.
- Use the hooks list from the newly prepared target, not the old hooks
list (only matters for new-session really).
- Correctly detect an invalid current state and ignore it in
cmd_find_target ("killw; swapw").
- Change neww, new, killp, killw, splitw, swapp, swapw to update the
current state (used if no explicit target is given) to something more
useful after they have finished. For example, neww changes it to the
newly created window.
Hooks are still relatively new and primitive so there are likely to be
more changes to come.
Parts based on bug reports from Uwe Werler and Iblis Lin.
2016-10-13 10:01:49 +00:00
nicm
05dac2e42c
-f missed from splitw usage, from Felix Rosencrantz.
2016-10-13 09:06:48 +00:00
Thomas Adam
6551f4bb3b
Merge branch 'obsd-master'
...
Conflicts:
paste.c
2016-10-13 08:09:47 +01:00
nicm
e0add119ea
Compare to see if pane status line has actually changed, not just size, and
...
do not draw if pane is not visible.
2016-10-12 17:36:52 +00:00
nicm
e83ebf50de
Fix a couple of problems with insert mode: flush dirty cells before we
...
modify the screen, not after; and use grid_view_insert_cells to make
space not grid_move_cells.
2016-10-12 15:43:51 +00:00
nicm
40253048ca
bind-key -c has gone, remove from man page, and unused table declarations.
2016-10-12 15:26:37 +00:00
nicm
c484c5a2a1
Drop the edit mode key tables and just use fixed key bindings for the
...
command prompt.
2016-10-12 14:50:14 +00:00
nicm
4160df4ca4
Redraw selection in tty_draw_line, so it appears when redrawing whole
...
pane. Reported by Theo Buehler.
2016-10-12 13:24:07 +00:00
nicm
68bebe1fb7
The repeat prompt in both emacs and vi (and the old one in tmux) doesn't
...
support line editing and instead executes a command as soon as a
non-number key is pressed. Add a -N flag to command-prompt for the same
in copy mode. Reported by Theo Buehler.
2016-10-12 13:03:27 +00:00
Nicholas Marriott
76a9e6f27b
NetBSD needs _OPENBSD_SOURCE for reallocarray.
2016-10-12 10:52:04 +01:00
nicm
22a8afee9e
Unused variable and missing time.h.
2016-10-12 09:07:58 +00:00
Thomas Adam
12efb40dc5
Linux: #include <time.h> for time()
2016-10-12 09:53:30 +01:00
Thomas Adam
0f7d39c410
Add missing function protype
2016-10-12 09:49:16 +01:00
Thomas Adam
b9dc855016
Merge branch 'obsd-master'
...
Conflicts:
format.c
osdep-openbsd.c
2016-10-12 09:45:49 +01:00
nicm
5c49e1d0c1
Some other stuff that can be local to one file.
2016-10-11 13:45:47 +00:00
nicm
e45401846f
Add static in window-*.c and move some internal functions out of tmux.h.
2016-10-11 13:21:59 +00:00
nicm
85d7afaefc
Support double and triple clicks (they are cumulative, so double is
...
fired then triple), and use for select-word and select-line in copy
mode. Inspired by a different solution from Omar Sandoval.
2016-10-11 09:30:36 +00:00
nicm
76d6d3641f
Fundamental change to how copy mode key bindings work:
...
The vi-copy and emacs-copy mode key tables are gone, and instead copy
mode commands are bound in one of two normal key tables ("copy-mode" or
"copy-mode-vi"). Keys are bound to "send-keys -X copy-mode-command". So:
bind -temacs-copy C-Up scroll-up
bind -temacs-copy -R5 WheelUpPane scroll-up
Becomes:
bind -Tcopy-mode C-Up send -X scroll-up
bind -Tcopy-mode WheelUpPane send -N5 -X scroll-up
This allows the full command parser and command set to be used - for
example, we can use the normal command prompt for searching, jumping,
and so on instead of a custom one:
bind -Tcopy-mode C-r command-prompt -p'search up' "send -X search-backward '%%'"
command-prompt also gets a -1 option to only require on key press, which
is needed for jumping.
The plan is to get rid of mode keys entirely, so more to come eventually.
2016-10-11 07:23:34 +00:00
nicm
8b804fb589
Support UTF-8 entry into the command prompt.
2016-10-11 07:11:40 +00:00
nicm
a81685bfac
Add static in cmd-* and fix a few other nits.
2016-10-10 21:51:39 +00:00
nicm
c426e485e5
Loads more static, except for cmd-*.c and window-*.c.
2016-10-10 21:29:23 +00:00
Thomas Adam
27126f8797
Merge branch 'obsd-master'
2016-10-10 20:01:11 +01:00
nicm
66b5477cc1
Do not allow the opposite pane to resize when dragging with the mouse
...
because it is not possible to keep the mouse on the border when the
minimum size is reached.
2016-10-10 17:28:30 +00:00
Thomas Adam
226b6a2192
Merge branch 'obsd-master'
2016-10-10 16:01:12 +01:00
nicm
7d4b416fe6
Some more static.
2016-10-10 13:54:47 +00:00
Thomas Adam
215d3f8c0d
Merge branch 'obsd-master'
2016-10-09 18:01:10 +01:00
nicm
b8f2dd8237
Make the CLIENT_STATUS flag imply that pane status lines are redrawn if
...
they are enabled and break the actual screen generation code into a
separate function. Fixes problems reported by Romain Francoise.
2016-10-09 16:24:34 +00:00
Thomas Adam
526e860a7a
Merge branch 'obsd-master'
2016-10-09 10:01:12 +01:00
nicm
1db6d6fea6
Pass file/line to new command for if-shell so that errors appear
...
sensibly.
2016-10-09 08:06:51 +00:00
nicm
48dd250af1
Handle NULL window or session for user options.
2016-10-09 07:58:35 +00:00
nicm
44449b305b
Use xsnprintf not snprintf for the prompt in window_copy_write_line
...
because we don't care if it is truncated to the screen width, we don't
want it to be fatal.
2016-10-09 07:30:28 +00:00
Thomas Adam
fb0b2cd37a
Merge branch 'obsd-master'
2016-10-06 00:01:11 +01:00
nicm
30086e504c
screen_write_copy tried to be clever and clear the line if it reached
...
the end of the source, but it was wrong and causes problems that are
only showing up now we are more aggressive about skipping redundant
screen updates. Remove the optimization entirely as more trouble than it
is worth to fix (and it'll have to go when BCE is done anyway).
2016-10-05 22:00:29 +00:00
Thomas Adam
5b8f033e06
Merge branch 'obsd-master'
2016-10-05 14:01:10 +01:00
nicm
f55c991a1b
Wrap some long lines in screen-write.c.
2016-10-05 12:36:36 +00:00
nicm
4117a7ed19
Keep buffer creation time and add accessors for it and the order number.
2016-10-05 12:34:05 +00:00
nicm
b4f95c43fc
Allow cmd_mouse_at return arguments to be NULL.
2016-10-05 12:32:13 +00:00
Thomas Adam
4740ecbeae
Merge branch 'obsd-master'
2016-10-04 02:01:11 +01:00
Thomas Adam
ddfed259f6
Merge branch 'obsd-master'
2016-10-04 00:01:11 +01:00
nicm
1b31d148c9
Remove some dead code in cmd-move-window.c and make a load of local
...
functions static.
2016-10-03 22:52:11 +00:00
Thomas Adam
6943fbbb81
Merge branch 'obsd-master'
2016-10-03 22:01:12 +01:00
nicm
305c832a97
Document set-hook -u.
2016-10-03 20:58:39 +00:00
nicm
61dfbe702e
Remove some redundant checks and make ich/dch consistent.
2016-10-03 19:19:18 +00:00
Thomas Adam
23254f59da
Fix typos
2016-09-30 09:50:40 +01:00
Thomas Adam
bb7cc8e8fd
Start working on 2.4
2016-09-29 22:00:00 +01:00
Thomas Adam
52869ed182
Release tmux 2.3
2016-09-29 21:54:12 +01:00
Thomas Adam
19104d592b
Merge branch 'obsd-master'
2016-09-29 12:01:11 +01:00
nicm
cf7f3a436a
Check padding when writing any character with width > 1, in case they
...
overlap after the first character (for example with cells xy and ab, y
is replacing a).
2016-09-29 08:50:43 +00:00
Thomas Adam
c41916ee16
Merge branch 'obsd-master'
2016-09-28 18:01:11 +01:00
nicm
bb5798aa0e
Couple of vasprintf -> xvasprintf.
2016-09-28 14:40:07 +00:00
Thomas Adam
27591570c4
Merge branch 'obsd-master'
2016-09-28 10:01:11 +01:00
nicm
acacb718e5
Rate limit TIOCSWINSZ on a timer to avoid programs getting hammered with
...
SIGWINCH when the size changes rapidly. To help a problem reported by
Rui Pinheiro.
2016-09-28 08:30:44 +00:00
Thomas Adam
30f2e8ff29
Merge branch 'obsd-master'
2016-09-26 12:01:12 +01:00
nicm
69e980602b
Support set -a (append) with user options, suggested by Xandor Schiefer.
2016-09-26 09:02:34 +00:00
Nicholas Marriott
cbde98f67b
Merge branch 'master' of github.com:tmux/tmux
2016-09-16 18:09:51 +01:00
Thomas Adam
895f1d93d5
Merge branch 'obsd-master'
2016-09-16 16:01:16 +01:00
nicm
eb50e7a2c8
Swap watermarks from high (4096) to low (128) when we get full buffers
...
into the read callback several times in succession; swap back when we
see empty buffers several times. This hopefully limits how much programs
that print a lot for a long period can monopolize tmux (like large, fast
compiling), without penalizing programs that print a lot briefly (like
most curses applications). Helps a lot for me, the actual numbers may
need tweaking later.
2016-09-16 13:43:41 +00:00
Nicholas Marriott
6e8f400edc
Do not use utf8proc by default.
2016-09-15 20:37:48 +01:00
Thomas Adam
a5b29a1250
Merge branch 'obsd-master'
2016-09-12 18:01:12 +01:00
nicm
2e5584c2b4
Allow repeat count to be specified in mode key tables with bind-key -R,
...
and set the default repeat count to 5 for WheelUp and WheelDown in
copy-mode.
2016-09-12 15:40:58 +00:00
Nicholas Marriott
060515684d
Apple have changed their API again, from Gregory Pakosz.
2016-09-12 11:06:35 +01:00
Nicholas Marriott
c6cdab1f79
Use ncurses OR curses, don't mix header and library. Tested by Rob Paisley.
2016-09-08 19:28:56 +01:00
Nicholas Marriott
3ed0973493
Solaris build fixes from Rob Paisley.
2016-09-08 15:32:15 +01:00
Thomas Adam
f68a908c8a
Merge branch 'obsd-master'
2016-09-04 20:01:16 +01:00
nicm
fed1e384ad
Add support for performing a full width split (with splitw -f), rather
...
than splitting the current cell. From Stephen Kent.
2016-09-04 17:37:06 +00:00
Thomas Adam
999c1c771b
Merge branch 'obsd-master'
2016-09-03 00:01:14 +01:00
Nicholas Marriott
727ce7e4bb
Check for headers for ncurses and libevent as well as libraries.
2016-09-02 22:05:06 +01:00
nicm
2627ab322e
Remember the number of lines scrolled into the history (versus cleared
...
into the history) and when resizing only use scrolled lines and not
cleared lines (which are probably not intended to reappear). From
Chaoren Lin.
2016-09-02 20:57:20 +00:00
Nicholas Marriott
6c94774b70
Add support for using utf8proc with --enable-utf8proc, useful for platforms
...
(like OS X) where the system implementation is crap. From Joshua Rubin.
2016-09-01 20:40:03 +01:00
Thomas Adam
ae297cb487
Merge branch 'obsd-master'
2016-08-28 02:01:11 +01:00
nicm
537964b92d
Kill empty window after moving pane and updating current window, so that
...
index is still valid before renumber-windows happens. Fixes issue
reported by Eric Pruitt.
2016-08-27 23:35:00 +00:00
Thomas Adam
1bc467fe52
Merge branch 'obsd-master'
2016-08-25 12:01:10 +01:00
nicm
6bf033beae
Do not crash if display-message used without a client, issue reported by
...
Serge Aleynikov, fix from Thomas Adam.
2016-08-25 09:33:14 +00:00
Thomas Adam
88eb302221
Merge branch 'obsd-master'
2016-08-22 22:01:13 +01:00
nicm
43f292b2e0
Two minor fixes from dilyan palauzov.
2016-08-22 20:07:58 +00:00
Thomas Adam
baf1550227
Merge branch 'obsd-master'
2016-08-03 12:01:11 +01:00
nicm
f811127bb6
We only replace the first %%, not multiple (use %2 for second).
2016-08-03 09:08:40 +00:00
nicm
f8cc48a43f
Fix minimum size when pane status line is enabled, reported by Y Petremann.
2016-08-03 09:07:02 +00:00
Nicholas Marriott
af38936473
Merge branch 'master' of github.com:tmux/tmux
2016-07-19 10:43:10 +01:00
Nicholas Marriott
0e11036055
Add to .mailmap.
2016-07-19 10:42:44 +01:00
Thomas Adam
a24260bb23
Merge branch 'obsd-master'
2016-07-15 12:01:10 +01:00
nicm
9436a31603
Tweak output of environment logging.
2016-07-15 09:52:34 +00:00
nicm
1718420c48
Log environment to new panes.
2016-07-15 09:28:32 +00:00
nicm
68b1fd0cc6
Wrap some long lines and apply some static.
2016-07-15 09:27:35 +00:00
Thomas Adam
d4eeeb5498
Merge branch 'obsd-master'
2016-07-15 04:01:12 +01:00
nicm
0f73af876f
Don't update cells in each block of data read from a pane immediately,
...
instead track them as change (dirty) and update them once at the end,
saves much time if repeatedly writing the same cell. Also fix comparison
of cells being equal in a few places (memcmp is not enough).
2016-07-15 00:49:08 +00:00
nicm
1fd6ca2260
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.
2016-07-15 00:42:56 +00:00
Thomas Adam
2d843b5021
Merge branch 'obsd-master'
2016-07-07 12:01:11 +01:00
semarie
fc118e13a9
tmux: only consider ACCESSPERMS for setting mode on socket_path.
...
it explicitly removes any S_ISUID|S_ISGID|S_ISTXT bits, instead of letting
pledge(2) silenciously remove them.
ok nicm@ beck@ deraadt@
2016-07-07 09:24:09 +00:00
Nicholas Marriott
25e128d398
Remove duplicate daemon.c and time.h.
2016-06-27 10:57:02 +01:00
Thomas Adam
93f42d360b
Merge branch 'obsd-master'
2016-06-16 14:01:11 +01:00
nicm
325cbe90d9
Allow a command to be specified to display-panes, similar to
...
command-prompt, rather than always just selecting the pane.
2016-06-16 10:55:47 +00:00
Thomas Adam
d35a9ac5f2
Linux: <time.h>
2016-06-16 11:43:05 +01:00
Thomas Adam
1ad7c6b8f8
Merge branch 'obsd-master'
2016-06-15 18:01:11 +01:00
nicm
0c7ddae2ab
Add missing buffer_name format, from Awal Garg.
2016-06-15 14:43:06 +00:00
Thomas Adam
5c12230a08
Merge branch 'obsd-master'
2016-06-15 12:01:11 +01:00
nicm
bee3e3e28d
Copy mode needs to keep the original grid intact so it can copy from it
...
if needed, so it disables reading from the pane. This can be problem
with some programs. So make tmux automatically exit all modes after 180
seconds of inactivity and if there is pending output.
2016-06-15 09:13:46 +00:00
nicm
068b8b03ad
Add -F to list-commands.
2016-06-15 08:54:11 +00:00
Nicholas Marriott
150c9f3fe0
Add *.dSYM for OS X.
2016-06-15 09:51:08 +01:00
Nicholas Marriott
697b912f26
Merge branch 'master' of github.com:tmux/tmux
2016-06-10 16:38:52 +01:00
Nicholas Marriott
b9c95937ed
Add to TODO.
2016-06-10 16:38:40 +01:00
Thomas Adam
1a53e79057
Merge branch 'obsd-master'
2016-06-10 14:01:10 +01:00
Nicholas Marriott
c84ed36719
Spelling, from Josh Soref.
2016-06-10 12:47:15 +01:00
nicm
17e4744459
Spelling error (incrased -> increased), from Josh Soref.
2016-06-10 11:46:15 +00:00
Thomas Adam
fa68d0a16e
Merge branch 'obsd-master'
2016-06-06 12:01:10 +01:00
nicm
d9450bfccd
Much faster (and smaller) method of mapping RGB colour to an xterm(1)
...
colour, from Avi Halachmi.
2016-06-06 10:12:58 +00:00
Thomas Adam
cc096ae929
Merge branch 'obsd-master'
2016-06-06 10:01:11 +01:00
Nicholas Marriott
1f75c98f49
Note how to subscribe to ML.
2016-06-06 09:30:39 +01:00
nicm
aba4438013
Cache selected state so that cells going from selected to unselected are not
...
skipped, reported by Omar Sandoval.
2016-06-06 07:28:52 +00:00
nicm
00cf5fbde6
Insert new panes after the pane being split in the list rather than
...
always after the active pane. This is more sensible when doing it with
commands rather than keys.
2016-06-06 07:24:31 +00:00
nicm
3c10df4f87
Allow #[] in window-status-separator.
2016-06-06 07:23:36 +00:00
Nicholas Marriott
89c17e44fb
Updated link for bash(1) completions.
2016-06-01 00:06:02 +01:00
Nicholas Marriott
20d2a31b40
Update TODO.
2016-05-31 22:13:44 +01:00
Thomas Adam
c7a0f56c71
Merge branch 'obsd-master'
2016-05-30 12:01:13 +01:00
nicm
1921fac814
Cache the window styles and do not look up the window-style options
...
unless they have changed.
2016-05-30 09:50:20 +00:00
nicm
36ab4c7c49
Do not draw character to screen if it has not changed, and do not save
...
last character if it won't be used. This (and last few commits) prompted
by a report from Hubert depesz Lubaczewski.
2016-05-30 09:32:24 +00:00
nicm
7d105738b6
Send two cub1 instead of using cub for moving the cursor two left. This
...
is normally better because using cub1 will be ^H^H (so two bytes) but
cub would be ^[[2D (four).
2016-05-30 09:26:49 +00:00
Nicholas Marriott
5e9412608e
No longer set __progname, we have getprogname().
2016-05-30 10:02:08 +01:00
Thomas Adam
7a2fed494b
Merge branch 'obsd-master'
2016-05-28 02:01:10 +01:00
nicm
344a6a6202
Padding cell is always the same so use a static.
2016-05-27 23:06:12 +00:00
nicm
382222af8e
Break the save-last-cell code into a separate function (so it can be
...
called conditionally later).
2016-05-27 23:02:17 +00:00
nicm
9892d80d6f
Most of the utf8_data is fixed so simplify utf8_set to use a memcpy.
2016-05-27 22:57:27 +00:00
Thomas Adam
c10d83b4df
__progname -> getprogname()
...
Fix fallout from recent use of getprogname(), which deprecates __progname.
2016-05-27 20:11:32 +01:00
Thomas Adam
a2e0db67cc
Merge branch 'obsd-master'
2016-05-27 20:01:11 +01:00
nicm
fcb00a4161
Use getprogname() instead of __progname to make portability easier.
2016-05-27 17:05:42 +00:00
Nicholas Marriott
762fa58ce8
Merge branch 'master' of github.com:tmux/tmux
2016-05-27 18:04:45 +01:00
Nicholas Marriott
cfef0c6658
getprogname() and setproctitle() on Linux.
2016-05-27 18:04:25 +01:00
Nicholas Marriott
f2ec81cf21
Add flag for -pg.
2016-05-27 10:37:06 +01:00
Thomas Adam
20d97eb849
Merge branch 'obsd-master'
2016-05-26 18:01:09 +01:00
nicm
ec7f5305b1
Extend 0x1234 keys form to more bits so that Unicode keys work.
2016-05-26 14:49:48 +00:00
Thomas Adam
95e304d111
Merge branch 'obsd-master'
2016-05-26 14:01:10 +01:00
nicm
cd14ac0486
Just nuke environ instead of trying to unsetenv everything because that
...
doesn't necessarily work if there is an entry with an empty name.
2016-05-26 12:15:42 +00:00
Thomas Adam
05ec232f3e
Merge branch 'obsd-master'
2016-05-24 00:01:09 +01:00
Thomas Adam
266918a580
Merge branch 'obsd-master'
2016-05-23 22:01:10 +01:00
nicm
95a4cc3bce
Use a fixed buffer for strftime() because there is no portable way to
...
tell if the buffer is too small, and an expanding buffer is overkill
anyway.
2016-05-23 20:39:26 +00:00
nicm
e81a92449e
Remove unused variable, from Ben Boeckel.
2016-05-23 20:03:14 +00:00
Nicholas Marriott
7411f21c5f
Use osdep_event_init() so that LIBEVENT_NOEPOLL and so on are set to turn off
...
broken event methods. Reported by Suraj N Kurapati.
2016-05-20 07:54:30 +01:00
Nicholas Marriott
2377092a70
Merge branch 'master' of github.com:tmux/tmux
2016-05-13 08:32:46 +01:00
Nicholas Marriott
af25cab11b
Fix a typo, issue 406.
2016-05-13 08:31:45 +01:00
Thomas Adam
6cb74f4b7d
Merge branch 'obsd-master'
2016-05-12 18:01:10 +01:00
tim
fdd368a294
- Rework load_cfg() error handling a little.
...
- Add -q to source-file to suppress errors about nonexistent files.
Input and OK nicm@
2016-05-12 16:05:33 +00:00
Thomas Adam
3ec7e3c006
Merge branch 'obsd-master'
2016-05-12 16:01:10 +01:00
nicm
9715c61de0
set-hook needs CANFAIL like the other set commands.
2016-05-12 13:21:56 +00:00
Thomas Adam
e76d44a640
Merge branch 'obsd-master'
2016-05-12 00:01:10 +01:00
nicm
373b13b240
Add on alerts rather than ignoring them if the event has already been
...
queued, for example bell and activity together. From Marcel Lippmann via
Romain Francoise.
2016-05-11 20:56:58 +00:00
Nicholas Marriott
fe4e9470bb
Add --static to PKG_CONFIG rather than replacing it.
2016-05-05 15:18:58 +01:00
Nicholas Marriott
29763d006a
Do not mention OpenBSD FAQ.
2016-05-05 13:09:22 +01:00
Thomas Adam
f4648c1ca1
Merge branch 'obsd-master'
2016-05-05 00:01:11 +01:00
nicm
9f045787a5
Fix up a couple of long lines.
2016-05-04 21:29:47 +00:00
Thomas Adam
ce1ec90fcc
Merge branch 'obsd-master'
2016-05-03 16:01:10 +01:00
nicm
28e0658fa9
Some tidying of copy mode search functions, based on a diff from Lukasz
...
Piatkowski (initial changes to help some more to come).
2016-05-03 13:40:50 +00:00
Thomas Adam
96538b489b
Merge branch 'obsd-master'
2016-05-01 16:01:11 +01:00
nicm
4a6eca5bd7
Use the same code for half page scrolling as full, from Michal Mazurek.
2016-05-01 13:39:05 +00:00
Thomas Adam
fe4ef307b7
Merge branch 'obsd-master'
2016-05-01 14:01:12 +01:00
nicm
87be2da4e1
Missing format (window_activity_flag) and a missing Ta.
2016-05-01 11:46:12 +00:00
Nicholas Marriott
2b9f8ae485
Update TODO.
2016-04-30 20:04:41 +01:00
nicm
88bd5b15ff
tty_client_ready can not be internal to tty.c again.
2016-04-30 18:59:02 +00:00
Thomas Adam
5849c950d0
Merge branch 'obsd-master'
2016-04-30 00:01:10 +01:00
jmc
0c7895076e
tweak previous;
2016-04-29 20:57:10 +00:00
Thomas Adam
bc4f725820
Merge branch 'obsd-master'
2016-04-29 20:01:09 +01:00
nicm
975aa3ccd6
Expand client formats (like run-shell), from Stephen M Coakley.
2016-04-29 17:12:12 +00:00
Thomas Adam
55d472a9fe
Merge branch 'obsd-master'
2016-04-29 18:01:09 +01:00
nicm
eb8e76d433
Compact a small table into text.
2016-04-29 15:58:52 +00:00
Thomas Adam
ba9f32b464
Merge branch 'obsd-master'
2016-04-29 16:01:12 +01:00
nicm
0509be0740
Add option to include status text in the pane borders. If
...
pane-border-status is set to "top" or "bottom" (rather than "off"),
every pane has a permanent top or bottom border containing the text from
pane-border-format.
Based on a diff sent long ago by Jonathan Slenders, mostly rewritten and
simplified by me.
2016-04-29 15:00:48 +00:00
nicm
0d84fdd953
Final parts of command hooks, add before- and after- hooks to each command.
2016-04-29 14:05:24 +00:00
nicm
c5443da2d3
The backoff timer is causing no end of trouble with disconnected clients
...
stopping data in attached ones. So get rid of it and see how we get on
with just a high watermark on each pane.
2016-04-29 13:36:10 +00:00
nicm
5f2bfd9807
Make the grid_cell passed into screen_write_* const.
2016-04-29 13:21:33 +00:00
Thomas Adam
e7de2fe552
Merge branch 'obsd-master'
2016-04-29 14:01:09 +01:00
Nicholas Marriott
65e4c57d3a
Only assume width 1 when wcwidth() returns -1 on non-OpenBSD platforms.
2016-04-29 12:47:15 +01:00
Thomas Adam
a9d501e975
Merge branch 'obsd-master'
2016-04-29 12:01:09 +01:00
nicm
97417a1813
Fix keys parsing again to correctly accept Unicode when not prefixed
...
with Escape.
2016-04-29 10:42:16 +00:00
nicm
7abdfbe20e
OpenBSD wcwidth() is sensible and complete so if it returns -1 it means
...
that a character is not printable, so return to ignoring such
characters.
2016-04-29 09:11:19 +00:00
Thomas Adam
7a02910feb
Merge branch 'obsd-master'
2016-04-28 10:01:10 +01:00
nicm
dd8ba0b5a8
memmove() the right size when expanding tree.
2016-04-28 07:20:26 +00:00
nicm
36976ce5e6
After unlock, Update activity time after recalculate_sizes() so that the
...
session attached flag is correct.
2016-04-28 06:51:56 +00:00
Thomas Adam
bac7a68023
Merge branch 'obsd-master'
2016-04-27 20:01:10 +01:00
nicm
fc70ac4d59
Apply backspace check after working out the actual key, so that M-BSpace
...
can work.
2016-04-27 16:46:21 +00:00
Nicholas Marriott
fb4585bbe0
Merge branch 'master' of github.com:tmux/tmux
2016-04-27 13:10:55 +01:00
Nicholas Marriott
61f231a496
Add to TODO.
2016-04-27 13:10:34 +01:00
Thomas Adam
55fdaab365
Merge branch 'obsd-master'
2016-04-27 12:01:10 +01:00
nicm
1cedf78284
Add next/previous paragraph, from J Raynor.
2016-04-27 09:39:09 +00:00
nicm
23fdbc9ea6
Loads of platforms appear to have old or broken Unicode character type
...
information and are missing widths for relatively common Unicode
characters (so mbtowc() works, but wcwidth() fails). So if wcwidth()
returns -1, assume a width of 1 instead of ignoring the character.
2016-04-27 09:36:25 +00:00
Thomas Adam
394589d493
Merge branch 'obsd-master'
2016-04-27 00:01:09 +01:00
nicm
d3546cc85c
Simplify next key matching and fix problems with meta and Unicode keys.
2016-04-26 22:19:22 +00:00
Nicholas Marriott
447ead940e
No more array.h.
2016-04-26 12:06:35 +01:00
Thomas Adam
7b9c0ced21
Merge branch 'obsd-master'
2016-04-26 12:01:09 +01:00
nicm
fb1c929dc6
Remove last uses of array.h.
2016-04-26 10:18:57 +00:00
Thomas Adam
819ad1a007
Merge branch 'obsd-master'
2016-04-26 10:01:16 +01:00
nicm
d303e55258
Log wcwidth() and mbtowc() failure to make it easier to debug a Unicode
...
codepoint not appearing.
2016-04-26 07:33:36 +00:00
Thomas Adam
3b833a0c01
Merge branch 'obsd-master'
2016-04-25 20:01:10 +01:00
nicm
6bf2a43e67
Don't overwrite modifiers in the buffer when making UTF-8 strings,
...
append instead.
2016-04-25 17:05:53 +00:00
Thomas Adam
5391342b08
Start working on 2.3
2016-04-11 01:07:07 +01:00