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
Nicholas Marriott
650d38962f
tmux 3.1.
2020-04-24 09:57:49 +01:00
Nicholas Marriott
ccd7368cc5
Update CHANGES.
2020-04-22 12:59:50 +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
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
Nicholas Marriott
e5fd85415d
Update CHANGES.
2020-04-01 09:29:44 +01: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
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
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 743939ec84 .
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 b4e74f4310 .
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 ced74bd72c .
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
Thomas Adam
9a4b45dc0f
Add CHANGES notes for 2.2 release
2016-04-11 01:00:35 +01:00
Thomas Adam
ad2532c3f4
Merge branch 'obsd-master'
2016-04-04 18:01:11 +01:00
nicm
075c086d29
fatalx() not fatal().
2016-04-04 16:19:43 +00:00
Nicholas Marriott
7b8dcbaa86
Merge branch 'master' of github.com:tmux/tmux
2016-04-03 23:55:56 +01:00
Nicholas Marriott
75b2c1693e
Add --disable-utempter to build without it.
2016-04-03 23:55:38 +01:00
Thomas Adam
1394420c37
Merge branch 'obsd-master'
2016-03-30 16:01:19 +01:00
nicm
ec82fcdfea
Bump the listen() backlog up, some people have scripts that run up a lot
...
of clients quickly.
2016-03-30 13:20:07 +00:00
Nicholas Marriott
5658b628b9
Look for utempter_add_record to be sure we have the new utempter API, the old
...
utempter API was also using utempter.h.
2016-03-26 20:17:17 +00:00
Nicholas Marriott
b429a00cce
Add to TODO.
2016-03-20 08:14:14 +00:00
Thomas Adam
410ccce4a3
Merge branch 'obsd-master'
2016-03-18 16:01:15 +00:00
nicm
312a7a1e62
Make scrolling behaviour more sensible and maintain cursor position, as
...
if the same had been done line-by-line. From Michal Mazurek.
2016-03-18 14:27:24 +00:00
Thomas Adam
ed598e9fe1
Merge branch 'obsd-master'
2016-03-18 08:01:18 +00:00
nicm
fa97b0a95b
Instead of reusing MouseUp at the finish of a drag, add a new key
...
MouseDragEnd. It can be useful to bind them separately in copy mode.
2016-03-18 07:28:27 +00:00
Nicholas Marriott
3dfc79fb09
Tweak a comment.
2016-03-17 15:11:40 +00:00
Thomas Adam
5fc5c03dad
Merge branch 'obsd-master'
...
Conflicts:
tmux.c
2016-03-05 17:58:12 +00:00
nicm
0d6de44a37
If setlocale("en_US.UTF-8") succeeds, then don't do the check for UTF-8
...
locale since if it isn't UTF-8 the system is broken anyway. If it fails,
try "" and check for UTF-8 with nl_langinfo(CODESET) rather than
wcwidth(). Based on a diff from schwarze@, nl_langinfo also suggested by
stsp@.
2016-03-05 16:08:38 +00:00
Thomas Adam
81f78f0da7
Merge branch 'obsd-master'
2016-03-05 10:01:09 +00:00
nicm
c38e0a4bbc
Do not use c->cwd or s->cwd if it is NULL, found by Ben Boeckel.
2016-03-05 07:47:52 +00:00
nicm
1f0b317088
Although we always have en_US.UTF-8 on OpenBSD, some platforms do not,
...
so fall back to setlocale(LC_CTYPE, ""). tmux requires a UTF-8 locale,
so check with wcwidth() on a UTF-8 character after setlocale().
2016-03-05 07:44:31 +00:00
Thomas Adam
6c35d17800
Merge branch 'obsd-master'
2016-03-03 16:01:11 +00:00
nicm
df0983af39
show-* and set-* need to handle a missing target.
2016-03-03 14:15:22 +00:00
nicm
fa81d838da
Accept clients as sessions in cmd_find_get_session.
2016-03-03 14:14:46 +00:00
Thomas Adam
45d62482da
Merge branch 'obsd-master'
2016-03-03 14:01:10 +00:00
nicm
bcb41a09b3
RGB colours shouldn't be mixed up with aixterm colours, return before
...
that happens when working out if they are supported.
2016-03-03 12:58:15 +00:00
Nicholas Marriott
9e2fbb31ec
+wchar.h
2016-03-02 18:19:13 +00:00
Nicholas Marriott
985504ff2c
Merge branch 'next'
2016-03-02 18:16:51 +00:00
Thomas Adam
e304673c65
Merge branch 'obsd-master'
...
Conflicts:
utf8.c
2016-03-02 18:10:51 +00:00
nicm
b8a102d26f
Handle wcwidth() and mbtowc() failures in better style and drop
...
characters where we can't find the width (wcwidth() fails) on input, the
same as we drop invalid UTF-8. Suggested by schwarze@.
2016-03-02 15:36:02 +00:00
nicm
d980d965dd
Limit x, y and b to 0x7ff for UTF-8 mouse input, suggested by schwarze@.
2016-03-02 15:33:36 +00:00
nicm
f0239a8fe9
Remove some more unused variables, and use RB_FOREACH_SAFE in
...
key_bindings_unref_table.
2016-03-01 12:06:07 +00:00
nicm
2e4503ad4e
Redraw status on mode entry and exit.
2016-03-01 12:05:15 +00:00
nicm
54ea8f74ae
When a mouse drag is finished, fire a MouseUp key press, instead of
...
doing the drag end in code. From Stephen Coakley.
2016-03-01 12:04:43 +00:00
nicm
e647eeb0c9
Remove unused variables, from Michal Mazurek.
2016-03-01 12:02:54 +00:00
nicm
26945d7956
Use system wcwidth() instead of carrying around UTF-8 width tables.
2016-03-01 12:02:08 +00:00
nicm
c7851e0ee7
Fix break-pane synopsis and some other tmux.1 bits.
2016-03-01 11:58:45 +00:00
Nicholas Marriott
a011b67f56
Remove unused variables.
2016-02-19 16:45:35 +00:00
Nicholas Marriott
c3f93e7178
Add to TODO.
2016-02-19 16:45:15 +00:00
Nicholas Marriott
931b1c6d59
Merge branch 'master' into next
2016-02-19 13:37:18 +00:00
Nicholas Marriott
e9d369a09e
Fixed fgetln(3) implementation (from Joerg Jung) which does not depend on *BSD
...
fgets(3) semantics.
2016-02-19 13:35:46 +00:00
Nicholas Marriott
6adf561507
Redraw status on mode entry and exit.
2016-02-19 13:29:59 +00:00
Nicholas Marriott
95adc0e6ba
When a mouse drag is finished, fire a MouseUp key press, instead of doing the
...
drag end in code. From Stephen Coakley.
2016-02-19 13:28:03 +00:00
Nicholas Marriott
02753ba9ea
Remove unused variables, from Michal Mazurek.
2016-02-19 13:15:22 +00:00
Nicholas Marriott
acc1090e77
Use system wcwidth() instead of carrying around UTF-8 width tables.
2016-02-19 13:14:17 +00:00
Nicholas Marriott
fc864529f5
Remove malloc_options debug bit (already gone from OpenBSD).
2016-02-19 13:11:10 +00:00
Nicholas Marriott
782dd941da
Fire SIGCHLD after utempter_add_record since it probably eats it.
2016-02-17 23:21:58 +00:00
Thomas Adam
ba8290aeae
Merge branch 'obsd-master'
2016-02-12 14:01:14 +00:00
nicm
4f6bc0a0a9
Expand client formats in run-shell.
2016-02-12 12:24:52 +00:00
Thomas Adam
f7c8f1ae29
xmalloc: define __bounded__ where necessary
2016-02-07 00:04:46 +00:00
Thomas Adam
ba97ae1737
EXTRA_DIST: add example_tmux.conf / xmalloc.h
2016-02-06 19:04:21 +00:00
Thomas Adam
7669cfb330
Merge branch 'obsd-master'
2016-02-05 12:01:10 +00:00
nicm
bc0c9c7920
Do not wrap cursor at start or end of history, from Michal Mazurek.
2016-02-05 10:20:06 +00:00
Nicholas Marriott
07c23ccc05
Merge branch 'master' of github.com:tmux/tmux
2016-02-05 10:08:55 +00:00
Nicholas Marriott
2130a07b70
Add to TODO.
2016-02-05 10:08:39 +00:00
Thomas Adam
26f899be10
Merge branch 'obsd-master'
2016-02-04 16:01:13 +00:00
nicm
bdb8bb790e
Set up -t flag properly when passing new-session -A off to
...
attach-session, GitHub issue 295.
2016-02-04 14:11:20 +00:00
Thomas Adam
8760f877e1
Merge branch 'obsd-master'
2016-01-31 16:01:09 +00:00
nicm
97882f9ce2
Clear RGB flags during selection.
2016-01-31 14:11:49 +00:00
Thomas Adam
5fce21728e
Merge branch 'obsd-master'
2016-01-31 12:01:09 +00:00
nicm
fa64b89ad7
Whoops, need this for the previous reverse trim commit too.
2016-01-31 09:57:41 +00:00
nicm
49e9f93738
Add RGB escape sequences for capture-pane -e.
2016-01-31 09:57:09 +00:00
nicm
8028560f82
Support negative trim values (#{=-10:pane_title}) to trim from the end,
...
suggested by Kevin Brubeck Unhammer.
2016-01-31 09:54:46 +00:00
nicm
225a384dbb
Fix new-session with -t after command flags changes, reported by Michael Graczyk.
2016-01-31 09:52:01 +00:00
Nicholas Marriott
404379049a
examples/ has gone, so delete some text about it.
2016-01-29 15:45:32 +00:00
Nicholas Marriott
2a1bb91bf7
Remove old examples in favour of one example configuration file.
2016-01-29 14:53:28 +00:00
Nicholas Marriott
a33bb3e876
Link to the bash(1) completion file from README rather than including it in
...
examples.
2016-01-29 14:40:30 +00:00
Thomas Adam
8cf1504ba6
Merge branch 'obsd-master'
2016-01-29 12:01:16 +00:00
nicm
427b820426
Support for RGB colour, using the extended cell mechanism to avoid
...
wasting unnecessary space. The 'Tc' flag must be set in the external
TERM entry (using terminal-overrides or a custom terminfo entry), if not
tmux will map to the closest of the 256 or 16 colour palettes.
Mostly from Suraj N Kurapati, based on a diff originally by someone else.
2016-01-29 11:13:56 +00:00
Nicholas Marriott
1d6bd50343
libevent.org URL.
2016-01-29 10:58:08 +00:00
Nicholas Marriott
ca29dc9abc
Update my email address.
2016-01-19 18:07:25 +00:00
Thomas Adam
dc42c35f1f
Merge branch 'obsd-master'
2016-01-19 18:01:15 +00:00
nicm
b5b5221c13
Split out getting the current state from the target search so it can be
...
replaced if we already know the current.
2016-01-19 16:01:30 +00:00
nicm
995af0e2b7
I no longer use my SourceForge address so replace it.
2016-01-19 15:59:12 +00:00
Thomas Adam
5d21faa99c
Merge branch 'obsd-master'
2016-01-16 02:01:10 +00:00
nicm
c9815307eb
Add hooks for alerts (bell, silence, activity), from Thomas Adam.
2016-01-16 00:36:53 +00:00
Thomas Adam
506adf3764
Merge branch 'obsd-master'
2016-01-15 12:01:11 +00:00
nicm
d551ab8e5c
Clear the environment properly by looping until it is empty rather than
...
looping over it (which may skip entries), from Brad King.
2016-01-15 11:33:41 +00:00
nicm
68d797587e
A couple of missing printflike attributes, from Andrey Starodubtsev.
2016-01-15 11:31:47 +00:00
Thomas Adam
ea9873e60e
Merge branch 'obsd-master'
2016-01-02 18:01:12 +00:00
nicm
cfb78654c2
clock-mode needs CMD_PANE.
2016-01-02 17:16:25 +00:00
Thomas Adam
051cf5437a
Merge branch 'obsd-master'
2016-01-01 10:01:11 +00:00
nicm
311be04d61
Don't rely on a calculation wrapping when applying message-limit, and
...
break out of the loop early. From Nicolas Viennot.
2016-01-01 08:04:20 +00:00
Thomas Adam
5e59c301b7
Merge branch 'obsd-master'
2015-12-31 20:01:09 +00:00
nicm
7e67db79dc
Remove an extra unzoom call which was probably a merge error.
2015-12-31 18:34:47 +00:00
nicm
f84d32ca5e
Use saved pipe buffer offset when writing to pipe, from Nicolas Viennot.
2015-12-31 18:14:13 +00:00
Thomas Adam
5dd0e82809
Merge branch 'obsd-master'
2015-12-28 16:01:09 +00:00
nicm
2a1f27eb1a
Couple of trivial style nits.
2015-12-28 14:02:52 +00:00
Nicholas Marriott
e15a8a7c46
Keith Smiley is going to maintain the vim syntax file.
2015-12-24 16:59:12 +00:00
Thomas Adam
ed65535c41
Merge branch 'obsd-master'
2015-12-23 02:01:14 +00:00
nicm
60cbdf9ccd
Repair switch-client -l and switch-client with a window target.
2015-12-23 00:12:57 +00:00
Thomas Adam
5083e93957
Merge branch 'obsd-master'
2015-12-21 10:01:08 +00:00
nicm
f2ec911b8a
Detach the right session with -d.
2015-12-21 09:20:13 +00:00
Nicholas Marriott
c83d6ee0b1
Merge branch 'master' of github.com:tmux/tmux
2015-12-20 11:26:12 +00:00
Nicholas Marriott
83c96d2685
No need to set cwd on Cygwin now, from Yuya Adachi.
2015-12-20 11:25:13 +00:00
Thomas Adam
58b3d66229
Merge branch 'obsd-master'
2015-12-19 10:01:08 +00:00
nicm
bdbec099cc
Make input off flag (selectp -d) apply to synchronize-panes too.
2015-12-19 08:43:04 +00:00
Thomas Adam
2ad9caad3f
Merge branch 'obsd-master'
2015-12-18 00:01:08 +00:00
nicm
a337403868
As well as setting up the state, actually use it in cmd_find_target.
2015-12-17 23:08:22 +00:00
Thomas Adam
e0cae08c04
Merge branch 'obsd-master'
2015-12-17 00:01:08 +00:00
nicm
99e9a4c786
send-keys -R should reset the input parser to ground state (so it can be
...
used to escape from, for example, printf '\033]2;').
2015-12-16 22:05:35 +00:00
Thomas Adam
7c94dae702
Merge branch 'obsd-master'
2015-12-16 22:01:08 +00:00
nicm
021c64310d
Add infrastructure to work out the best target given a pane or window
...
alone and use it to add pane_died and pane_exited hooks.
2015-12-16 21:50:37 +00:00
nicm
8eb1a7d5dc
showenv and setenv need to be CANFAIL.
2015-12-16 21:47:00 +00:00
Thomas Adam
f7a6482e6b
Merge branch 'obsd-master'
2015-12-15 16:01:12 +00:00
nicm
909b737289
Copy state directly rather than dereferencing wl (which could be NULL).
2015-12-15 14:32:55 +00:00
Thomas Adam
e5caf64815
Merge branch 'obsd-master'
2015-12-15 14:01:12 +00:00
nicm
ac9778395f
Some hooks API changes to fire a hook while waiting another cmdq and
...
infrastructure that will be needed soon.
2015-12-15 13:43:07 +00:00
Thomas Adam
1a33ea9671
Merge branch 'obsd-master'
2015-12-15 02:01:14 +00:00
nicm
9d88d82d5e
Allow list-keys and list-commands to be run without a running server.
2015-12-15 00:52:17 +00:00
nicm
6f417ec943
We changed somewhat recently to us the pty when tmux was run inside
...
itself to work out the current pane. This is confusing in many cases
(particularly notable is that "tmux neww\; splitw" would not split the
new window), and the few advantages do not make up for the confusion.
So drop this behaviour and return to using the current window and pane;
keep the pty check but only use it to limit the list of possible current
sessions.
2015-12-15 00:45:02 +00:00
nicm
56d097cfe0
Don't copy marked pane when can just point to it.
2015-12-15 00:11:24 +00:00
Thomas Adam
6ab17e3e15
Merge branch 'obsd-master'
2015-12-15 00:01:08 +00:00
nicm
12da13c9d1
Make the marked pane a cmd_find_state.
2015-12-15 00:00:01 +00:00
nicm
d5999f8b5c
Use cmd_find_clear_state instead of an extra function doing the same.
2015-12-14 23:30:58 +00:00
Thomas Adam
bc6137f9e4
Merge branch 'obsd-master'
2015-12-14 01:30:15 +00:00
nicm
a585a1b81a
Remove some stray debug code.
2015-12-14 00:32:19 +00:00
nicm
a3129fd4e8
Instead of combined flags for -c, -s, -t, split into different sets
...
using an enum and simplify the parsing code.
2015-12-14 00:31:54 +00:00
Thomas Adam
5caec3020d
Merge branch 'obsd-master'
2015-12-13 23:46:58 +00:00
Thomas Adam
f4adcfa0e2
Merge branch 'obsd-master'
2015-12-13 22:01:08 +00:00
nicm
ecfeee2e82
Use member names in cmd_entry definitions so I stop getting confused
...
about the order.
2015-12-13 21:53:57 +00:00
nicm
899bee0056
Actually I thought cmd_get_state_client was unnecessary but it will be
...
needed.
2015-12-13 21:17:37 +00:00
Thomas Adam
00da99f2c4
Merge branch 'obsd-master'
2015-12-13 20:01:09 +00:00
nicm
72948d9f1d
-c needs to be able for fail for display-message.
2015-12-13 18:31:47 +00:00
nicm
66d1193a00
Remove an unnecessary function.
2015-12-13 18:27:47 +00:00
nicm
fd47084224
show-options and environment need CANFAIL flag.
2015-12-13 18:15:13 +00:00
Thomas Adam
d37a580085
Merge branch 'obsd-master'
2015-12-13 18:01:11 +00:00
nicm
50f8ead4e6
Don't log an error when doing the first check for move-window.
2015-12-13 17:58:26 +00:00
nicm
9f5aca62a9
Use struct cmd_find_state directly and remove cmd_state_flag, also
...
change so that winlink is set even if an index is too.
2015-12-13 17:55:14 +00:00
nicm
9b7697db62
Change cmd_find_target to use a state struct from the caller.
2015-12-13 16:44:35 +00:00
nicm
208e2dad1e
If command returns error, report it.
2015-12-13 16:11:42 +00:00
Thomas Adam
ae5ddfdc1a
Merge branch 'obsd-master'
2015-12-13 16:01:13 +00:00
nicm
ff599f4004
Remove the cmd_find_{session,window,pane,index} functions (which are
...
just wrappers around cmd_find_target) and just use cmd_find_target
directly.
2015-12-13 15:32:12 +00:00
nicm
9d191a6093
Move logging into cmd_find_target rather than each function.
2015-12-13 15:00:37 +00:00
nicm
4a4daf1303
Instead of every command resolving the target (-t or -s) itself, prepare
...
the state (client, session, winlink, pane) for it it before entering the
command. Each command provides some flags that tell the prepare step
what it is expecting.
This is a requirement for having hooks on commands (for example, if you
hook "select-window -t1:2", the hook command should to operate on window
1:2 not whatever it thinks is the current window), and should allow some
other target improvements.
The old cmd_find_* functions remain for the moment but that layer will
be dropped later.
Joint work with Thomas Adam.
2015-12-13 14:32:38 +00:00
Nicholas Marriott
92f187d1c2
Need to use pkg-config --static when doing a static build.
2015-12-12 22:04:25 +00:00
Thomas Adam
845a664bb2
Merge branch 'obsd-master'
2015-12-12 20:01:15 +00:00
nicm
5ed17e84fa
Add key-table option to set the default key table for a session, allows
...
different key bindings for different sessions and a few other things.
2015-12-12 18:32:24 +00:00
nicm
6a50cf89b4
Return after changing key table.
2015-12-12 18:28:47 +00:00
nicm
39cf9c9d31
Allow prefix and prefix2 to be set to None to disable (useful if you
...
would rather bind the prefix in the root table).
2015-12-12 18:19:00 +00:00
Nicholas Marriott
5a5db02b85
Merge branch 'master' of github.com:tmux/tmux
2015-12-11 19:59:08 +00:00
Nicholas Marriott
38cc1a1843
Look for ncurses with PKG_CONFIG, and remove libtinfo because it just causes
...
confusion.
2015-12-11 19:58:41 +00:00
Thomas Adam
2a6b215328
Merge branch 'obsd-master'
2015-12-11 18:01:11 +00:00
nicm
88bc8f3528
Style nits and line wrapping of function declarations.
2015-12-11 16:37:21 +00:00
nicm
f2be3ad46f
Mention {src,dst}-{window,pane} where we define target-{window,pane}.
2015-12-11 16:27:01 +00:00
Thomas Adam
2a3456cd3b
Merge branch 'obsd-master'
2015-12-11 16:01:16 +00:00
nicm
bd5918760e
We cannot do hooks_find and then hooks_remove because it might have come
...
from the parent (global) tree, instead make it remove by name like options.
While here, also tidy up a few bits of options and hooks handling (use
RB_FOREACH_SAFE, and a helper function for the free).
2015-12-11 15:46:57 +00:00
Thomas Adam
4909a70174
Merge branch 'obsd-master'
2015-12-11 13:24:45 +00:00
nicm
d7e11d0af7
Check alerts when session changes, from Patrick Palka.
2015-12-11 12:39:47 +00:00
nicm
01831da5f5
Add cmdq as an argument to format_create and add a format for the
...
command name (will also be used for more later).
2015-12-11 12:27:36 +00:00
Thomas Adam
af8134a6ff
Merge branch 'obsd-master'
2015-12-08 10:01:16 +00:00
Nicholas Marriott
a988c36ccb
Add to .mailmap, and sort.
2015-12-08 08:46:06 +00:00
nicm
e0f26dcda3
Remove format_create_flags and just pass flags to format_create.
2015-12-08 08:34:18 +00:00
nicm
8f671d3eef
Spacing nits.
2015-12-08 08:14:04 +00:00
Thomas Adam
3182728b70
Merge branch 'obsd-master'
2015-12-08 07:12:13 +00:00
Thomas Adam
5862f59ed7
Conflicts:
...
Makefile
2015-12-08 07:11:09 +00:00
jmc
1f94274b92
Ed was meant to be El;
2015-12-08 06:42:07 +00:00
nicm
d2fb0efcd1
Add hooks infrastructure, basic commands (set-hook, show-hooks) and a
...
couple of not very useful client hooks. This will eventually let
commands be run at various points and on notifications. Joint work with
Thomas Adam.
2015-12-08 01:10:31 +00:00
mmcc
dbfce2a4d8
Use ^= instead of a verbose alternative. ok nicm@
2015-12-08 00:51:17 +00:00
Nicholas Marriott
98994a8bb1
termios(4)
2015-12-08 00:49:10 +00:00
Nicholas Marriott
b580a55191
pty(7) -> pty(4)
2015-12-08 00:48:22 +00:00
Nicholas Marriott
ff16836d1d
pty is in section 4
2015-12-08 00:47:27 +00:00
Nicholas Marriott
5411033f66
Update tmux.vim from Teubel Gyorgy.
2015-12-07 12:54:34 +00:00
Nicholas Marriott
8383409e88
Merge branch 'master' of github.com:tmux/tmux
2015-12-07 12:51:20 +00:00
Nicholas Marriott
d20a3ef57c
Update .mailmap file.
2015-12-07 12:51:06 +00:00
Thomas Adam
bac8c72381
Merge branch 'obsd-master'
2015-12-07 10:01:09 +00:00
nicm
b9563340b7
Fix bell indicators across detach, reported by Torbjorn Lonnemark, diff
...
from Thomas Adam.
2015-12-07 09:47:41 +00:00
Thomas Adam
8ae9329aa8
Merge branch 'obsd-master'
2015-12-05 14:01:09 +00:00
claudio
0417f1f2be
EAGAIN handling for imsg_read. OK henning@ benno@
2015-12-05 13:18:24 +00:00
Nicholas Marriott
4d5cab4085
Merge branch 'master' of github.com:tmux/tmux
2015-12-03 14:43:33 +00:00
Nicholas Marriott
3cdb2f0bb7
Add to TODO.
2015-12-03 14:43:24 +00:00
Thomas Adam
66bad2e979
Merge branch 'obsd-master'
2015-12-03 00:01:08 +00:00
nicm
7236838dea
Mark new active pane changed after pane lost in window, and after
...
break-pane. Reported by tim@.
2015-12-02 23:09:22 +00:00
Thomas Adam
eb5ee80c74
Merge branch 'obsd-master'
2015-12-01 10:01:13 +00:00
nicm
a785a7f700
Do not deref wp if window_get_active_at returns NULL which can happen on
...
very large terminals, from Michael Graczyk.
2015-12-01 09:41:03 +00:00
Thomas Adam
742976893e
Merge branch 'obsd-master'
2015-11-29 18:01:08 +00:00
guenther
1d331c7e62
Delete a duplicated line
...
ok jmc@
2015-11-29 17:06:59 +00:00
Thomas Adam
9fe8b28746
Merge branch 'obsd-master'
2015-11-27 15:41:28 +00:00
nicm
6a2ca34216
Do not set a limit on the length of commands when printing them.
2015-11-27 15:06:43 +00:00
Nicholas Marriott
3b83bda29c
Add to TODO.
2015-11-25 23:35:24 +00:00
Thomas Adam
a1bc339340
log_open() isn't conditional on proctitle
2015-11-25 16:51:17 +00:00
Thomas Adam
260de2cb5e
Remove logfile()
2015-11-25 16:48:47 +00:00
Thomas Adam
890d8da2e3
Merge branch 'obsd-master'
...
Conflicts:
log.c
proc.c
tmux.c
2015-11-25 16:37:30 +00:00
nicm
ac8678aefe
Don't print error if none to print.
2015-11-25 07:58:55 +00:00
nicm
62d3af17f9
Make environ_set va_args and use it to tidy up some calls. Also add a
...
missing word in manpage (from jmc).
2015-11-24 23:46:15 +00:00
nicm
3ff46b2e43
Shell command from -c doesn't have to be global, pass it as an argument.
2015-11-24 23:22:51 +00:00
nicm
dca93c56e0
Do lock failures slightly better, return a special value so we don't
...
unlink the wrong thing.
2015-11-24 23:01:51 +00:00
nicm
73e30cbda8
Actually show something (even if it not that helpful) if the server
...
fails to start (for example if it can't create the socket), rather than
hanging or showing nothing.
2015-11-24 22:45:44 +00:00
nicm
c18fbefe93
Document socket_path format.
2015-11-24 22:27:59 +00:00
nicm
c913fb99b6
Tidy the code that works out the socket path, and just use the full path
...
in the global socket_path rather than copying it.
2015-11-24 22:27:22 +00:00
nicm
8976dac9e0
Remove malloc_options DEBUG bit.
2015-11-24 22:09:53 +00:00
nicm
bef217b241
Switch a fprintf to a fatal, and wrap some long lines.
2015-11-24 22:04:36 +00:00
nicm
1e2df2d464
Remove the -I part of show-messages which isn't really that useful; the
...
server start time can now be accessed with a new start_time format (use:
tmux display -p '#{t:start_time}')
2015-11-24 21:52:06 +00:00
nicm
9fd3318dd8
All kill-session -C to clear alerts in all windows, suggested by Aaron
...
U'Ren.
2015-11-24 21:50:06 +00:00
nicm
4e3015a892
Log some system and libevent information at startup.
2015-11-24 21:32:36 +00:00
nicm
bdbbd9711c
Show libevent version in showmsgs -I.
2015-11-24 21:23:44 +00:00
nicm
9cccb8c115
Make the log stuff a bit tidier with some helper functions.
2015-11-24 21:19:46 +00:00
nicm
4ec61bef46
Fix usage of detach-client.
2015-11-24 20:40:51 +00:00
Nicholas Marriott
0a2ef2b932
Merge branch 'master' of github.com:tmux/tmux
2015-11-24 18:50:24 +00:00
Nicholas Marriott
7b085136a7
-sys/queue.h in proc.c, and nuke the unnecessary C++ header guards stuff and
...
sys/cdefs.h in vis.h (it causes problems on some platforms). Reported by
someone on GitHub, issue 212.
2015-11-24 18:48:07 +00:00
Thomas Adam
534f9e3ab1
Merge branch 'obsd-master'
2015-11-24 10:01:13 +00:00
nicm
b32ce34cf2
Don't allow options in table without scope set.
2015-11-24 09:34:55 +00:00
Thomas Adam
3f47ff6ecd
Merge branch 'obsd-master'
2015-11-24 00:01:16 +00:00
nicm
2adf3f42ee
Partly revert previous, it is harmless to keep support for UTF-8 mouse
...
mode inside tmux, just no longer support it for tmux itself.
2015-11-23 23:47:57 +00:00
Thomas Adam
b642b3c8e3
Merge branch 'obsd-master'
2015-11-23 21:21:12 +00:00
Thomas Adam
d63de1e407
Merge branch 'obsd-master'
...
Conflicts:
server.c
tmux.c
2015-11-23 21:20:54 +00:00
nicm
32e510bd70
Remove support for the UTF-8 mouse extension. This was a briefly used,
...
poor idea that was fairly quickly replaced by SGR mouse input (which is
now widespread). It is impossible to tell the difference between UTF-8
and non-UTF-8 mouse input; since the mouse-utf8 option was removed tmux
has not handled it correctly in any case; and it is ridiculous to have
three different forms of mouse input.
2015-11-23 20:53:09 +00:00
nicm
28e72ae34d
Don't leak extddata, memset after freeing it, not before. From Patrick
...
Palka.
2015-11-22 19:42:57 +00:00
nicm
01a2ddf3f8
Add getpw to pledge, makes tmux work in YP environments, discovered by
...
matthieu, ok deraadt
2015-11-22 19:41:19 +00:00
tim
4fcc02ee9d
If display-time is set to 0, show status messages until a key is pressed;
...
OK nicm@
2015-11-22 18:28:01 +00:00
Thomas Adam
78a00c845c
Merge branch 'obsd-master'
...
Conflicts:
tmux.h
2015-11-21 14:24:33 +00:00
Nicholas Marriott
2c482939fd
Move tmux.h below system includes.
2015-11-21 08:03:18 +00:00
nicm
933929cd62
Memory leaks and an uninitialized part of utf8_data, from Patrick Palka.
2015-11-20 22:02:54 +00:00
nicm
40fefe2cbc
The alerts callback should be fired for bells even if bell-action is
...
none because it also affects the status line bell indicator (and
bell-action does not). Fixes a problem reported by tim@.
2015-11-20 16:33:46 +00:00
nicm
fce56c56ef
Instead of separate tables for different types of options, give each
...
option a scope type (server, session, window) in one table.
2015-11-20 12:01:19 +00:00
nicm
374e273df5
Only assume pasting with at least two characters, reduces problems for
...
people who can type ^B c very fast, or who are using tmux inside
something else that buffers.
2015-11-19 22:46:46 +00:00
Thomas Adam
cf688db4b5
Merge branch 'obsd-master'
2015-11-19 16:01:12 +00:00
nicm
98967c5ec9
The activity flag could already be set, so queue the callback always (if
...
not already queued) rather than only if the flag is being added. Fixes a
problem reported by tim@
2015-11-19 14:55:25 +00:00
Thomas Adam
45b4e337cb
Merge branch 'obsd-master'
2015-11-18 18:01:13 +00:00
nicm
82760a9960
Use format_expand_time for display-message.
2015-11-18 16:49:13 +00:00
Nicholas Marriott
c15487318b
unused -> __unused.
2015-11-18 16:45:44 +00:00
Nicholas Marriott
a58eaec540
Merge branch 'master' of github.com:tmux/tmux
2015-11-18 16:42:25 +00:00
Thomas Adam
7fe8edc396
Merge branch 'obsd-master'
2015-11-18 16:01:23 +00:00
Nicholas Marriott
8b4b3ff4fc
Add __unused, will be needed shortly.
2015-11-18 14:37:08 +00:00
nicm
577c0e3e5a
Use __unused rather than rolling our own.
2015-11-18 14:27:44 +00:00
nicm
5a5b950e8b
Add s/foo/bar/: prefix for formats to substitute bar for foo.
2015-11-18 14:13:55 +00:00
Nicholas Marriott
f8a1f8843c
Add -Wno-attributes.
2015-11-18 14:10:48 +00:00
Nicholas Marriott
9bba26f8c5
Add reallocarray prototype.
2015-11-18 14:09:17 +00:00
Thomas Adam
8fa822b521
Merge branch 'obsd-master'
2015-11-18 14:01:12 +00:00
nicm
64571368dc
Sync the entire xmalloc.[ch] with the other users, but with the addition
...
of xrealloc, xvasprintf, xvsnprintf.
2015-11-18 13:06:54 +00:00
Nicholas Marriott
93742ed5df
Merge branch 'master' of github.com:tmux/tmux
2015-11-18 12:55:22 +00:00
Nicholas Marriott
a77960c540
Add reallocarray to compat.
2015-11-18 12:54:29 +00:00
Thomas Adam
4b703d3049
Merge branch 'obsd-master'
2015-11-18 10:01:11 +00:00
nicm
ca5e6bf5f2
Don't update activity time twice for new sessions, and add some logging.
2015-11-18 09:22:29 +00:00
Thomas Adam
44cad8f4ed
Merge branch 'obsd-master'
2015-11-17 20:01:12 +00:00
tobias
d0505fd042
Merge xmalloc.[ch] files across base, skipping OpenSSH for now.
...
ok nicm
2015-11-17 18:25:03 +00:00
Thomas Adam
349a62ed4f
Merge branch 'obsd-master'
2015-11-17 00:01:09 +00:00
nicm
775fb562bd
0x7f is a valid key.
2015-11-16 22:57:51 +00:00
Thomas Adam
1686a15fb6
Merge branch 'obsd-master'
2015-11-16 00:01:10 +00:00
nicm
661d0dfac9
Make key_code unsigned long long not uint64_t which is more portable for
...
printf formats, and move UTF8_SIZE define down to near the rest of the
UTF-8 bits.
2015-11-15 22:50:38 +00:00
Thomas Adam
8213558cc7
Merge branch 'obsd-master'
...
Conflicts:
server.c
tmux.c
2015-11-15 22:49:25 +00:00
nicm
a582b62287
Accidentally turned off pledge, turn it back on.
2015-11-15 14:32:48 +00:00
Thomas Adam
bb820fa761
Merge branch 'obsd-master'
2015-11-14 14:01:08 +00:00
nicm
14d90e4901
The character is an int so use %x not %hhx.
2015-11-14 12:20:19 +00:00
nicm
3db0d50df4
The private use area at U+E000 to U+F8FF is not very useful if it is
...
width 0, make it width 1 instead.
2015-11-14 12:03:23 +00:00
Thomas Adam
f12d7f0d4b
Merge branch 'obsd-master'
2015-11-14 12:01:09 +00:00
nicm
205d15e82d
All these return values from utf8_* are confusing, use an enum.
2015-11-14 11:45:43 +00:00
Thomas Adam
7b4b78b419
Merge branch 'obsd-master'
2015-11-14 11:38:52 +00:00
Thomas Adam
7b749eff35
Merge branch 'obsd-master'
...
Conflicts:
server.c
tmux.c
2015-11-14 11:38:30 +00:00
nicm
f401791a56
Rename a variable in utf8_combine for consistency and use 0xfffd for
...
unknown Unicode.
2015-11-14 11:13:44 +00:00
nicm
dab63b029e
Couple of assignments to remove compiler warnings.
2015-11-14 10:57:59 +00:00
nicm
64333e3ef8
Be more strict about invalid UTF-8.
2015-11-14 10:56:31 +00:00
nicm
c56b81a2ce
Push stdout and stderr to clients more aggressively, and add an event to
...
continue if the send fails.
2015-11-14 09:41:06 +00:00
Nicholas Marriott
23266e8e09
Merge branch 'master' of github.com:tmux/tmux
2015-11-14 09:04:41 +00:00
Nicholas Marriott
31d880f751
Update the TODO file.
2015-11-14 09:04:13 +00:00
nicm
908e6bb68f
Log more of UTF-8 input.
2015-11-14 08:25:12 +00:00
Thomas Adam
276ca5f04c
Merge branch 'obsd-master'
2015-11-13 18:01:13 +00:00
nicm
c4893d8efd
Log option names in fatal() for missing option.
2015-11-13 16:06:43 +00:00
Nicholas Marriott
1016f112bf
Merge branch 'master' of github.com:tmux/tmux
2015-11-13 16:06:11 +00:00
Nicholas Marriott
b7397bf413
utf8 option is gone.
2015-11-13 16:05:58 +00:00
Thomas Adam
45a10dde95
Merge branch 'obsd-master'
2015-11-13 14:01:10 +00:00
nicm
88aa1c8dc3
Two spacing and spelling nits.
2015-11-13 12:18:52 +00:00
Thomas Adam
e2917b2627
Merge branch 'obsd-master'
2015-11-13 10:43:07 +00:00
Thomas Adam
3df4959f51
Merge branch 'obsd-master'
...
Conflicts:
Makefile
2015-11-13 10:42:45 +00:00
nicm
531869bd92
Add window_visible_layout which ignores zoomed panes and use it for
...
control mode (which needs to know all panes), from George Nachman.
2015-11-13 10:00:26 +00:00
nicm
c5689a5a40
Long overdue change to the way we store cells in the grid: now, instead
...
of storing a full grid_cell with UTF-8 data and everything, store a new
type grid_cell_entry. This can either be the cell itself (for ASCII
cells), or an offset into an extended array (per line) for UTF-8
data.
This avoid a large (8 byte) overhead on non-UTF-8 cells (by far the
majority for most users) without the complexity of the shadow array we
had before. Grid memory without any UTF-8 is about half.
The disadvantage that cells can no longer be modified in place and need
to be copied out of the grid and back but it turned out to be lot less
complicated than I expected.
2015-11-13 08:09:28 +00:00
Thomas Adam
a7027ed8e5
Merge branch 'obsd-master'
2015-11-13 00:01:15 +00:00
nicm
e71a915412
Rename overly-long utf8data to ud throughout.
2015-11-12 22:04:37 +00:00
Thomas Adam
b2f19c9d06
Merge branch 'obsd-master'
2015-11-12 16:01:09 +00:00
nicm
f2d03f4fdd
grid_put_utf8 is unused, remove it.
2015-11-12 14:50:57 +00:00
Thomas Adam
4f88344df3
Merge branch 'obsd-master'
2015-11-12 14:01:14 +00:00
nicm
a209ea3953
Add utf8_padcstr and use it to align columns in list-keys.
2015-11-12 12:43:36 +00:00
jmc
1da7475d0e
tweak previous; ok nicm
2015-11-12 12:36:34 +00:00
nicm
d6daf37df4
Tidy utf8.c a little: build table on first use, and make utf8_width take
...
a u_int rather than splitting and then combining again in utf8_split.
2015-11-12 12:19:57 +00:00
Thomas Adam
5f483499f3
Merge branch 'obsd-master'
2015-11-12 12:01:17 +00:00
nicm
0cc812ae34
tmux is UTF-8, so if $TMUX is set (tmux running in tmux), the client is
...
UTF-8. Also try to make the existing checks more readable.
2015-11-12 11:24:08 +00:00
nicm
c41673f3fa
If we know the terminal outside tmux is not UTF-8, replace UTF-8 in
...
error messages and whatnot with underscores the same as we do when we
draw UTF-8 characters as part of the screen.
2015-11-12 11:10:50 +00:00
nicm
1b86f520ea
Nuke the utf8 and status-utf8 options and make tmux only a UTF-8
...
terminal. We still support non-UTF-8 terminals outside tmux, but inside
it is always UTF-8 (as when the utf8 and status-utf8 options were on).
2015-11-12 11:09:11 +00:00
nicm
a0f3999ce7
Remove the mouse_utf8_flag format as well.
2015-11-12 11:07:10 +00:00
nicm
69e0b8326a
Support UTF-8 key bindings by expanding the key type from int to
...
uint64_t and converting UTF-8 to Unicode on input and the reverse on
output. (This allows key bindings, there are still omissions - the
largest being that the various prompts do not accept UTF-8.)
2015-11-12 11:05:34 +00:00
Thomas Adam
333da3b64b
Merge branch 'obsd-master'
2015-11-12 10:01:09 +00:00
nicm
7062b0e65d
Default history-file should be "" not NULL, from Greg Onufe.
2015-11-12 08:19:18 +00:00
Thomas Adam
f2e4aa8d1c
Merge branch 'obsd-master'
2015-11-12 00:01:10 +00:00
nicm
00c34df186
Drop mouse-utf8 option and always turn on UTF-8 mouse if the client says
...
it supports UTF-8.
2015-11-11 23:23:33 +00:00
Thomas Adam
35fd6d134a
Merge branch 'obsd-master'
...
Conflicts:
utf8.c
2015-11-11 08:14:36 +00:00
nicm
6f3475c6c7
If realpath() fails just try the original path.
2015-11-10 22:33:47 +00:00
nicm
005e462e01
Handle absolute paths properly, and don't use resolved path in
...
realpath() fails.
2015-11-10 22:29:33 +00:00
nicm
dcdccf8333
Same bug as last commit, but in the other copy of the loop in this file...
2015-11-05 23:32:21 +00:00
schwarze
e9b58d9de4
Update the internal wcwidth(3) table of tmux(1) to match the data
...
in /usr/src/share/locale/ctype/en_US.UTF-8.src, with one single
exception: Keep U+00AD SOFT HYPHEN at width 1 rather than moving
it to width 0, a tradition already observed in the old
https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c .
While here, manually rebalance the btree for optimal lookup speed.
OK nicm@
2015-11-05 16:44:25 +00:00
Thomas Adam
896581628d
Merge branch 'obsd-master'
2015-11-05 12:01:08 +00:00
nicm
5577535891
Pass through right click if mouse is on, from Patrick Palka.
2015-11-05 11:05:30 +00:00
Thomas Adam
696826913c
Merge branch 'obsd-master'
2015-11-03 16:01:11 +00:00
nicm
455284f1c0
Detach the client we are looping over, from Thomas Adam.
2015-11-03 15:07:36 +00:00
Thomas Adam
c975de2e07
Merge branch 'obsd-master'
...
Conflicts:
server.c
2015-10-31 23:56:35 +00:00
nicm
ba7fb49fb9
Fall back silently to ~ or / rather than checking -c with access(), this
...
was the old behaviour.
2015-10-31 14:51:15 +00:00
nicm
b0a99e85b6
Don't shift version out of peerid, it is needed later.
2015-10-31 13:43:38 +00:00
nicm
abb4e9e2fa
The output log is only useful once and it means creating a file, so open
...
it once at startup instead of in every call to tty_open.
2015-10-31 13:12:03 +00:00
Thomas Adam
17f6c3be8e
Merge branch 'obsd-master'
2015-10-31 10:01:12 +00:00
nicm
01defc9f49
Because pledge(2) does not allow us to pass directory file descriptors
...
around, we can't use file descriptors for the working directory because
we will be unable to pass it to a privileged process to tell it where to
read or write files or spawn children. So move tmux back to using
strings for the current working directory. We try to check it exists
with access() when it is set but ultimately fall back to ~ if it fails
at time of use (or / if that fails too).
2015-10-31 08:13:58 +00:00
Thomas Adam
e8bb385d6d
Merge branch 'obsd-master'
2015-10-29 10:01:09 +00:00
nicm
45f3cea263
Break version check into a separate function, and limit version to 8 bits.
2015-10-29 09:35:31 +00:00
Thomas Adam
a5e4d3a2d8
Merge branch 'obsd-master'
2015-10-28 12:01:11 +00:00
nicm
bf9c933cae
Like options, move the environ struct into environ.c.
2015-10-28 09:51:55 +00:00
Thomas Adam
da1f6fc2c8
Merge branch 'obsd-master'
...
Conflicts:
Makefile
client.c
server-client.c
server.c
tmux.c
tmux.h
2015-10-27 23:27:26 +00:00
nicm
44657bf932
Move struct options into options.c.
2015-10-27 15:58:42 +00:00
nicm
67c3a014b9
No more TMPDIR.
2015-10-27 14:51:35 +00:00
nicm
07b0ea03c3
Break the common process set up, event loop and imsg dispatch code
...
between server and client out into a separate internal API. This will
make it easier to add another process.
2015-10-27 13:23:24 +00:00
Thomas Adam
147b5ae514
Merge branch 'obsd-master'
2015-10-27 10:01:13 +00:00
nicm
9952201ca7
Count brackets in #{?...} so that nested conditional formats work, from
...
Daniel De Graaf.
2015-10-27 09:28:31 +00:00
nicm
17c2c4219d
The format callback may not always succeed, so we need to check for
...
NULL. From Patrick Palka.
2015-10-27 09:18:06 +00:00
nicm
3fc001d0a2
Use copy-mode -et= in WheelUpPane binding, from Patrick Palka.
2015-10-27 09:15:21 +00:00
Thomas Adam
9c69a79f9a
Merge branch 'obsd-master'
2015-10-27 00:01:09 +00:00
nicm
640c6fdd5f
If a mouse event has no key binding, pass it through to the pane it
...
happened in, not the active pane like normal key presses. Fixes problems
seen by Enrico Ghirardi.
2015-10-26 23:16:18 +00:00
nicm
380a1ea8ef
Default bindings for mouse wheel on status line to change window (like
...
we had before), from Patrick Palka.
2015-10-26 23:06:18 +00:00
nicm
b85be36d1c
Handle unknown keys more gracefully, return a string instead of NULL.
2015-10-26 22:03:04 +00:00
Thomas Adam
54a3ed751e
Merge branch 'obsd-master'
2015-10-26 18:01:12 +00:00
nicm
a22fe33aa0
Some extra logging of where keys are actually going.
2015-10-26 17:17:06 +00:00
Thomas Adam
e95df0bc39
Merge branch 'obsd-master'
2015-10-26 02:01:09 +00:00
jmc
c582f7d177
space before punctuation;
2015-10-26 00:15:37 +00:00
Thomas Adam
ca29903c82
Merge branch 'obsd-master'
2015-10-26 00:01:10 +00:00
nicm
e65306d8e7
Extend the modifiers allowed before formats: as well as the existing
...
#{=10:...} length limit, add #{t:...} to convert a time_t format to a
string, #{b:...} for basename and #{d:...} for dirname. Remove all the
foo_string time formats as they can now be replaced by "t:", for example
#{window_activity_string} becomes #{t:window_activity}.
2015-10-25 22:29:17 +00:00
Nicholas Marriott
c14fb5b633
-sys/types.h
2015-10-25 09:38:08 +00:00
Thomas Adam
ad437f13d5
Add missing headers for getpid()
2015-10-25 09:34:56 +00:00
Thomas Adam
4681415a15
Merge branch 'master' of github.com:tmux/tmux
2015-10-25 09:33:11 +00:00
Nicholas Marriott
7930cb54c0
ifdef __OpenBSD__ around pledge().
2015-10-25 09:31:46 +00:00
Thomas Adam
91f53d590b
__OpenBSD__ around pledge()
2015-10-25 09:31:07 +00:00
Thomas Adam
3e0d31c4e9
Merge branch 'obsd-master'
2015-10-25 09:22:20 +00:00
Thomas Adam
4acc8d0ff5
Merge branch 'obsd-master'
...
Conflicts:
cmd-find.c
2015-10-25 09:21:37 +00:00
nicm
3faa51a0ca
Pass output from jobs through format_expand() so they are expanded again
...
(this was the previous behaviour).
2015-10-25 08:59:26 +00:00
deraadt
3034a71488
Let's see if anyone screams about not being able to specify $TMPDIR
...
for their tmux sockets.
(Over the years, I have seen $TMPDIR set up worse than /tmp many times,
and don't know how this practice infected other parts of the system.
Nothing uses tmpdir(3), nor a huge-temporary-file program like sort.)
ok nicm
2015-10-25 07:48:16 +00:00
nicm
2e2b8a95bd
Pasting mouse escape sequences is unlikely, so skip them when working
...
out whether the user is pasting.
2015-10-23 23:46:36 +00:00
nicm
26a55ddcf9
Remove some unnecessary checks before free().
2015-10-23 16:30:15 +00:00
nicm
1a4ddfa8a7
If $TMUX is set, and we are unsure about the session, use it.
2015-10-23 16:29:07 +00:00
nicm
5383b047d1
tmux can call pledge() in main with large set and then reduce it
...
slightly in the server to "stdio rpath wpath cpath fattr unix recvfd
proc exec tty ps".
2015-10-23 16:07:29 +00:00
nicm
14da999408
Format for scroll position, from Jorge Morante.
2015-10-23 16:02:21 +00:00
nicm
63a3fd3c0f
Use tty_term_flag not _has for XT, and make -2 force direct use of
...
256-colour escape sequences (so setaf/setab can be bypassed if needed).
2015-10-23 15:52:54 +00:00
Thomas Adam
8c39813665
Merge branch 'obsd-master'
2015-10-22 14:01:12 +01:00
nicm
3ebcf25149
If the pane is still on all_window_panes but not actually connected to
...
window or session (which can happen if it is killed during a command
sequence and something else has a reference), fall back to the best
effort. Fixes "tmux killw\; detach" for Rudis Muiznieks.
2015-10-22 11:23:00 +00:00
nicm
a05c27a7e1
Unzoom before -LRUD, reported by Andy Weidenbaum.
2015-10-22 11:19:31 +00:00
Thomas Adam
6bc3902f5d
Merge branch 'obsd-master'
2015-10-22 12:01:09 +01:00
nicm
c2c2d44c72
Log identify messages.
2015-10-22 11:00:51 +00:00
nicm
515dfea4b7
This should not be changed.
2015-10-22 10:48:30 +00:00
nicm
31fd071faa
Rename shutdown to exit.
2015-10-22 10:46:24 +00:00
Thomas Adam
0bfa615997
Merge branch 'obsd-master'
2015-10-21 16:01:08 +01:00
nicm
60ca29df64
client_key_table was missing.
2015-10-21 13:14:36 +00:00
Thomas Adam
35f582583a
Merge branch 'obsd-master'
2015-10-21 14:01:09 +01:00
nicm
ddbc4a0f6c
By popular demand add a default binding for mouse wheel up to scroll
...
into history (if the mouse is, on of course).
2015-10-21 11:13:47 +00:00
Thomas Adam
1f4a5b5dfe
Merge branch 'obsd-master'
2015-10-21 00:01:19 +01:00
nicm
076034345a
Use client pointer not file descriptor in logging.
2015-10-20 21:12:08 +00:00
Thomas Adam
af2d48f4d2
Merge branch 'obsd-master'
2015-10-20 16:01:11 +01:00
nicm
8c8cddbe02
The table could change when retrying so don't save it at start of
...
server_client_handle_key.
2015-10-20 14:19:27 +00:00
Thomas Adam
bbdc08780c
Merge branch 'obsd-master'
2015-10-18 22:01:08 +01:00
nicm
174a2ad731
Pass current directory as a string rather than a file descriptor because
...
pledge doesn't let us pass directory file descriptors.
2015-10-18 20:42:42 +00:00
Thomas Adam
7c78b2b756
Start working on tmux 2.2
2015-10-18 18:19:08 +01:00
Thomas Adam
310f0a960c
Update for 2.1 release.
2015-10-18 18:10:43 +01:00
Nicholas Marriott
6c3ade76df
__OpenBSD__ around pledge().
2015-10-17 20:16:12 +01:00
Thomas Adam
487285b325
Merge branch 'obsd-master'
2015-10-17 20:01:08 +01:00
nicm
9c601ebde8
Add pledge "stdio unix sendfd proc exec tty" to tmux client process,
...
"sendfd" is dropped after first message from the server.
2015-10-17 18:30:43 +00:00
Nicholas Marriott
0273d809d0
Merge branch 'master' of github.com:tmux/tmux
2015-10-17 18:48:45 +01:00
Nicholas Marriott
e0527d7731
time.h is not needed now tzset() is not in log.c.
2015-10-17 18:48:22 +01:00
Thomas Adam
a204595e4c
Merge branch 'obsd-master'
2015-10-16 10:01:09 +01:00
nicm
cf89abb013
Don't free after calling paste_set but do after evbuffer_add, from Theo
...
Buehler.
2015-10-16 07:43:29 +00:00
Nicholas Marriott
c06c14fb29
Some header fixes.
2015-10-15 21:42:17 +01:00
Nicholas Marriott
716550021e
Merge branch 'master' of github.com:tmux/tmux
2015-10-15 09:25:21 +01:00
Nicholas Marriott
f199fb6a2b
Fix available_fds when there is no AF_INET, reported by Mathieu Arnold.
2015-10-15 09:24:25 +01:00
Thomas Adam
f69e09a67e
Merge branch 'obsd-master'
2015-10-11 02:01:14 +01:00
guenther
241fd72f75
Userspace doesn't need to use SUN_LEN(): connect() and bind() must accept
...
sizeof(struct sockaddr_un), so do the simple, portable thing
ok beck@ deraadt@
2015-10-11 00:26:23 +00:00
Thomas Adam
5b13dafbab
Merge branch 'obsd-master'
2015-10-07 12:01:21 +01:00
nicm
7340d5adfd
Couple of memory leaks in error paths, from Frederik Vanderstraeten.
2015-10-07 09:52:58 +00:00
Thomas Adam
7120ab2f16
Merge branch 'obsd-master'
2015-09-26 02:01:16 +01:00
nicm
695a591f8e
Adding colors=256 to *256color* was always pretty stupid and now it
...
won't work (without adding setaf@:setab@ too).
2015-09-25 23:30:24 +00:00
nicm
03d7dba5d8
If the terminal has colors=256, only try to use setaf/setab if they
...
exist, reported by Filipe Brandenburger.
2015-09-25 23:30:12 +00:00
Thomas Adam
20c3adca41
Merge branch 'obsd-master'
2015-09-25 18:01:09 +01:00
nicm
28f23f18e9
Free the history when it is cleared, based on a diff from Carlo Cannas.
2015-09-25 15:53:07 +00:00
Thomas Adam
b0372840e7
Merge branch 'obsd-master'
2015-09-24 14:01:10 +01:00
nicm
2a62917444
Don't leak fd and path on failure.
2015-09-24 12:06:20 +00:00
nicm
69ea6b9373
Do not leak log file descriptor.
2015-09-24 12:03:58 +00:00
Thomas Adam
ed17760a52
Merge branch 'obsd-master'
2015-09-24 10:01:09 +01:00
nicm
ddb2d1221b
Assign flag not number for flag types (we got away with it so far
...
because that are a union). From Filipe Brandenburger.
2015-09-24 07:02:18 +00:00
Nicholas Marriott
06d4553a15
Merge branch 'master' of github.com:tmux/tmux
2015-09-23 14:27:11 +01:00
Nicholas Marriott
1caebaa49a
Add to TODO.
2015-09-23 14:26:53 +01:00
Thomas Adam
7e9b87f396
Merge branch 'obsd-master'
2015-09-23 00:01:09 +01:00
nicm
dc66795e35
Don't update last session when the session is unchanged, from Sina Siadat.
2015-09-22 21:56:16 +00:00
Thomas Adam
d6d05883ad
Merge branch 'obsd-master'
2015-09-21 12:01:11 +01:00
nicm
d5f223a3fe
Reset the alerts timer always on activity, from Thomas Adam.
2015-09-21 09:34:52 +00:00
Thomas Adam
983357603a
Merge branch 'obsd-master'
2015-09-18 12:01:07 +01:00
nicm
6b709e655e
-l should apply to the new not the old pane with -b, from "MadMaverick9"
...
on GitHub.
2015-09-18 09:55:22 +00:00
Thomas Adam
c624382929
Merge branch 'obsd-master'
2015-09-17 16:01:08 +01:00
nicm
8b5d5dca9f
Redraw both src and dst sessions in break-pane.
2015-09-17 14:11:55 +00:00
Thomas Adam
a3bce7a322
Merge branch 'obsd-master'
2015-09-17 00:01:08 +01:00
nicm
c1d0b6a6ee
Log when cmdq_continue is called.
2015-09-16 22:41:00 +00:00
nicm
232a0ffc34
Give some variables less silly names.
2015-09-16 22:40:27 +00:00
nicm
ecb257f0ef
A few minor style nits.
2015-09-16 22:40:05 +00:00
nicm
d1b73be6e1
Hoist some common code out of both branches of an if/else.
2015-09-16 22:29:30 +00:00
nicm
a4b4b29987
Rename cmd_q dead flag to a general flags bitmask (will be more flags later).
2015-09-16 22:24:54 +00:00
Nicholas Marriott
57ad1f6ddf
Merge branch 'master' of github.com:tmux/tmux
2015-09-15 13:57:57 +01:00
Nicholas Marriott
54bd761286
Add BCE to TODO.
2015-09-15 13:57:46 +01:00
Thomas Adam
b5d789a531
Merge branch 'obsd-master'
2015-09-14 16:01:08 +01:00
Nicholas Marriott
166aa97f75
No more $Id$.
2015-09-14 15:59:21 +01:00
Thomas Adam
d47789620b
Add missing <time.h>
2015-09-14 14:39:51 +01:00
nicm
16ee4de5df
Remove some extra blank lines.
2015-09-14 13:22:02 +00:00
Thomas Adam
4afe26fa82
Merge branch 'obsd-master'
2015-09-14 14:01:09 +01:00
nicm
62bb6e37e0
Should add buffer if no -b.
2015-09-14 12:52:22 +00:00
nicm
216ddf3da5
Move tzset() from log_open to main.
2015-09-14 12:12:24 +00:00
nicm
8da6de3e66
Style nit, int for flags not u_int.
2015-09-14 11:57:22 +00:00
Thomas Adam
74b958ecbe
Merge branch 'obsd-master'
...
Conflicts:
Makefile
2015-09-14 12:42:19 +01:00
nicm
af16ce6ad9
When the active pane changes, redraw panes if the style has
...
changed. From Cam Hutchison.
2015-09-14 11:34:50 +00:00
nicm
16efa84838
Make refresh-client force update of jobs, from Sina Siadat.
2015-09-14 10:25:52 +00:00
nicm
901c2eb20a
Add copy-mode -e to exit copy mode when scrolling off the bottom, useful
...
for quick view of history, from Cam Hutchison.
2015-09-13 13:31:40 +00:00
nicm
ede0f2f633
Set woken flag when flushing so that the channel is freed, while here
...
use the same loop construct for both loops.
2015-09-13 10:45:55 +00:00
nicm
a3de5dbab1
Merge delete-buffer into cmd-set-buffer.c and change the paste buffer
...
API so it has one paste_free() rather than free_top and free_name
(everywhere that uses it already has the right pointer).
2015-09-11 14:41:50 +00:00
Nicholas Marriott
ef35c9f765
Add --enable-coverage for gcov.
2015-09-11 13:16:35 +01:00
Nicholas Marriott
66c4ed98d6
Fix bad merge.
2015-09-10 14:59:16 +01:00
Nicholas Marriott
eb1084754c
Merge branch 'master' of github.com:tmux/tmux
2015-09-10 12:42:25 +01:00
Nicholas Marriott
79e5b62907
osdep_event_init not event_init.
2015-09-10 12:41:49 +01:00
Thomas Adam
1fd756066c
Merge branch 'obsd-master'
2015-09-10 12:01:08 +01:00
nicm
cfabe30bec
Add session_last_attached time and format, from Sina Siadat.
2015-09-10 08:58:14 +00:00
Thomas Adam
5af2f68a2c
Merge branch 'obsd-master'
2015-09-09 14:01:08 +01:00
nicm
67ee995cc1
No need to keep global options around for client which doesn't use them.
2015-09-09 12:09:21 +00:00
Thomas Adam
fe536457cc
Fix includes
...
Let compat/ work out the includes; otherwise works on OpenBSD.
2015-09-06 21:29:36 +01:00
Thomas Adam
76688d2040
Merge branch 'obsd-master'
...
Conflicts:
cfg.c
tmux.c
2015-09-06 20:47:50 +01:00
nicm
aceae73b9a
Change wait-for to work when the signal comes before the wait, also use
...
some helper functions and add some logging.
2015-09-04 12:02:44 +00:00
nicm
82326dcbe2
A couple of style nits.
2015-09-03 14:30:23 +00:00
nicm
6c10fc659a
Log pane which received input data.
2015-09-02 17:52:57 +00:00
nicm
38e3baab2a
A one line helper function is a little silly.
2015-09-02 17:43:25 +00:00
nicm
8121127606
We no longer need the terminal service class, so don't bother asking for it.
2015-09-02 17:37:54 +00:00
nicm
a45164f2e0
Fix indentation of grid_string_cells_fg.
2015-09-02 17:12:07 +00:00
Nicholas Marriott
2ebef95994
Sync up vis.* for stravis().
2015-09-01 21:08:19 +01:00
nicm
93b946ee50
Tweak some error messages/comments.
2015-09-01 19:50:09 +00:00
nicm
66a2720c56
Log the whole new input buffer once rather than each byte.
2015-09-01 19:16:00 +00:00
nicm
364a885b0c
Pass logging through vis(3).
2015-09-01 19:14:43 +00:00
nicm
fa3d4fab85
Fix a spelling error, sesson -> session.
2015-09-01 18:50:16 +00:00
nicm
69a2d46ee5
Remove dead_clients which is no longer used.
2015-09-01 11:13:39 +00:00
nicm
952ba84611
Work out config file when needed not at startup.
2015-09-01 10:10:59 +00:00
nicm
83157c02d6
Move initial conf load into cfg.c.
2015-09-01 10:01:56 +00:00
nicm
2a836bc306
All the cmd_*_entry declarations do not need to be in tmux.h.
2015-09-01 09:48:34 +00:00
Nicholas Marriott
2c6ea705fd
Bring back pane_current_path.
2015-08-31 19:57:37 +01:00
nicm
6a539c00df
Path from $TMUX does not need to be global anymore.
2015-08-30 22:56:36 +00:00
nicm
c6e9160c67
Login shell can be a client flag, and move the exec code into client.c.
2015-08-30 22:40:25 +00:00
nicm
dd92b6e83d
Event base does not need to be global.
2015-08-30 22:19:07 +00:00
Thomas Adam
29f2120e5b
Linux: get_proc_name() -> osdep_get_name()
2015-08-30 21:47:50 +01:00
Thomas Adam
cb89f2f2a1
Merge branch 'obsd-master'
...
Conflicts:
Makefile
format.c
2015-08-30 21:44:01 +01:00
nicm
b87dc608d9
Some style nits and dead assignments.
2015-08-30 15:43:40 +00:00
nicm
5047670693
Remove some old prototypes and unused functions.
2015-08-29 23:55:55 +00:00
nicm
52bbac506c
struct args_entry can go into arguments.c.
2015-08-29 23:19:52 +00:00
nicm
373ef850e0
paste_send_pane can be merged into cmd-paste-buffer.c now.
2015-08-29 09:36:46 +00:00
nicm
b569585000
Move struct paste_buffer out of tmux.h.
2015-08-29 09:25:00 +00:00
nicm
b9f0571780
We already loop over the windows in server_client_loop, so don't do it
...
again in server_loop just to check names.
2015-08-29 08:54:41 +00:00
nicm
b5aaefc727
Move alerts onto events rather than checking every loop.
2015-08-29 08:30:54 +00:00
nicm
5267ce8ff4
Treat entering or leaving a mode as pane changed.
2015-08-29 00:39:18 +00:00
nicm
b7861f34ba
Better take on reducing the name timer. Again check for name changes in
...
the main loop after events that may have changed the pane, but do so at
most once every 500 millis. If the pane changed too soon, use a timer to
ensure that a check happens later.
2015-08-29 00:29:15 +00:00
nicm
73bd816076
Microseconds in log time.
2015-08-29 00:24:44 +00:00
nicm
d9b3133321
Only set default title to hostname on screens that are being used for a
...
window pane, no point in calling gethostname() for temporary screens.
2015-08-28 17:11:12 +00:00
nicm
5f122af556
Make a few more expensive (ish) formats functions instead of inline.
2015-08-28 17:01:42 +00:00
nicm
983ebb2689
Allow formats to be specified as functions (in the code) so they are
...
only evaluated on demand rather than each time a format tree is
constructed. Use this for expensive formats like pane_current_command.
2015-08-28 16:46:40 +00:00
nicm
55b8d74561
Revert previous; we do need a timer, until I have a better idea. We
...
can't do the name check every loop, because that is too expensive, and
we can't make sure it only happens infrequently because we have no idea
when the next change will happen.
2015-08-28 16:10:46 +00:00
nicm
e2100c5f5f
We now only checking for name changes when the active pane has changed,
...
but that can only happen when we have already been woken up by a read
event, so there is no need for a timer, we can just check the changed
flag on the end of that read event (we already loop over the windows to
check for bells etc anyway).
2015-08-28 15:51:48 +00:00
Thomas Adam
486421ceff
Merge branch 'obsd-master'
2015-08-28 16:01:09 +01:00
nicm
b0940bdf54
Check changed flag after restarting timer.
2015-08-28 13:26:41 +00:00
nicm
f957db81d9
Remove unused prototypes.
2015-08-28 13:21:25 +00:00
nicm
ed2a486f46
Don't leak name when freeing session, from Kuang-che Wu.
2015-08-28 13:16:03 +00:00
nicm
f6a0f8730e
Per-session timers for locking, and remove the global one-second timer.
2015-08-28 13:12:20 +00:00
Thomas Adam
84eabb2658
Merge branch 'obsd-master'
2015-08-28 14:01:11 +01:00
nicm
57cc4d45d5
Make session_update_activity more useful and use it in more places.
2015-08-28 13:01:03 +00:00
nicm
675def0396
Remove the lock-server option which is a bit redundant, it isn't that
...
different without it.
2015-08-28 12:31:55 +00:00
nicm
6419f66523
Give clock mode its own timer.
2015-08-28 12:25:42 +00:00
nicm
75d10058a4
Run status update on a per-client timer at status-interval.
2015-08-28 12:16:28 +00:00
nicm
18d4802a7b
Log time with message.
2015-08-28 12:15:54 +00:00
nicm
b6618b631b
Move format job cleanup onto its own timer.
2015-08-28 11:38:27 +00:00
Thomas Adam
31c027a37a
Merge branch 'obsd-master'
2015-08-28 12:01:07 +01:00
nicm
ee9f708500
Allow environment variables in #{}.
2015-08-28 10:06:52 +00:00
Thomas Adam
031d7ce840
Merge branch 'obsd-master'
2015-08-28 10:01:08 +01:00
nicm
25faca41eb
Error messages should not have a trailing period.
2015-08-28 07:55:43 +00:00
nicm
fc58e44f89
Only do the automatic-rename dance if the pane has changed (seen output,
...
or new active pane).
2015-08-28 07:49:24 +00:00
Thomas Adam
ce20572ace
Merge branch 'obsd-master'
2015-08-25 18:01:07 +01:00
nicm
2ffbd5b5f0
When searching for tabs, start from screen width, fixes out-of-bounds
...
read found by Kuang-che Wu.
2015-08-25 15:00:05 +00:00
Thomas Adam
429f86397b
Merge branch 'obsd-master'
2015-08-25 02:01:16 +01:00
nicm
3219e0314e
In grid_duplicate_lines, if the line is empty (cellsize == 0) then clear
...
the destination celldata pointer rather than leaving a stale copy of the
source pointer (which may later be freed). Fixes a crash found by
Kuang-che Wu.
2015-08-24 22:49:13 +00:00
Thomas Adam
65b45c9c32
Merge branch 'obsd-master'
2015-08-16 12:01:06 +01:00
nicm
58b659a26e
Come out of copy mode when history is cleared.
2015-08-16 08:57:34 +00:00
Nicholas Marriott
f5357ed940
Handle \ at EOL from Daniel Hahler.
2015-08-15 09:53:19 +01:00
Thomas Adam
778612d152
Merge branch 'obsd-master'
2015-08-13 18:01:07 +01:00
nicm
46aa92420a
right-up should be right-of, also rename the values too.
2015-08-13 15:02:23 +00:00
Thomas Adam
6447404cc2
Merge branch 'obsd-master'
2015-08-12 12:01:09 +01:00
nicm
13b7fd82c1
Rename left/right/up/down relative to active pane to add -of suffix
...
(left-of/right-of/etc) to remove conflict with left/right meaning
leftmost or rightmost pane. From Ben Boeckel.
2015-08-12 08:55:20 +00:00
Nicholas Marriott
3c9b8a28c6
Merge branch 'master' of github.com:tmux/tmux
2015-08-07 15:08:26 +01:00
Nicholas Marriott
736d8350e9
+history-file, from Ben Boeckel.
2015-08-07 15:06:17 +01:00
Thomas Adam
73b4d098ce
Merge branch 'obsd-master'
2015-07-29 14:01:09 +01:00
nicm
5ec3621101
status_out and associated data structures are no longer used.
2015-07-29 11:56:02 +00:00
Thomas Adam
a568aaa0c0
Merge branch 'obsd-master'
2015-07-28 18:01:08 +01:00
nicm
b254115acd
Tidy up the way terminals are described and move some structs out of tmux.h.
2015-07-28 15:18:10 +00:00
Thomas Adam
ff18787b2c
Merge branch 'obsd-master'
2015-07-27 10:01:08 +01:00
nicm
d33adc4fd0
Make -q suppress ambiguous option warnings too, from Cam Hutchison.
2015-07-27 08:45:45 +00:00
Nicholas Marriott
e4cdc9fa0b
Merge branch 'master' of github.com:tmux/tmux
2015-07-24 09:10:21 +01:00
Nicholas Marriott
669059aa19
Fix a warning, from Kosta Zertsekel.
2015-07-24 09:06:15 +01:00
Thomas Adam
18a64ad52d
Merge branch 'obsd-master'
2015-07-20 18:01:10 +01:00
nicm
92af3766ec
Add an option (history-file) for a file to save/restore command prompt
...
history, from Olof-Joachim Frahm.
2015-07-20 15:50:04 +00:00
Thomas Adam
dedd9edf7f
Merge branch 'obsd-master'
2015-07-20 12:01:07 +01:00
nicm
d4ce210713
Correct the tsl/fsl sequence to ]0 not ]2 (from Marcel Korpel). While
...
here, Xr xterm and remove some advice about elinks that is better
elsewhere.
2015-07-20 10:34:11 +00:00
Nicholas Marriott
e6facdcb0c
Merge branch 'master' of github.com:tmux/tmux
2015-07-19 08:10:07 +01:00
Nicholas Marriott
96dcbe217b
Update tmux.vim from Ben Boeckel.
2015-07-19 08:07:55 +01:00
Thomas Adam
e45f42db29
Merge branch 'obsd-master'
2015-07-17 16:01:07 +01:00
nicm
bad8d0fd20
Do not call window_unzoom from window_destroy because it will try to add
...
a notification which will get confused because the reference count is
already zero and end up back in window_destroy and a double
free. Instead, just destroy the layouts directly. Noticed by Thomas
Adam.
2015-07-17 13:09:07 +00:00
Thomas Adam
b886393042
Merge branch 'obsd-master'
2015-07-17 10:01:09 +01:00
nicm
3192178f15
Initialize client fd to -1 as well, from Bobby Powers.
2015-07-17 06:53:47 +00:00
Nicholas Marriott
8c96e2a6d9
Implement osdep_get_name and osdep_get_cwd for AIX, from J Raynor.
2015-07-15 08:46:35 +01:00
Nicholas Marriott
5ffb869e1a
Merge branch 'master' of github.com:tmux/tmux
2015-07-14 08:15:05 +01:00
Nicholas Marriott
bed3069fd7
Add _LINUX_SOURCE_COMPAT on AIX.
2015-07-14 08:14:35 +01:00
Thomas Adam
dcc28434f4
Merge branch 'obsd-master'
2015-07-13 20:01:08 +01:00
nicm
8dcea2cc14
Reset G0/G1 state when resetting everything else with send-keys -R.
2015-07-13 18:45:18 +00:00
nicm
4e637b1b61
Ignore environment variables that are too long to send to the server.
2015-07-13 18:10:26 +00:00
Thomas Adam
07aef38591
Merge branch 'obsd-master'
2015-07-13 18:01:09 +01:00
nicm
e45d624df2
Fix line endings.
2015-07-13 15:51:31 +00:00
nicm
c7374c31c4
Initialize cwd fd to -1 so that we don't close fd 0 if the client is
...
destroyed before it is changed. Also allow ttyname() to fail. Fixes
problems when running out of file descriptors reported by Bruno Sutic.
2015-07-13 15:49:31 +00:00
nicm
81069f66f9
Add a format to show if client is a control client. From Bruno Sutic.
2015-07-13 15:37:26 +00:00
Thomas Adam
38d4d69639
Merge branch 'obsd-master'
2015-07-13 16:01:09 +01:00
nicm
6308c48efd
Add a -s flag to show-environment to output Bourne shell commands a la
...
ssh-agent. Mostly from Cam Hutchison with some changes by me.
2015-07-13 13:36:29 +00:00
nicm
cc768d77ec
Revert to marking lines as wrapped on newlines, fixes problems with
...
capturep -J.
2015-07-13 13:28:50 +00:00
Nicholas Marriott
73f9f0334c
Check for flock in libbsd for AIX, and remove some getopt.h includes. From J
...
Raynor.
2015-07-13 14:19:50 +01:00
Nicholas Marriott
28c33f67bc
Merge branch 'master' of github.com:tmux/tmux
2015-07-12 19:47:47 +01:00
Nicholas Marriott
235e0bd65a
Update imsg*.[ch] from OpenBSD, including bzero->memset.
2015-07-12 19:46:58 +01:00
Thomas Adam
9a0ce98c54
Merge branch 'obsd-master'
2015-07-06 16:01:10 +01:00
nicm
b298478435
Update environment with -E when attach-session used on an already
...
attached session or switch-client used on the current session. From Cam
Hutchison.
2015-07-06 14:24:57 +00:00
Thomas Adam
78723af99f
README: Clarify SYNCING is under the ISC
2015-06-28 12:01:19 +01:00
Nicholas Marriott
8b8a007e8e
Merge branch 'master' of github.com:tmux/tmux
2015-06-20 08:45:19 +01:00
Nicholas Marriott
8abcea18a2
Remove monitor-content options which have been removed, from Guy Hughes.
2015-06-20 08:43:55 +01:00
Thomas Adam
0ef3e28609
Merge branch 'obsd-master'
2015-06-19 02:01:10 +01:00
nicm
f557c7d8ca
Use the SRCDST define for usage.
2015-06-18 23:56:01 +00:00
nicm
b43b13faf9
Use xsnprintf.
2015-06-18 23:55:24 +00:00
nicm
164ba041c9
Remove a stray : and tweak paragraph.
2015-06-18 23:53:56 +00:00
Thomas Adam
86018a3947
Merge branch 'obsd-master'
2015-06-17 22:01:13 +01:00
nicm
85120b37ea
Change break-pane to take target and source panes (-t and -s) in line
...
with other commands, from Thomas Adam.
2015-06-17 19:56:08 +00:00
Thomas Adam
21a2ccc5f1
Merge branch 'obsd-master'
2015-06-17 20:01:12 +01:00
nicm
84f0622c85
Break cmdq_continue inner loop into a helper function.
2015-06-17 17:02:15 +00:00
Thomas Adam
a584e11d6b
Merge branch 'obsd-master'
2015-06-17 18:01:07 +01:00
nicm
0ff335961e
Move the shuffle code from new-window -a into a function and add a -a
...
flag for move-window too. From Thomas Adam.
2015-06-17 16:50:28 +00:00
nicm
021cdbe1c0
Use an explicit job state instead of avoid closing our side of the
...
socketpair and setting it to -1 to mark when the other side is
closed. This avoids closing it while the libevent bufferevent still has
it (it could try to add it to the polled set which some mechanisms don't
like). Fixes part a problem reported by Bruno Sutic.
2015-06-17 16:44:49 +00:00
Thomas Adam
9fdc3a069a
Merge branch 'obsd-master'
2015-06-15 14:01:09 +01:00
nicm
d96ab34019
Add window_activity format, from Thomas Adam based on a diff originally
...
from propos6 at gmail dot com.
2015-06-15 10:58:01 +00:00
Thomas Adam
37005d04a9
Merge branch 'obsd-master'
2015-06-14 12:01:10 +01:00
nicm
29c29e7717
Add a format for client PID (client_pid) and server PID (pid). Diff for
...
client_pid from Thomas Adam.
2015-06-14 10:07:44 +00:00
Thomas Adam
48a46e066e
Merge branch 'obsd-master'
2015-06-10 16:01:08 +01:00
Nicholas Marriott
ba665e24e3
Merge branch 'master' of github.com:tmux/tmux
2015-06-10 15:41:35 +01:00
Nicholas Marriott
dca084e703
Don't leak dotfd if fchdir fails. From ettl dot martin78 at gmail dot com.
2015-06-10 15:39:23 +01:00
nicm
bbc0898060
wp->tty is a char [] not a char * so it can't be NULL. From Thomas Adam.
2015-06-10 12:56:04 +00:00
Thomas Adam
0ff172fabf
Merge branch 'obsd-master'
2015-06-09 10:01:10 +01:00
nicm
a412dd616f
Fix loop comparison broken in last commit, from Thomas Adam.
2015-06-09 07:07:06 +00:00
Nicholas Marriott
02a848d77c
It isn't supposed to...
2015-06-08 09:46:14 +01:00
Thomas Adam
7acc4addb5
Merge branch 'obsd-master'
...
Conflicts:
client.c
tmux.1
tmux.c
2015-06-07 23:42:25 +01:00
nicm
c4e811e519
Add -E flag when attaching or switching client to bypass
...
update-environment, from Steven Lu.
2015-06-07 21:39:39 +00:00
Nicholas Marriott
a5c55e4393
Update TODO.
2015-06-07 08:36:03 +01:00
nicm
ed6c036ee3
Use ints for the calculations rather than u_char, they could end up
...
signed.
2015-06-05 22:50:27 +00:00
nicm
55b96a5bd5
Handle the RGB colour escape sequence (\033[38;2;<r>;<g>;<b>m and 48;2)
...
like xterm(1) does, by mapping to the nearest in the 256 colour palette.
2015-06-05 22:33:39 +00:00
nicm
1cb073d48e
Use fixed colour tables rather than generated and do a quick search for
...
exact match before doing the distance comparison.
2015-06-05 22:01:17 +00:00
nicm
641a9cd3f5
Similarly, for sessions use a callback to free rather than checking
...
every loop.
2015-06-05 18:18:32 +00:00
nicm
10e90ae01f
Change deref to the more sensible unref, and add a couple I missed before.
2015-06-05 18:06:30 +00:00
nicm
8c93b768e4
Instead of putting dead clients on a list and checking it every loop,
...
use event_once to queue a callback to deal with them. Also dead clients
with references would never actually be freed because the wrap-up
functions (the callback for stdin, or status_prompt_clear) would never
be called. So call them in server_client_lost.
2015-06-05 18:01:12 +00:00
nicm
b0782df8a6
Do not use the key variable uninitialized (in a debug log statement),
...
reported by jungleboogie0 at gmail dot com.
2015-06-05 15:10:13 +00:00
Nicholas Marriott
f7598b8a26
Only need *.ch in compat.
2015-06-05 12:44:15 +01:00
nicm
2f586905fc
Fix a warning.
2015-06-05 09:09:08 +00:00
nicm
4219939c10
Make it so that if a window or session target is prefixed with an =,
...
only an exact name or index match is accepted, no special character,
prefix match, or fnmatch.
2015-06-05 08:14:16 +00:00
nicm
6b2129696f
Move the nested check from client to server and compare the client tty
...
name to all the pane pty names instead of comparing socket paths. This
means that "new -d" will work without unsetting $TMUX.
2015-06-04 23:27:51 +00:00
jmc
dc0d34e137
tweak SYNOPSIS and usage();
2015-06-04 20:34:22 +00:00
Thomas Adam
83a70172a4
Merge branch 'obsd-master'
2015-06-04 16:01:07 +01:00
nicm
4a6c06d6a9
Make unsetting a global option restore it to the default. Diff lying
...
around for a while, I have forgotten who suggested it :-/.
2015-06-04 14:29:33 +00:00
Thomas Adam
02e348c069
Merge branch 'obsd-master'
2015-06-04 12:59:41 +01:00
nicm
a863834574
Add support for a single "marked pane". There is one marked pane in the
...
server at a time; it may be toggled or cleared with select-pane -m and
-M (the border is highlighted). A new target '~' or '{marked}' specifies
the marked pane to commands and it is the default target for the
swap-pane and join-pane -s flag (this makes them much simpler to use -
mark the source pane and then change to the target pane to run swapp or
joinp).
2015-06-04 11:43:51 +00:00
Nicholas Marriott
1de74e27e5
Spaces -> tabs.
2015-06-04 11:40:27 +01:00
Nicholas Marriott
d058e963fd
Update mailmap.
2015-06-04 11:36:44 +01:00
Thomas Adam
13808ccede
Merge branch 'obsd-master'
2015-06-04 11:17:39 +01:00
nicm
a3edfd9e84
teminal -> terminal, from Corey Farwell.
2015-06-04 09:42:29 +00:00
Nicholas Marriott
75b70be4a6
Merge branch 'master' of github.com:tmux/tmux
2015-06-04 10:38:04 +01:00
Nicholas Marriott
b67db455a8
Update TODO with some items from old SF tickets.
2015-06-04 10:37:39 +01:00
Thomas Adam
2c29b3e82c
SYNCING: Few tweaks
2015-06-04 10:35:40 +01:00
Thomas Adam
8fcac1b794
SYNCING: Update for GH
...
Explain the release process now that we're using GH.
2015-06-04 09:26:35 +01:00
Nicholas Marriott
75061cb45d
I no longer need to care about GCC 3.
2015-06-04 08:50:20 +01:00
Nicholas Marriott
20598dff25
Note version this happened.
2015-06-04 08:47:23 +01:00
Nicholas Marriott
0b22d574e0
Update FAQ for new behaviour.
2015-06-04 08:46:49 +01:00
Nicholas Marriott
1df39aa962
I don't think we should carry around scripts. I'm not too sure about examples/
...
at all, nobody is maintaining it...
2015-06-04 08:26:50 +01:00
Nicholas Marriott
9d80ad16f9
Remove old tools.
2015-06-04 08:25:39 +01:00
Nicholas Marriott
c0a790453c
Add a couple of presentations I wrote a few years ago. One for the ill-fated
...
AsiaBSDCon in 2011 (canceled due to Fukushima) and the other for LinuxTag 11 in
Berlin.
2015-06-04 08:23:40 +01:00
Nicholas Marriott
dbc5d7b331
Fix clone URL.
2015-06-04 01:27:47 +01:00
Nicholas Marriott
3ed03df23f
Remove this file.
2015-06-04 01:26:03 +01:00
Nicholas Marriott
32bc8f4dd4
HTML bits are now elsewhere.
2015-06-04 01:21:41 +01:00
Nicholas Marriott
d2b35e19cd
No more SF.
2015-06-04 00:44:22 +01:00
Nicholas Marriott
89131c3e90
No $Id$.
2015-06-04 00:38:01 +01:00
Nicholas Marriott
fc2fb0eb95
Update mailing list addresses.
2015-06-03 18:57:35 +01:00
Nicholas Marriott
dfd72f5250
-$Id$.
2015-06-03 18:42:36 +01:00
Nicholas Marriott
11ae6d16e5
$Id$ -> $OpenBSD$.
2015-06-03 18:35:44 +01:00
Nicholas Marriott
09bcbc57da
$Id$ -> $OpenBSD$.
2015-06-03 18:28:26 +01:00
Nicholas Marriott
1c3e1bae41
Remove $Id$.
2015-06-03 18:26:25 +01:00
Nicholas Marriott
3821ca4917
Update TODO.
2015-06-02 15:16:13 +01:00
Thomas Adam
7bf5d4b946
Merge branch 'obsd-master'
2015-06-01 16:01:19 +01:00
nicm
a3c6172495
Missing t at end of response, from Vincent Bernat.
2015-06-01 13:59:57 +00:00
Thomas Adam
b675e6b2d5
Merge branch 'obsd-master'
2015-06-01 12:01:17 +01:00
nicm
58b50fb543
Clear signal handlers before event_reinit as apparently it can otherwise
...
cause libevent to go strange.
2015-06-01 09:20:19 +00:00
Thomas Adam
7712e6f82b
Merge branch 'obsd-master'
2015-06-01 02:01:17 +01:00
deraadt
7e067cb9dc
does not need syslog.h
2015-05-31 23:27:06 +00:00
Thomas Adam
c39dfb17ae
Merge branch 'obsd-master'
2015-05-30 02:01:18 +01:00
nicm
2a8c2648f0
Don't use special strings if #() commands fail, just remove the format
...
(as if the command produced nothing). Makes constructions that can fail
like '#(test whatever && echo foo)' work as they did before.
2015-05-29 23:26:52 +00:00
nicm
74c755f2ab
Expand formats again inside #(), and free the temporaries.
2015-05-29 23:12:38 +00:00
nicm
a55e569af5
Use RB_MIN to get the lowest index for the current window when creating
...
grouped sessions, rather than using RB_ROOT.
2015-05-29 23:02:27 +00:00
Thomas Adam
beffdf6575
Merge branch 'obsd-master'
2015-05-27 16:01:22 +01:00
nicm
379400cfa6
Move the jobs output cache into the formats code so that #() work more
...
generally (for example, again working in set-titles-string).
2015-05-27 13:28:04 +00:00
Thomas Adam
f538f2ae9b
Merge branch 'obsd-master'
2015-05-20 10:01:19 +01:00
nicm
7140cce7f3
Return empty string if format is empty rather than attempting to
...
allocate zero bytes.
2015-05-20 06:39:02 +00:00
n6tadam
1ec93570bf
Merge branch 'obsd-master'
2015-05-19 12:01:20 +01:00
nicm
2c53b23d59
In terminfo, sometimes cvvis implies cnorm and sometimes it doesn't, so
...
don't assume it does. Fixes missing cursor with emacs-in-tmux-in-tmux.
2015-05-19 08:48:37 +00:00
Thomas Adam
4123d69b51
README.md: github-specific readme
...
This is the same as the current README, but allows for markdown to be used.
We could switch this over to using the README file at some point.
2015-05-17 14:52:58 +01:00
Thomas Adam
35d21be19a
TRAVIS-CI: correct path to configure
...
Specify path to ./configure
2015-05-17 14:39:04 +01:00
Thomas Adam
beb0c01c27
Hook repo to Travis-CI
...
From now on, all pushes to master will result in tmux compiling against a
linux-based distribution (Debian). This will make it easier for automatic
merges between OpenBSD and portable to be tested, without the need for so
much manual syncing.
Any build failures will be reported to me, and fixed accordingly.
2015-05-17 14:36:34 +01:00
Thomas Adam
00471dc783
Merge branch 'obsd-master'
2015-05-13 09:44:11 +01:00
nicm
3f4ee98162
To replace c0-*, add a high watermark to the pty event, and also backoff
...
when the any of the ttys the pane is going to write to has buffered
enough data.
2015-05-12 22:40:38 +00:00
nicm
37ae8a9e0f
Tidy blank lines when outputting server info.
2015-05-12 19:36:08 +00:00
nicm
ec34439f9c
Add a session_alerts format which is a list of all the alerts in the
...
current session in symbolic form (something like "0!,4~,5!"). Use this
in the default set-titles-string. Prompted by a request from Jan ONDREJ.
2015-05-12 15:29:29 +00:00
nicm
e958db09a7
Add bell-action "other" to pass through bells in all windows except the
...
current, suggested by Jan ONDREJ.
2015-05-12 15:27:46 +00:00
nicm
b833fabeb2
Left the c0-* options behind in the table.
2015-05-11 10:58:22 +00:00
nicm
44364d7112
Remove the c0-* options which never really worked satisfactorily. Going
...
to try something else...
2015-05-11 10:10:16 +00:00
Thomas Adam
4165ed96f8
Add back __CYGWIN__ block
...
This went missing during the merge from OpenBSD.
2015-05-09 20:03:24 +01:00
Thomas Adam
c11f628342
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2015-05-09 12:53:53 +01:00
Thomas Adam
504b97b6a4
Merge branch 'obsd-master'
...
Conflicts:
tmux.h
2015-05-09 12:52:38 +01:00
nicm
92faa2eaeb
Put the tty structs together, and tabify.
2015-05-08 16:48:12 +00:00
nicm
592cb73a69
grid_marker_cell is no longer used.
2015-05-08 16:44:03 +00:00
nicm
74b2c40b1b
mode_key_entry can go into mode-key.c; also a few spaces->tabs.
2015-05-08 16:33:29 +00:00
nicm
a538141a72
window_choose_mode_item can move into window-choose.c.
2015-05-08 16:23:34 +00:00
nicm
c4a4bd6ac5
Move input parser structs into input.c (removing fairly useless
...
saved_cursor_[xy] formats as a side-effect).
2015-05-08 16:18:04 +00:00
nicm
879de25583
Remove some stuff that accidentally ended up here from portable, and
...
remove a little-used debug function.
2015-05-08 15:56:49 +00:00
nicm
d174b9cfcc
Update environment when switching sessions as well as attaching, from Si
...
Beaumont.
2015-05-07 14:07:16 +00:00
nicm
8e9b6e0948
Style spacing nits.
2015-05-07 11:42:56 +00:00
Nicholas Marriott
63b7a031a5
queue.h should come from compat.h.
2015-05-07 11:43:52 +01:00
nicm
1282bb81fe
array.h can be local to window-choose.c now.
2015-05-07 08:08:54 +00:00
nicm
7becf326e3
Use a TAILQ not array for find-window.
2015-05-07 07:59:52 +00:00
nicm
73c871ba0a
Simplify environ_push so it doesn't need the ARRAY_* functions.
2015-05-07 07:35:31 +00:00
nicm
b6be03f01a
If status line is at the top, the offset needs to be adjusted when
...
drawing pane numbers. Based on a diff from John O'Meara.
2015-05-07 07:16:14 +00:00
nicm
0b39e6427f
Remove ARRAY_* from history and expand completion to complete a) layout
...
names and b) targets beginning with -t or -s.
2015-05-06 23:56:46 +00:00
Thomas Adam
6525ca5158
Start working on 2.1
2015-05-07 00:00:44 +01:00
Thomas Adam
e362d42dc6
CHANGES for tmux 2.0
2015-05-07 00:00:44 +01:00
Thomas Adam
f10d3675f8
Merge branch 'obsd-master'
2015-05-06 10:03:52 +01:00
nicm
31b1ab4852
Add a format window_linked which is 1 if a window has been linked
...
multiple times, also remove the default space in window_flags and use a
conditional to add it in window-status-format (this means additional
flags can be added in the option without extra spaces). From Thomas Adam
with tweaks by me.
2015-05-06 08:35:39 +00:00
nicm
33a585c47f
Turn cursor off during redraw, pointed out by George Nachman.
2015-05-06 07:52:06 +00:00
nicm
672df72b71
Use the right index when expanding/collapsing tree, from Thomas Adam.
2015-05-04 13:04:10 +00:00
Thomas Adam
c0cf4843e5
Merge branch 'obsd-master'
2015-04-29 18:42:12 +01:00
nicm
69b8f100b7
Do not complain when directions fail.
2015-04-29 16:26:17 +00:00
nicm
7382ba82c5
If default-terminal is set to "screen" or "screen-*", emulate screen's
...
historical (incorrect) behaviour for SGR 3 and send smso
(standout). Previously, we would send sitm (italics) if the terminal
outside had it and smso otherwise. This was acceptably until recently
because xterm's terminfo entry lacked sitm, so most users got smso.
People who want italics should set default-terminal to the forthcoming
"tmux" entry (and be prepared to deal with it being missing on older
hosts).
As a side-effect this changes default-terminal to be a server rather
than a session option.
suggested by and ok naddy
2015-04-29 15:59:08 +00:00
Nicholas Marriott
8794562a85
Add tmux4.png.
2015-04-28 16:04:07 +01:00
Nicholas Marriott
31ab5caa35
Renumber screenshots.
2015-04-28 15:34:09 +01:00
Nicholas Marriott
1ed5326f5a
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2015-04-28 15:18:53 +01:00
Nicholas Marriott
ab5f9ab55b
Update two of the screenshots.
2015-04-28 15:12:45 +01:00
Thomas Adam
dc2adc6bc1
Merge branch 'obsd-master'
2015-04-28 14:57:15 +01:00
Nicholas Marriott
7981e653d8
But this does work.
2015-04-28 14:01:03 +01:00
Nicholas Marriott
bc9198072b
Upload all the files.
2015-04-28 13:58:17 +01:00
Nicholas Marriott
e88c48ce0e
This doesn't work.
2015-04-28 13:58:00 +01:00
Nicholas Marriott
f54f3e2abe
Add logo to www, also centre the page.
2015-04-28 13:47:54 +01:00
Nicholas Marriott
bb210ce773
Add tmux logo, createed by Jason Long.
2015-04-28 13:46:47 +01:00
nicm
e36fab2f70
If looking for an index, don't fill in window when given a session.
2015-04-28 12:09:24 +00:00
nicm
14d8cd6445
Do not do a search for the tty path if there isn't one.
2015-04-28 11:57:20 +00:00
nicm
094a047ddf
If can't find pane as a pane, try as a window; likewise if can't find
...
window as a session.
2015-04-28 11:33:17 +00:00
nicm
771744426e
Add select-layout -o to undo the last layout change (apply the previously
...
set layout).
2015-04-28 10:43:13 +00:00
Nicholas Marriott
3eb40a520a
No paths.h on Solaris.
2015-04-28 10:36:17 +01:00
Thomas Adam
7d98c51805
Merge branch 'obsd-master'
2015-04-28 09:10:51 +01:00
nicm
c2bc84aa4d
Do not include unattached clients when trying to find one for target.
2015-04-27 22:58:58 +00:00
nicm
b7777e7ef3
Reset cfg_ncauses to 0 as well or we could allocate the wrong size if
...
called again.
2015-04-27 22:50:35 +00:00
nicm
91f6347485
Assign to the right variable when comparing clients.
2015-04-27 22:42:10 +00:00
Thomas Adam
94a8ef1cae
Merge branch 'obsd-master'
...
Conflicts:
Makefile
tmux.1
2015-04-27 21:21:55 +01:00
nicm
95195f5258
Rewrite of the target resolution internals to be simpler and more
...
consistent but with much less duplication, but keeping the same internal
API. Also adds more readable aliases for some of the special tokens used
in targets (eg "{start}" instead of "^"). Some behaviours may have
changed, for example prefix matches now happen before fnmatch.
2015-04-27 16:25:57 +00:00
nicm
a70762c9b5
If the requested pane is already active, do not unzoom the window (or do
...
anything else). Prevents mouse clicking when zoomed causing unzoom,
reported by Jose Antonio Delgado Alfonso (with a different fix).
2015-04-27 07:49:36 +00:00
nicm
5bd5c9c84e
Remove panes from layout if spawning them fails, reported by Anthony J
...
Bentley.
2015-04-26 20:25:20 +00:00
Thomas Adam
72e9ebf2ec
Merge branch 'obsd-master'
2015-04-25 20:45:02 +00:00
nicm
05e7fbd60f
Get rid of window_choose_list type.
2015-04-25 18:56:05 +00:00
nicm
1d1208e335
Fix some char* -> char *.
2015-04-25 18:49:01 +00:00
nicm
a568b9cadc
Use a char **,u_int pair for cfg_causes.
2015-04-25 18:47:01 +00:00
nicm
07dfdb974d
Make message log a TAILQ.
2015-04-25 18:33:59 +00:00
nicm
6dbd63ba4f
Move the functions to convert ids from strings into session.c and window.c.
2015-04-25 18:09:28 +00:00
nicm
d23af6cca0
Explicitly cancel mouse "button" mode, this happens implicitly with some
...
one of the other things we send with xterm, but not with urxvt. Reported
by sthen@.
2015-04-25 15:57:48 +00:00
Thomas Adam
56e1132db4
Merge branch 'obsd-master'
2015-04-25 10:02:46 +00:00
nicm
aeedb464a6
Convert clients list into a TAILQ.
2015-04-24 23:17:11 +00:00
nicm
583b4ab72b
Set working directory for run-shell and if-shell.
2015-04-24 22:19:36 +00:00
nicm
5a2d0533a8
Allow choice options (multiple states) to be toggled between states 0
...
and 1.
2015-04-24 21:38:18 +00:00
nicm
a5a873dccc
Set up signal handler earlier so that we don't get zombies, reported by
...
sobrado@.
2015-04-24 20:58:44 +00:00
deraadt
ab73997cc5
use reallocarray instead of calloc; avoid the zero before infill
...
ok nicm
2015-04-23 07:45:50 +00:00
nicm
9a453dd354
Make session_has return a flag, returning the first winlink found is a
...
recipe for errors.
2015-04-22 15:32:33 +00:00
nicm
8d66f4fba4
Change the windows array into an RB tree and fix some places where we
...
were only looking at the first winlink for a window in a session.
2015-04-22 15:30:11 +00:00
nicm
89e80cabd5
window_index is only used in one place (window_destroy) so inline it there.
2015-04-22 15:05:03 +00:00
Thomas Adam
0a88377086
Merge branch 'obsd-master'
2015-04-22 10:05:54 +01:00
nicm
3909aff06a
Look up indexes as number before name, makes more sense if windows are
...
named starting with numbers. From Thomas Adam.
2015-04-21 22:42:27 +00:00
nicm
69f292a90e
Always format real layout even when zoomed.
2015-04-21 22:38:49 +00:00
nicm
93b2871cab
Do not die on USR1 if any of the socket parent directories are
...
missing. Reported by Robin Powell.
2015-04-21 22:32:40 +00:00
nicm
7a72eff4a4
Simplify error messages when socket connect fails, suggested by "Karthik K".
2015-04-21 22:21:41 +00:00
nicm
d16b640fe8
The free callback could end up being fired before the done callback
...
(happens on Cygwin), so use a reference count instead of a single
flag. SF bug 188 reported by "iceboy".
2015-04-21 21:31:02 +00:00
nicm
0e7219d437
Fix moving windows to nonexistent indexes when renumber-windows is
...
off. From Thomas Adam, reported by Daniel Levai and Theo Buehler.
2015-04-21 21:24:49 +00:00
nicm
d1337053b6
Bind mouse dragging so that it is passed through to applications if they
...
want it rather than entering copy mode.
2015-04-21 15:34:32 +00:00
nicm
4cf4302962
Don't eat the mouse event that triggers a drag end because we may want
...
to pass it on to application inside the pane.
2015-04-21 15:21:41 +00:00
nicm
1f404f6a23
Put mouse_any_flag back, don't know where it went to (still in man page).
2015-04-21 15:18:38 +00:00
nicm
bc3786ece9
Pass mouse events through to commands for if-shell.
2015-04-21 15:18:06 +00:00
nicm
0610f44380
cmd_mouse_pane can return NULL, check for that.
2015-04-21 15:16:06 +00:00
nicm
07d93db427
Remove unused-but-set variables, from Thomas Adam.
2015-04-20 15:41:32 +00:00
nicm
bded743706
Support for multiple key tables to commands to be bound to sequences of
...
keys. The default key bindings become the "prefix" table and -n the
"root" table. Keys may be bound in new tables with bind -T and
switch-client -T used to specify the table in which the next key should
be looked up. Based on a diff from Keith Amling.
2015-04-20 15:34:56 +00:00
nicm
3497843f02
Style nit - unnecessary brackets.
2015-04-20 14:48:55 +00:00
Thomas Adam
b25dc423b0
Merge branch 'obsd-master'
2015-04-20 15:44:27 +01:00
nicm
0fd9a97202
Make jump-to-backward/jump-to-forward repeatable with
...
jump-reverse/jump-again, from Jacob Niehus.
2015-04-20 09:39:21 +00:00
nicm
6f587570ed
Use a more sensible buffer size for flags string.
2015-04-20 07:50:49 +00:00
Nicholas Marriott
acb8248ba6
+.
2015-04-20 08:46:21 +01:00
jmc
8101f1ef16
tweak previous;
2015-04-19 22:10:30 +00:00
nicm
bbac2aee1f
Honour renumber-windows when unlinking a window, from Thomas Adam.
2015-04-19 21:46:52 +00:00
nicm
bf635e7741
Rewrite of tmux mouse support which was a mess. Instead of having
...
options for "mouse-this" and "mouse-that", mouse events may be bound as
keys and there is one option "mouse" that turns on mouse support
entirely (set -g mouse on).
See the new MOUSE SUPPORT section of the man page for description of the
key names and new flags (-t= to specify the pane or window under mouse
as a target, and send-keys -M to pass through a mouse event).
The default builtin bindings for the mouse are:
bind -n MouseDown1Pane select-pane -t=; send-keys -M
bind -n MouseDown1Status select-window -t=
bind -n MouseDrag1Pane copy-mode -M
bind -n MouseDrag1Border resize-pane -M
To get the effect of turning mode-mouse off, do:
unbind -n MouseDrag1Pane
unbind -temacs-copy MouseDrag1Pane
The old mouse options are now gone, set-option -q may be used to
suppress warnings if mixing configuration files.
2015-04-19 21:34:21 +00:00
nicm
ee123c2489
Support setting the default window and pane background colours (window
...
and active pane via window-style and window-active-style options, an
individual pane by a new select-pane -P flag). From J Raynor.
2015-04-19 21:05:27 +00:00
Nicholas Marriott
24c8f523eb
+.
2015-04-19 19:40:12 +01:00
Nicholas Marriott
aaad44bbe7
+.
2015-04-19 19:34:58 +01:00
Thomas Adam
370cf75458
Merge branch 'obsd-master'
2015-04-19 14:44:56 +01:00
nicm
4a7587931c
Fix some issues in bright colour handling. Bold background doesn't exist
...
so there is no reason for tty_check_bg to mess with the BRIGHT flag at
all, ever. Also use aixterm colours for 256-to-16 translation if the
terminal supports them. And there is no reason for tty_colours_bg to
worry about whether the terminal supports them - tty_check_bg has
already taken care of it.
2015-04-15 22:34:46 +00:00
nicm
eec27f9257
Use tty_term_flag not _has for flags, also fix a typo (position not
...
permission).
2015-04-15 22:10:13 +00:00
nicm
f922920609
Fix setting old-style window -fg/-bg/-attr options that aren't global.
2015-04-15 15:44:40 +00:00
nicm
0cd55eb1e7
Add a -x flag to copy-selection, append-selection and start-named-buffer
...
to prevent it exiting copy mode after copying. From J Raynor with a few
tweaks by me.
2015-04-10 16:00:08 +00:00
nicm
009a5e4213
in the case -> in this case.
2015-04-10 07:23:14 +00:00
nicm
6920be311b
When replacing, don't free the old paste until after the new one's name
...
has been copied. Fixes a use-after-free in window-copy.c. Bug reported
by J Raynor (who also provided a different fix).
2015-04-07 13:06:22 +00:00
nicm
3aa72b42b2
Add a helper function to convert time, and add session_activity formats
...
(the latter from Takatoshi Matsumoto).
2015-03-31 17:58:36 +00:00
nicm
02df86079b
Fix some format specifier nits, from Ben Boeckel.
2015-03-31 17:45:10 +00:00
Nicholas Marriott
5e956f1148
Make place const to avoid a warning, from Ben Boeckel.
2015-03-31 09:26:37 +01:00
nicm
cd9ccbc1e9
set-titles-string now uses formats, not the status bits (so no #() for
...
now). Reported by landry.
2015-03-11 08:17:37 +00:00
Nicholas Marriott
7536d690fd
Explicitly look for cpp and egrep to avoid AC_EGREP_CPP messing up output.
2015-03-01 21:46:05 +00:00
Thomas Adam
b8aec17af1
Merge branch 'obsd-master'
2015-02-24 23:05:08 +00:00
Nicholas Marriott
f4196138ce
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2015-02-18 22:36:53 +00:00
Nicholas Marriott
fe1aa9299e
Merge branch 'tmp'
2015-02-18 22:36:31 +00:00
nicm
568f5ef3c6
When given an invalid style, don't set the option to the default. Fix
...
from J Raynor. Also make style_parse not alter the grid_cell when it
fails.
2015-02-18 15:32:37 +00:00
Nicholas Marriott
bafe6f5a7c
Remove LocalWords.
2015-02-16 17:19:37 +00:00
Thomas Adam
be6dc83277
Revert "Add -Wno-format-nonliteral to Makefile.am"
...
Oh well. This will hide legitimate programming errors, which I knew, so I'll
just have to accept that when looking through the compiler output.
This reverts commit c2bbaab2ac .
2015-02-15 21:19:51 +00:00
Thomas Adam
c2bbaab2ac
Add -Wno-format-nonliteral to Makefile.am
...
Shut GCC up about non-literal arguments to functions which make use of
placeholder expansions (printf, strftime, etc.)
2015-02-15 20:07:48 +00:00
Thomas Adam
ffb83d23e1
Merge branch 'obsd-master'
...
Conflicts:
Makefile
2015-02-14 23:54:07 +00:00
nicm
4d05d88304
Take a reference to prevent cmdq being freed during the command. Can
...
happen to cfg_cmd_q (possibly others) when source-file recurses into
cmdq_continue. Fixes bug reported by Ismail Donmez and Theo Buehler.
2015-02-12 09:56:19 +00:00
nicm
9ae2284726
Merge clock-mode command into copy-mode.
2015-02-09 23:18:19 +00:00
Nicholas Marriott
b4750e4c35
Add a note about cmd_find_*.
2015-02-09 13:12:25 +00:00
nicm
1b2c62afe9
Entries in the window list can be NULL, prompted by a crash seen by Ben
...
Boeckel.
2015-02-09 12:47:18 +00:00
nicm
f28032b031
Check for \0 in the right place, from J Raynor.
2015-02-07 23:43:41 +00:00
nicm
52756fb3c5
Use the same time for both calls to format_expand_time.
2015-02-06 23:28:52 +00:00
Nicholas Marriott
cb018a4212
No paths.h on Solaris.
2015-02-06 23:24:44 +00:00
Thomas Adam
833fe5bdee
Merge branch 'obsd-master'
...
Conflicts:
cmd-pipe-pane.c
2015-02-06 19:07:43 +00:00
nicm
313f2263f8
status_replace can now become local to status.c and it no longer needs
...
the jobsflag argument. While here there is no need to repeat work that
format_defaults already does.
2015-02-06 17:21:08 +00:00
nicm
8d94bb67ab
Use formats not status_replace for set-titles-string.
2015-02-06 17:17:12 +00:00
nicm
03758a50dc
Add format_expand_time and use it instead of status_replace where
...
command execution is not needed.
2015-02-06 17:11:39 +00:00
nicm
83a8e1fd20
Move pane border options to window options rather than session, from Marc Finet.
2015-02-06 15:09:34 +00:00
nicm
90bf7026f6
Reset bracket paste mode on detach.
2015-02-05 11:46:57 +00:00
nicm
f1e68bfdd2
Remove a couple of now-unused variables.
2015-02-05 10:32:39 +00:00
nicm
4946f74253
Wrap all the individual format_* calls in a single format_defaults
...
functions.
2015-02-05 10:29:43 +00:00
nicm
e5d9ceff18
There is no need to save the guard state because the function checks it
...
again anyway.
2015-02-05 10:26:29 +00:00
nicm
c9642ee213
Remove two unused arguments from status_replace.
2015-02-01 23:43:23 +00:00
nicm
4e03239d1f
Tidy up detach-client a bit.
2015-01-30 15:57:30 +00:00
nicm
144025e3e6
Focus off needs to be sent with tty_raw, reported by Geoff Nixon.
2015-01-30 12:33:03 +00:00
Nicholas Marriott
93c3fb78a3
has-session is now part of new-session.
2015-01-29 12:56:30 +00:00
Nicholas Marriott
51233d8b2a
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2015-01-25 20:31:22 +00:00
nicm
adcc71d4d5
Don't leak the individual strings when copying environment.
2015-01-25 16:53:46 +00:00
Nicholas Marriott
68429cd0d3
Spaces to tabs.
2015-01-25 16:51:49 +00:00
sthen
c38f0d85da
In options-table.c r1.51 an extra space was added to the default status-right,
...
overrunning status-right-length with long window titles. Allow for the extra
space so the last digit of the year isn't lost. ok nicm@
2015-01-21 12:20:56 +00:00
sthen
f9c7f9a17a
typo in comment ;) ok nicm
2015-01-20 10:57:10 +00:00
nicm
16bdd970dc
Support blinking cursor mode, both the xterm CSI ?12 h/l and (the
...
backwards) screen CSI 34 h/l. From Guanpeng Xu.
2015-01-20 08:18:04 +00:00
nicm
d451502676
Make a tmux-%u directory under TMUX_TMPDIR, like TMPDIR.
2015-01-19 09:58:34 +00:00
Thomas Adam
df6488a470
Merge branch 'obsd-master'
2015-01-16 19:17:31 +00:00
deraadt
776eef49d8
Replace <sys/param.h> with <limits.h> and other less dirty headers where
...
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
2015-01-16 06:40:13 +00:00
nicm
6e764fb53e
Remove an unnecessary variable and shorten a line.
2015-01-15 13:43:13 +00:00
nicm
86207ee676
Shorten some long lines.
2015-01-15 13:35:13 +00:00
Nicholas Marriott
66e8811c64
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2015-01-12 22:46:44 +00:00
Nicholas Marriott
a9644c1f8b
We do not need to add /usr/local to CPPFLAGS; if configure managed to pass then
...
the dependencies must already be in the search path. Reported by Romain Naour.
2015-01-12 22:46:06 +00:00
deraadt
8a8e2eb04a
correctly use HOST_NAME_MAX.
...
Some notes:
POSIX HOST_NAME_MAX doesn't include the NUL.
POSIX LOGIN_NAME_MAX and TTY_NAME_MAX do include the NUL.
BSD MAXHOSTNAMELEN includes the NUL. Actually, most of the historical
BSD MAX* defines did include the NUL, except for the historical
mistake of utmp fields without NULs in the string, which directly led
to strncpy.. just showing how error prone this kind of accounting is.
CSRG did right. Somehow POSIX missed the memo on the concepts of
carefulness and consistancy, and we are still paying the price when
people trip over this. Of course, glibc is even more amazing (that is
a hint to blackhats)
ok guenther
2015-01-11 04:14:40 +00:00
Thomas Adam
da72a0b7a8
Merge branch 'obsd-master'
2015-01-10 21:38:50 +00:00
nicm
aae2b7aa89
Revert to r1.16 since this is still clearly broken and I can't see how
...
right now.
2015-01-06 21:14:42 +00:00
nicm
fee096a406
Unzoom before kill, from Thomas Adam.
2015-01-06 09:12:53 +00:00
nicm
be0ad01b7c
Add missing default bindings, from Theo Buehler.
2015-01-06 09:12:02 +00:00
Nicholas Marriott
daea0e4fff
Need param.h, from Ismail Donmez.
2014-12-31 10:00:47 +00:00
Nicholas Marriott
cc1bc9717c
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-12-21 15:47:21 +00:00
Nicholas Marriott
9cb5afe114
t_kP is the same as PageUp, so no need for it, from Daniel Hahler.
2014-12-21 15:46:43 +00:00
Thomas Adam
2a9a75a569
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-12-19 19:23:08 +00:00
Thomas Adam
5f8138faf5
Merge branch 'obsd-master'
...
Conflicts:
format.c
2014-12-19 19:22:19 +00:00
nicm
160e3e2be3
Notify on zoom/unzoom, from George Nachmann.
2014-12-15 10:04:18 +00:00
nicm
d88c381ce9
Only redraw affected lines when selection changes with mouse. From
...
Michael Graczyk.
2014-12-15 10:02:55 +00:00
Nicholas Marriott
f495b150fa
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-12-15 09:24:15 +00:00
Nicholas Marriott
3771ab7c67
Add missing va_end, from Thomas Jarosch.
2014-12-15 09:23:34 +00:00
nicm
7a0c94b28a
Add pane_dead_status for exit status of dead panes.
2014-12-09 19:23:35 +00:00
Nicholas Marriott
32f1ceddc9
Tweak ordering and whitespace.
2014-12-06 00:07:55 +00:00
Thomas Adam
ccbe2545d9
Merge branch 'obsd-master'
2014-12-03 08:41:08 +00:00
nicm
54ca7b230d
Add -F to if-shell to allow it to be used to check for format or option
...
values rather than executing a command.
2014-12-02 23:39:02 +00:00
nicm
575fd1e322
Permit option values to be used in formats.
2014-12-02 23:19:45 +00:00
nicm
e52d791212
Another fix for insertion from Balazs Kezes. On insertion, size the line
...
just enough for the inserted characters.
2014-12-01 22:22:14 +00:00
nicm
c8bf8ee931
Check ZOOMED flag on window.
2014-12-01 14:30:18 +00:00
nicm
c403bfc894
Remove dead code, from Thomas Adam.
2014-11-30 08:03:29 +00:00
millert
a3612a5472
Prefer setvbuf() to setlinebuf() for portability; ok deraadt@
2014-11-26 18:34:51 +00:00
Thomas Adam
3e8efcc555
Merge branch 'obsd-master'
2014-11-19 09:22:03 +00:00
nicm
e0929262db
Label windows which are smaller than expected with a reason.
2014-11-14 02:19:47 +00:00
nicm
7cc4706646
Restore change in r1.17 but add checks to prevent the line length
...
overflowing, from Balazs Kezes.
2014-11-12 22:59:45 +00:00
nicm
d37f266524
Add -b to splitw like joinw, from Felix Rosencrantz.
2014-11-12 22:57:06 +00:00
Thomas Adam
bd803e82e9
Merge branch 'obsd-master'
2014-11-12 21:58:05 +00:00
nicm
f9308bc244
Don't let force-width or force-height be < PANE_MINIMUM.
2014-11-12 16:00:03 +00:00
nicm
7697f5aa8f
Revert r1.17 as it breaks inserting in some cases.
2014-11-10 19:53:32 +00:00
nicm
4429941668
Expand formats in copy-pipe command, suggested by Suraj N Kurapati.
2014-11-09 15:13:01 +00:00
Thomas Adam
fc05bf255a
Merge branch 'obsd-master'
2014-11-09 00:15:51 +00:00
nicm
8f1302282b
Two improvements to reflow from Balazs Kezes:
...
- Don't extend the line to full width on insert/delete character which
means leaves extra spaces when reflowing.
- Only mark a line wrapped when the cursor actually goes off the end,
not on newlines which can be used for positioning.
2014-11-08 12:58:31 +00:00
nicm
c6129f9c09
Empty strings should be false too for #{?}, from Marc Finet.
2014-11-08 12:50:38 +00:00
Nicholas Marriott
747cab4281
No need for $Id$ now.
2014-11-08 12:27:43 +00:00
nicm
3c12b477d3
V should be vi not emacs, also sort. From Theo Buehler.
2014-11-07 12:28:28 +00:00
Nicholas Marriott
d2c9168954
+.
2014-11-06 23:30:02 +00:00
Nicholas Marriott
218b181985
Use KERN_PROC_CWD if supported, from Tiwei Bie.
2014-11-06 14:00:56 +00:00
nicm
7445d303e0
Wrap when copy mode is used for output, from Balazs Kezes.
2014-11-06 10:56:44 +00:00
Nicholas Marriott
6ca8c58462
Use -a for terminal-overrides from Daniel Hahler.
2014-11-06 10:30:05 +00:00
nicm
e4bf1e5128
Add V for select line with vi(1) keys. From Juho Pohjala.
2014-11-06 09:17:25 +00:00
nicm
79f52825b5
Tidy up mode-mouse check.
2014-11-05 23:25:02 +00:00
nicm
d24c9d7d3e
Do not put a space between status-left/status-right and the window list,
...
instead move the space into the defaults for the options (so status-left
now defaults to "[#S] ". From Balazs Kezes.
2014-11-05 23:15:11 +00:00
Thomas Adam
35ffd093d7
Merge branch 'obsd-master'
...
Conflicts:
Makefile
cmd-link-window.c
cmd-unlink-window.c
2014-10-29 12:51:21 +00:00
nicm
10a9440055
Merge linkw and movew which are virtually identical.
2014-10-27 22:40:29 +00:00
nicm
b496b1fe11
Move cfg_causes local into cfg.c and remove struct causelist.
2014-10-27 22:23:47 +00:00
nicm
428b51e031
Add pane_input_off format, from Anish R Athalye.
2014-10-25 08:47:04 +00:00
nicm
abfb9656ef
Fix some spacing nits.
2014-10-22 23:18:53 +00:00
nicm
68cb1c0e6b
Merge unlink-window into kill-window.
2014-10-22 23:11:41 +00:00
nicm
a02c2e55c0
Only redraw pane when it has actually changed.
2014-10-21 22:22:04 +00:00
nicm
85671a5bed
Save next item after firing command in case it has added to the queue.
2014-10-21 22:06:46 +00:00
Nicholas Marriott
201036ad80
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-10-21 12:35:58 +01:00
Nicholas Marriott
65257b8e9b
OS X lacks HOST_NAME_MAX, reported by Christian Ebert.
2014-10-21 11:00:16 +01:00
Thomas Adam
696b5a628f
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-10-21 07:12:18 +01:00
Thomas Adam
562af864bd
Merge branch 'obsd-master'
...
Conflicts:
Makefile
cmd-list-commands.c
cmd-suspend-client.c
job.c
tmux.h
xmalloc.c
2014-10-21 07:11:44 +01:00
nicm
0a1a88d63c
Better format for printf format attributes.
2014-10-20 23:57:13 +00:00
nicm
4c42381410
Move template defines back into .c files.
2014-10-20 23:35:28 +00:00
nicm
900f6fc17e
Tidy up some includes.
2014-10-20 23:27:14 +00:00
nicm
30bacf6f30
Move suspend-client code into detach-client.
2014-10-20 23:01:51 +00:00
nicm
8a5ceac3a9
Argh, meant to remove this file...
2014-10-20 22:45:37 +00:00
nicm
f5bc85591a
Move list-commands into list-keys.
2014-10-20 22:44:30 +00:00
nicm
7afe417a60
Missed a couple of cmd_entry struct members from previous.
2014-10-20 22:34:31 +00:00
nicm
45dfc5a074
Instead of setting up the default keys by building the key struct
...
directly with a helper function in the cmd_entry, include a table of
bind-key commands and pass them through the command parser and a
temporary cmd_q.
As well as being smaller, this will allow default bindings to be command
sequences which will probably be needed soon.
2014-10-20 22:29:25 +00:00
nicm
f0b69c7711
Fix description of Ss and Se.
2014-10-18 20:28:19 +00:00
Thomas Adam
e44bdcce4c
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-10-16 16:52:49 +01:00
Thomas Adam
2e8f6805eb
OSdep: Update for xrealloc() change
...
This updates the code for xrealloc() which now only takes two parameters.
2014-10-16 16:50:23 +01:00
Thomas Adam
a77355b6bf
Merge branch 'obsd-master'
2014-10-16 16:46:31 +01:00
nicm
a27ba6e380
Add xreallocarray and remove nmemb argument from xrealloc.
2014-10-08 17:35:58 +00:00
nicm
77efcf8bdd
Use xrealloc(NULL, n, m) instead of xmalloc(n * m) to get overflow
...
check.
2014-10-08 17:14:04 +00:00
nicm
6610e89689
Top function key is F12 now.
2014-10-02 14:21:06 +00:00
nicm
d306bbe11e
Take account of window-status-separator when checking window position,
...
based on diff from Balazs Kezes.
2014-10-02 10:39:43 +00:00
nicm
c011446e78
Update status when pane selected with mouse, from Balazs Kezes.
2014-10-02 09:31:30 +00:00
Nicholas Marriott
b6aef2490f
Ignore ENXIO on Solaris as well, from Peter Schow.
2014-10-02 09:47:00 +01:00
nicm
2f19df09b1
Copy ACS characters as UTF-8, from Balazs Kezes.
2014-10-02 08:36:26 +00:00
Nicholas Marriott
931c17ed4f
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-10-02 09:29:48 +01:00
Nicholas Marriott
24d9dc518d
Fix osdep_get_cwd on Solaris 11, from J Raynor.
2014-10-02 09:25:15 +01:00
nicm
045d0c3b9f
Call waitpid on SIGCHLD even if client not attached, it is possible (on
...
very slow platforms) for the first daemon() child to still be running
when client_attached is set so we end up with a zombie. From J Raynor.
2014-10-01 23:23:19 +00:00
nicm
a54b0055f6
Support using pane id as part of session or window specifier (so %1
...
means session-of-%1 or window-of-%1) and window id as part of session
(so @1 means session-of-@1).
2014-09-25 12:51:40 +00:00
nicm
304f86cdbb
Support ! for last pane.
2014-09-25 12:45:35 +00:00
Thomas Adam
2874a431c0
Merge branch 'obsd-master'
2014-09-25 11:29:54 +01:00
Nicholas Marriott
5e7f1b9f0a
Don't close random file descriptor on error, from J Raynor.
2014-09-25 10:53:29 +01:00
Nicholas Marriott
16670410ca
I broke last change, fix so it works, from J Raynor.
2014-09-23 10:50:11 +01:00
Nicholas Marriott
054a825ee2
cdefs.h -> types.h.
2014-09-23 10:46:46 +01:00
Nicholas Marriott
b2224947fa
Solaris doesn't have flock and fcntl is useless so make a no-op flock. Reported
...
by Dagobert Michelsen.
2014-09-23 10:44:45 +01:00
Nicholas Marriott
4d53fd98a6
Synchronize forkpty master and child to avoid hang on AIX with fast exiting
...
child and output left in the queue, from J Raynor.
2014-09-22 14:07:00 +01:00
nicm
21062d74d5
Fix some comments (c -> colour) and join unnecessary line splits.
2014-09-17 15:31:38 +00:00
Nicholas Marriott
938d91d2c3
Tweak www and add RELEASE variable for current release version so we don't need
...
to turn it back and forth when updating.
2014-09-16 04:33:34 +01:00
Nicholas Marriott
93fe1b8659
Stupid comment.
2014-09-08 23:33:41 +01:00
nicm
9bda7e881a
Add window_last_flag and window_zoomed_flag. From John Morrissey.
2014-09-08 14:29:05 +00:00
nicm
8a473b5757
Fix typo (paneas -> panes).
2014-09-01 22:00:42 +00:00
nicm
733cea8847
Wake up any clients waiting with the wait-for command when the server
...
exits.
2014-09-01 21:58:41 +00:00
nicm
4e956d545a
Various minor style and spacing nits.
2014-09-01 21:50:18 +00:00
nicm
e075198049
Don't allow pasting into input-disabled panes, from Anish R Athalye.
2014-08-25 13:13:19 +00:00
nicm
2b79d36652
No need to repeat other-end more than once, from Juho Pohjala. Also add
...
it to the commands list while here.
2014-08-11 22:39:57 +00:00
nicm
29d20a55b6
Fix two copy mode problems:
...
1. In vi mode the selection doesn't include the last character if you
moved the cursor up or left.
2. In emacs mode the selection includes the last character if you moved
the cursor to the left.
From Balazs Kezes.
2014-08-11 22:18:16 +00:00
nicm
f518a077b1
Add flags to selectp to enable and disable input to a pane, from Anish
...
Athalye.
2014-08-11 22:14:30 +00:00
Thomas Adam
72797074f3
Add compat/fparseln.c
2014-08-09 21:16:21 +01:00
Thomas Adam
fab8ca0737
SYNCING: Make a note about libutils
...
Don't forget that compat/* needs updating periodically as well.
2014-08-09 20:32:09 +01:00
Thomas Adam
0e23ab4cce
Sync libutil from OpenBSD (imsg)
...
Changes in the imsg API need to be reflected here as tmux wasn't creating
any clients because of it.
2014-08-09 20:32:01 +01:00
Thomas Adam
92997b781a
Add compat/fparseln() for non-BSD systems
...
Linux and friends don't natively have fparseln() so add it to compat/ and
ensure autotools can pick it up.
2014-08-09 20:31:48 +01:00
Thomas Adam
a131b82e95
Merge branch 'obsd-master'
...
Conflicts:
client.c
2014-08-09 20:31:36 +01:00
nicm
1ac96200a7
Remove support for the continuous reporting "any" mouse mode which never
...
really worked properly and is rarely used.
2014-08-09 07:33:37 +00:00
Thomas Adam
fd3b7f3572
FAQ: Mention Git before filing bug reports
...
It's tedious having to tell people all the time to try the Git version to
see if a given problem is reproducible; put this in the FAQ and hope people
read it.
2014-08-08 01:30:23 +01:00
nicm
b8b00aad5d
Revert the up/down wheel emulation for now, there will be a better way
...
to do this along later for those who want it.
2014-07-21 20:45:35 +00:00
nicm
8e4ae12b4d
lockf is entirely useless and it was a mistake to change to it, go back
...
to using flock which actually works sensibly. Also always retry the lock
to fix a potential race, and add some extra logging.
2014-07-21 10:52:48 +00:00
nicm
2056a9ef9e
Drop explicit support for F13-F20 and change to match the xterm terminfo
...
entry:
F13-F24 are S-F1 to S-F12
F25-F36 are C-F1 to C-F12
F37-F48 are C-S-F1 to C-S-F12
F49-F60 are M-F1 to M-F12
and F61-F63 are M-S-F1 to M-S-F3
This should be no difference for applications inside tmux, but means
that any key binding for F13 will need to be replaced by S-F1 and so on.
2014-07-21 10:25:48 +00:00
nicm
c5253ad8f7
Show an error if cmd_find_session can't find the current session, like
...
the other functions.
2014-07-13 20:57:46 +00:00
krw
2b67907176
An EOF is a good reason to close a connection.
...
ok nicm@
2014-07-13 20:51:08 +00:00
nicm
f117c7d94a
If a client is killed while suspended with ^Z so has gone through the
...
MSG_EXITED dance, don't try to resume it since a) it's pointless and b)
the tty structures have been cleaned up and tmux will crash.
2014-07-13 20:23:10 +00:00
guenther
d1f939cede
Track whether a process is a zombie or not yet fully built via flags
...
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's
thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the
"most active" scheduler state for the process's threads.
tweaks kettenis@
feedback and ok matthew@
2014-07-04 05:58:31 +00:00
tobias
1aae53596d
Handle escaped back slashes and missing new lines at end of line by using
...
fparseln instead of reimplementing it on our own.
with input by and ok nicm@
2014-06-25 19:17:27 +00:00
nicm
54782af616
Allow keys and send-keys to invisible panes, from saggy-kun at users dot
...
sf dot net.
2014-06-23 10:27:05 +00:00
nicm
61605c6883
Count mouse clicks correctly, from Balazs Kezes.
2014-06-23 09:52:56 +00:00
Nicholas Marriott
f8481f93c5
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-06-21 19:48:03 +01:00
Nicholas Marriott
cddf50b715
Notes for better mouse support.
2014-06-21 19:45:52 +01:00
Nicholas Marriott
0c5ed177c4
We have utmp with utempter now and that's the best we're going to get.
2014-06-20 13:17:28 +01:00
Thomas Adam
814e40522c
Merge branch 'obsd-master'
2014-06-20 12:59:43 +01:00
Nicholas Marriott
1544c688e6
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-06-20 12:20:29 +01:00
Nicholas Marriott
8049baf0bd
Remove some done, tweak some others.
2014-06-20 12:19:51 +01:00
nicm
8d0819bff1
Comment style nits.
2014-06-20 11:00:19 +00:00
nicm
c8efffb4db
Make -S- and -E- mean the start and end to capture-pane to avoid having
...
to faff around with huge numbers to get everything.
2014-06-20 10:46:59 +00:00
Nicholas Marriott
19cb0a1a92
Might as well still allow autoconf 2.59.
2014-06-19 23:15:06 +01:00
nicm
00ac1af43f
Copy newline when at EOL in vi(1) mode, from Balazs Kezes.
2014-06-19 07:37:59 +00:00
nicm
fd9a53b4a4
Reset the buttons when the wheel is used, from Balazs Kezes.
2014-06-19 07:32:12 +00:00
nicm
a94696defa
Some terminals send spurious releases for mouse wheel in SGR mouse mode,
...
this causes confusion when tmux uses SGR outside but the application
inside tmux is using conventional xterm mouse reporting. So suppress
obviously bad input. From Timothy Allen, SF bug 128.
2014-06-19 07:26:43 +00:00
Nicholas Marriott
77f582ff13
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-06-18 09:31:07 +01:00
Nicholas Marriott
f5973b7776
Build DEBUG with -O2 as well.
2014-06-18 08:21:08 +01:00
nicm
21ade85f24
Properly track switching G0 and G1 modes between US-ASCII and VT100 line
...
drawing rather than just treating them as SO and SI.
2014-06-06 13:21:41 +00:00
nicm
74becbfd6f
Reset properly when c0-change-trigger is increased from zero so panes
...
don't get stuck.
2014-06-05 22:14:29 +00:00
nicm
193b6bcf36
Handle the top bit of xterm(1)-style modifier keys, based on a diff from
...
Balazs Kezes.
2014-05-27 13:04:42 +00:00
nicm
7160b8c2d5
Add some formats for pane bounds.
2014-05-27 12:49:36 +00:00
nicm
191f695bad
Change key-table to mode-table to allow for some future work. From Keith
...
Amling.
2014-05-14 06:45:35 +00:00
nicm
58c97695c9
Simplify copy lines, from Keith Amling.
2014-05-14 06:39:58 +00:00
nicm
53cbae544f
Now that cmdlists are reference counted, there is no need for two-step
...
deletion via the dead_key_bindings tree. From Keith Amling.
2014-05-14 06:21:19 +00:00
nicm
b2e791b574
Don't allow multiple buffers with the same name, from Thomas Adam.
2014-05-13 22:54:18 +00:00
Thomas Adam
92af7f5901
Linux: Add <time.h> to log.c
...
This is needed, otherwise tzset() is undefined.
2014-05-13 22:01:03 +01:00
Thomas Adam
bae95844d7
Merge branch 'obsd-master'
...
Conflicts:
format.c
window.c
2014-05-13 21:58:48 +01:00
nicm
b3e8d440ed
If multiple arguments are given to new-session, new-window,
...
split-window, respawn-window or respawn-pane, pass them directly to
execvp() to help avoid quoting problems. One argument still goes to "sh
-c" like before. Requested by many over the years. Patch from J Raynor.
2014-05-13 08:08:32 +00:00
nicm
b1a06ef22e
Add a copy mode key binding to copy to a named buffer. From J Raynor.
2014-05-13 07:54:20 +00:00
nicm
3dbacbb62b
Add support for named buffers. If you don't name a buffer, things work
...
much as before - buffers are automatically named "buffer0000",
"buffer0001" and so on and ordered as a stack. Buffers can be named
explicitly when creating ("loadb -b foo" etc) or renamed ("setb -b
buffer0000 -n foo"). If buffers are named explicitly, they are not
deleted when buffer-limit is reached. Diff from J Raynor.
2014-05-13 07:34:35 +00:00
nicm
f4ffaf5a7f
Just use char ** for argv like normal people, not char *const *.
2014-05-09 09:11:24 +00:00
nicm
353d1825d5
Send up and down keys for mouse wheel in alternate screen mode (when it
...
normally does nothing), from Marcel Partap.
2014-05-08 07:59:16 +00:00
nicm
94ccc6aeaa
Instead of forcing mouse scroll to 1 in choose mode, scale it down
...
instead. Means modifier keys still increase the line count, just not as
much. Based on a diff from Marcel Partap.
2014-05-08 07:54:47 +00:00
nicm
189017c078
Plug a memory leak, from J Raynor.
2014-05-08 06:06:07 +00:00
nicm
540f0b3e45
Both the two previous ways of navigating panes by direction have
...
irritating flaws:
a) The old way of always using the top or left if the choice is
ambiguous is annoying when the layout is unbalanced.
b) The new way of remembering the last used pane is annoying if the
layout is balanced and the leftmost is obvious to the user (because
clearly if we go right from the top-left in a tiled set of four we want
to end up in top-right, even if we were last using the bottom-right).
So instead, use a combination of both: if there is only one possible
pane alongside the current pane, move to it, otherwise choose the most
recently used of the choice.
2014-05-08 06:03:30 +00:00
nicm
6369ea10d7
Handle colour 8 properly in the 256 colour palette, from Timothy Allen.
2014-05-08 05:53:29 +00:00
Thomas Adam
ea5a223a2e
Merge branch 'obsd-master'
2014-04-30 00:05:58 +01:00
nicm
5b2c8156d5
fcntl.h is still needed here.
2014-04-29 22:31:22 +00:00
Thomas Adam
afb4dbd465
Typo in previous: $(srcdir)
2014-04-29 23:13:51 +01:00
Thomas Adam
b096ad9f22
Makefile.am: Honour $srcdir for mdoc2man.awk
...
Honour out-of-tree srcdir installs when generating the man page. Noticed by
Jon Tibble.
2014-04-29 23:10:22 +01:00
jsg
40cb4cb086
specifying ECHOCTL once is enough
...
ok nicm@
2014-04-25 12:45:16 +00:00
Thomas Adam
3f54c9292f
Merge branch 'obsd-master'
2014-04-24 12:59:00 +01:00
nicm
bec6c807cd
There is no longer a need for a paste_stack struct or for global_buffers
...
to be global. Move to paste.c.
2014-04-24 09:14:43 +00:00
Thomas Adam
953c3ef47a
Merge branch 'obsd-master'
...
Conflicts:
Makefile
tmux.1
window.c
2014-04-23 11:26:11 +01:00
nicm
7ab2690be8
Differentiate between linked and unlinked window closes and renames,
...
like we already do for adds. From Andre Masella.
2014-04-23 10:14:29 +00:00
Nicholas Marriott
12e9c974fa
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-04-17 23:50:24 +01:00
Nicholas Marriott
024846b4d8
If pgrp fails in osdep_get_cwd, try sid. Fixes eg cat foo|less. From Balazs
...
Kezes.
2014-04-17 23:48:19 +01:00
nicm
64613b9d41
#nnT went away a while ago, remove a leftover from the manpage.
2014-04-17 15:48:02 +00:00
nicm
806520f025
Add some UTF-8 utility functions and use them to prevent the width limit
...
on formats from splitting UTF-8 characters improperly.
2014-04-17 15:37:55 +00:00
nicm
a5d4b7f3d9
Some more long lines.
2014-04-17 14:45:49 +00:00
Nicholas Marriott
248ad8bdb2
Next up is 2.0 not 1.10.
2014-04-17 15:26:26 +01:00
nicm
f194f103a2
Only scroll by one line at a time in choose mode, lists are generally
...
pretty small.
2014-04-17 14:13:59 +00:00
nicm
3e27be353d
Set PATH explicitly, either from client or session
...
environment. Previously it came from the session environment. From J
Raynor.
2014-04-17 13:02:59 +00:00
nicm
c3b2e5eed3
Wrap some long lines.
2014-04-17 12:57:28 +00:00
nicm
ada75af199
Don't limit the DCS buffer to 256 bytes, expand it as needed. Requested
...
by Suraj Kurapati.
2014-04-17 12:43:38 +00:00
nicm
bce952777a
Remove some unnecessary includes and fix a typo.
2014-04-17 11:38:35 +00:00
nicm
2e98c9057d
Correct the dance to fix the active pane in join-pane by pulling the
...
(right) code from break-pane and window_remove_pane into a helper
function.
2014-04-17 09:13:13 +00:00
nicm
2740490e27
Remove the "info" message mechanism, this was only used for about five
...
mostly useless and annoying messages. Change those commands to silence
on success like all the others. Still accept the -q command line flag
and "quiet" server option for now.
2014-04-17 07:55:43 +00:00
nicm
877bdb46ed
Extend the -q flag to set-option to suppress errors about unknown
...
options - this will allow options to be removed more easily.
2014-04-17 07:51:38 +00:00
nicm
ebc5cb447f
Do not show the -fg, -bg and -attr options. If asked for one explicitly,
...
show the equivalent -style option instead.
2014-04-17 07:43:20 +00:00
nicm
992ef70fb6
Remove the monitor-content option and associated bits and bobs. It's
...
never worked very well. If there is a big demand for it to return, will
consider better ways to do it.
2014-04-17 07:36:45 +00:00
nicm
5acee1c04e
Memory leak in error path and unnecessary assignment, from clang.
2014-04-16 23:05:38 +00:00
nicm
871b83cbab
Remove a leftover prototype and fix some spacing.
2014-04-16 21:16:19 +00:00
nicm
14a96df9ee
Remove the choose-list command to prepare for some later choose-* work.
2014-04-16 21:02:41 +00:00
nicm
e5d85c6c3c
Because we pass the file descriptor from client to server, tmux can't
...
usefully work if stdin is /dev/tty. Complain about it more clearly.
2014-04-16 08:02:31 +00:00
Nicholas Marriott
4abc8f717a
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-04-15 00:33:56 +01:00
Nicholas Marriott
8e1cef4040
+.
2014-04-15 00:31:45 +01:00
nicm
a47d2397df
Don't leak socketpair file descriptors if fork fails. Spotted by Balazs
...
Kezes.
2014-04-14 22:27:30 +00:00
nicm
b8bda67f30
Don't blindly increase offsets by the return value of snprintf, if there
...
wasn't enough space this will go off the end. Instead clamp to the
available space. Fixes crash reported by Julien Rebetez.
2014-04-11 19:35:54 +00:00
nicm
73c5a487c1
save-buffer needs to use O_TRUNC.
2014-04-07 10:32:16 +00:00
Thomas Adam
57c514d2f8
Remove <vis.h>; not used on Linux.
2014-04-05 12:40:19 +01:00
Thomas Adam
0c99c7dbff
Merge branch 'obsd-master'
...
Conflicts:
Makefile
tty-keys.c
2014-04-05 12:36:14 +01:00
nicm
acef311fe3
Work out mouse scroll wheel effect when the mouse is first detected and
...
store it in struct mouse_event, reduce the scroll size the 3 but allow
shift to reduce it to 1 and meta and ctrl to multiply by 3 if the
terminal supports them, also support wheel in choose mode. From Marcel
Partap.
2014-04-03 08:20:29 +00:00
nicm
8824dae6f7
A couple of trivial mouse-related style nits.
2014-04-03 08:15:17 +00:00
nicm
252a7373d6
Support UTF-8 with choose-buffer, from Kosuke ASAMI. Also make
...
buffer_sample bigger to let it trim at window right edge.
2014-04-02 18:12:18 +00:00
nicm
82f3e0e9e6
Use the same logic for bell with and without visual-bell, from Filip
...
Moc.
2014-04-02 17:14:24 +00:00
nicm
8880bdb67c
Do not replace ## with # in status_replace1 because it'll be done later
...
by the format code.
2014-04-02 17:08:23 +00:00
Nicholas Marriott
806d5dcb17
Remove LocalWords.
2014-04-02 18:02:25 +01:00
nicm
b52b40b2bc
pane_start_path has gone away.
2014-04-02 07:55:09 +00:00
deraadt
d9960b2d4d
missed commit matching log.c
2014-04-01 05:50:30 +00:00
nicm
3c06bec03f
Don't crash with a zero-length argument to setb, from J Raynor.
2014-03-31 21:43:55 +00:00
nicm
ee19d304ff
In four byte UTF-8 sequences, only three bits of the first byte should
...
be used. Fix from Koga Osamu.
2014-03-31 21:43:35 +00:00
nicm
48478ea0a9
Remove log_debug2 as well and simplify log.c.
2014-03-31 21:42:45 +00:00
nicm
7bdb675469
GRID_DEBUG is no longer needed.
2014-03-31 21:42:27 +00:00
nicm
f155316be7
Remove unused log functions.
2014-03-31 21:42:05 +00:00
nicm
dca7d1c0fd
Make message-limit a server option.
2014-03-31 21:41:35 +00:00
nicm
1704d4a6b7
Don't segfaut when the parent of the layout cell is NULL, from Thomas Adam.
2014-03-31 21:41:07 +00:00
nicm
46593e7aa2
Add names for mouse button bits rather than using magic numbers, from
...
Marcel Partap.
2014-03-31 21:40:21 +00:00
nicm
fcdae6925a
Use hex constants rather than shifts for mouse events and flags, pointed
...
out by Marcel Partap.
2014-03-31 21:39:59 +00:00
nicm
0e4d1d8493
Add setb -a to append and a copy mode append command, from J Raynor with
...
minor changes.
2014-03-31 21:39:31 +00:00
nicm
b11de5adc7
Make session_attached a count and add session_many_attached flag.
2014-03-31 21:37:55 +00:00
nicm
9368914ee7
Add start-of-list, end-of-list, top-line and bottom-line in choice mode,
...
from madmaverick9 at roxxmail dot eu, similar diff a few days later from
Marcel Partap.
2014-03-31 21:36:43 +00:00
nicm
175f215187
Having three *clock* files is ridiculous, remove clock.c.
2014-03-31 21:34:08 +00:00
nicm
18cb135218
Don't write into buffer if no arguments, reported by Filipe Rosset.
2014-03-31 21:32:31 +00:00
nicm
04f469a324
Change secondary device attributes response to \033[>84;0;0c which is
...
unique for tmux.
2014-03-31 21:32:00 +00:00
Nicholas Marriott
26c42ad1e4
Don't crash with a zero-length argument to setb, from J Raynor.
2014-03-24 12:00:15 +00:00
Nicholas Marriott
77603c4f2d
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-03-08 16:28:56 +00:00
Nicholas Marriott
7019f77c05
In four byte UTF-8 sequences, only three bits of the first byte should be
...
used. Fix from Koga Osamu.
2014-03-08 16:27:45 +00:00
Nicholas Marriott
9880114aff
Make -a append to top buffer if -b is not specified.
2014-03-08 08:53:48 +00:00
Nicholas Marriott
3625bcba24
Add osdep-cgywin.c as a copy of osdep-linux.c, from J Raynor.
2014-03-08 08:44:24 +00:00
Nicholas Marriott
b1a87b2ee4
Remove log_debug2 as well and simplify log.c.
2014-03-07 16:05:29 +00:00
Nicholas Marriott
c5a30513ed
GRID_DEBUG is no longer needed.
2014-03-07 15:51:27 +00:00
Nicholas Marriott
ebe7bd7c8b
Remove unused log functions.
2014-03-07 15:49:09 +00:00
Nicholas Marriott
683ca270d4
Make message-limit a server option.
2014-03-07 15:37:01 +00:00
Nicholas Marriott
78e783e786
Don't segfaut when the parent of the layout cell is NULL, from Thomas Adam.
2014-03-06 13:01:51 +00:00
Nicholas Marriott
cbd360b7dd
Spaces to tabs.
2014-03-06 12:46:03 +00:00
Nicholas Marriott
23e944c91d
Add names for mouse button bits rather than using magic numbers, from Marcel
...
Partap.
2014-03-06 12:00:30 +00:00
Nicholas Marriott
f15fcb6a1d
Use hex constants rather than shifts for mouse events and flags, pointed out by
...
Marcel Partap.
2014-03-06 11:53:46 +00:00
Nicholas Marriott
8c0edcbfa3
Add setb -a to append and a copy mode append command, from J Raynor with minor
...
changes.
2014-03-06 11:50:07 +00:00
Nicholas Marriott
b7f6356053
Make session_attached a count and add session_many_attached flag.
2014-03-06 11:25:27 +00:00
Nicholas Marriott
b65c72c45c
Restore SunOS fix, noticed by Greg Onufer.
2014-03-05 23:28:32 +00:00
Nicholas Marriott
19c534e325
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-03-05 23:27:04 +00:00
Thomas Adam
5f05c41126
www: Add link to CHANGES file for download tarball
...
Make the CHANGES file more prominent when choosing to download the released
version.
2014-03-03 21:59:22 +00:00
Nicholas Marriott
9134e4de1e
Add start-of-list, end-of-list, top-line and bottom-line in choice mode, from
...
madmaverick9 at roxxmail dot eu, similar diff a few days earlier from Marcel
Partap.
2014-02-26 22:22:07 +00:00
Nicholas Marriott
582c2671dd
Having three *clock* files is ridiculous, remove clock.c.
2014-02-26 21:59:33 +00:00
Nicholas Marriott
0bb9d51965
Don't write into buffer if no arguments, reported by Filipe Rosset.
2014-02-26 21:42:59 +00:00
Nicholas Marriott
6d9f936ff2
Change secondary device attributes response to \033[>84;0;0c which is unique
...
for tmux.
2014-02-26 21:42:14 +00:00
Nicholas Marriott
594348440e
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-02-26 13:49:41 +00:00
Nicholas Marriott
091cd0109f
Add.
2014-02-26 13:48:25 +00:00
Thomas Adam
225164a9d6
Fix xterm-keys.vim syntax
...
Fix the typo in the xterm-keys.vim file, from Mark Oteiza.
2014-02-25 20:23:08 +00:00
Nicholas Marriott
f3152079e1
I prefer . here not :.
2014-02-24 23:11:25 +00:00
Nicholas Marriott
bf82f15bba
Missing period.
2014-02-24 23:09:19 +00:00
Nicholas Marriott
4273c1b80e
Use utempter to update utmp if it's around for configure, from madmaverick9 at
...
roxxmail dot eu.
2014-02-24 23:07:22 +00:00
Nicholas Marriott
488583dc8d
Add to TODO.
2014-02-23 10:19:04 +00:00
nicm
f1828921df
Change terminal-overrides to a server option (now that we have them), it
...
doesn't make much sense as a session option.
2014-02-23 00:53:06 +00:00
Thomas Adam
7eed5ad97b
Go back to working on 1.10
2014-02-22 21:09:09 +00:00
Thomas Adam
80d9964a30
Update CHANGES and configure.ac for 1.9a release
2014-02-22 20:55:59 +00:00
Thomas Adam
150ef86800
Merge branch 'obsd-master'
2014-02-22 20:48:44 +00:00
nicm
315d45a0eb
Fix crash due to uninitialized lastwp member of layout_cell, reported by
...
Balazs Kezes.
2014-02-22 18:01:10 +00:00
Nicholas Marriott
2a412fad04
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-02-22 17:36:17 +00:00
Nicholas Marriott
fe6f520054
FAQ about xterm-keys in emacs and vim, from Mark Oteiza.
2014-02-22 17:35:41 +00:00
nicm
c7f3599ebc
Fix -fg/-bg/-style with 256 colour terminals.
2014-02-22 01:38:47 +00:00
Thomas Adam
b7589750a1
Correct Linux-specific manpage sections
...
Some of the man page locations on Linux differ to those on *BSD. Noticed by
Christopher Meng.
2014-02-21 09:27:28 +00:00
Nicholas Marriott
c310212d28
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-02-21 08:03:42 +00:00
Nicholas Marriott
94d99d5462
Put each command on its own line and remove duplicates, from Daniel Hahler.
2014-02-21 08:02:48 +00:00
Thomas Adam
9120df33ef
dist: Call clean target before any other action
...
In case 'make dist' is invoked from a dirty tree which hasn't had its object
files cleaned up, clean out the tree first before tarring up the files for a
release.
2014-02-20 23:20:17 +00:00
Thomas Adam
1ab0745f8e
Working on 1.10
2014-02-20 21:44:33 +00:00
Thomas Adam
c5d2de7ec0
Update CHANGES and configure.ac for 1.9 release
2014-02-20 21:32:42 +00:00
Thomas Adam
ca1d78f523
Merge branch 'obsd-master'
2014-02-19 15:05:07 +00:00
nicm
6daf06b1ad
Fix memory leaks with paste_replace, based on changes from J Raynor.
2014-02-17 23:07:03 +00:00
nicm
69b7c496ac
Be consistent and allow only mouse down and mouse wheel for any pane
...
with mouse-select-pane rather than just in copy mode, reported by Balazs
Kezes.
2014-02-17 22:42:20 +00:00
nicm
1e981f4c6d
Don't crash when given a invalid colour, reported by Felix Rosencrantz,
...
fix from Thomas Adam.
2014-02-17 18:12:47 +00:00
Nicholas Marriott
d325104d10
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-02-17 18:09:25 +00:00
Thomas Adam
b3de4a3dec
Merge branch 'obsd-master'
...
Conflicts:
tmux.1
tmux.c
2014-02-16 23:02:07 +00:00
nicm
81db6bab91
Leftovers from removing 88 colour support, from Theo Buehler.
2014-02-16 12:45:17 +00:00
nicm
f2e54e1e2f
If the terminfo entry has colors#256, assume that setaf and setab work
...
and use them for the 256 colour set. If the terminfo entry doesn't have
colors#256 and the user gives -2 to the client, use a \033[38;5;Xm
sequence as before. Should allow fbterm to work with it's weird setaf
and setab.
2014-02-14 14:37:08 +00:00
nicm
e9d32f901a
Make status-interval of zero work as indented.
2014-02-14 14:00:18 +00:00
nicm
f835be4bb2
Style nit - no space between function name and bracket.
2014-02-14 13:59:01 +00:00
Nicholas Marriott
3aadc9d665
Missing *.
2014-02-14 13:56:39 +00:00
nicm
bfb700cf41
Do not need to call winlink_find_by_window, from Filip Moc.
2014-02-14 12:44:45 +00:00
nicm
d0accdba88
Check for NULL session and whatnot in status_replace, from Thomas Adam.
2014-02-14 12:37:54 +00:00
nicm
f58721a9e8
Make C-j the same as C-m, from Simon Nicolussi.
2014-02-14 12:35:58 +00:00
nicm
325396046a
Avoid use of uninitialized variable, from Thomas Adam.
2014-02-12 20:26:13 +00:00
nicm
c52548f6fd
The last fix to xterm keys meant that some keys such as \033OA were
...
being wrongly treated as partial matches. So both check xterm keys after
standard keys and only wildcard the minimum required ('1' to
'8'). Problems reported by Ralf Horstmann and Tim van der Molen.
2014-02-10 11:20:41 +00:00
Ben Boeckel
8edbbb9865
Sort and organize option names in tmux.vim
...
Also update with the latest options and remove the to-be-deprecated
{-attr,-bg,-fg} options.
Signed-off-by: Ben Boeckel <mathstuf@gmail.com >
2014-02-05 19:14:12 +00:00
Ben Boeckel
73c125f248
Sort and organize commands in tmux.vim
...
Signed-off-by: Ben Boeckel <mathstuf@gmail.com >
2014-02-05 19:13:11 +00:00
Thomas Adam
1721056f35
Remove references to 88colour support
...
Tmux doesn't directly support terminals with 88 colours directly anymore.
2014-02-05 10:51:25 +00:00
Thomas
6eef24c37a
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2014-02-05 10:47:57 +00:00
jmc
973de5a704
fix some minor formatting glitches;
2014-02-02 08:48:48 +00:00
Nicholas Marriott
57332be8da
Tidy up TODO list.
2014-02-01 00:47:04 +00:00
Thomas Adam
44737b06db
Fixup BSD specific things from last merge
...
There's entries for header files we don't use, and the cvsimport doesn't
like removing files automatically, etc., and it won't have known to have
done this from autoconf's POV, so define that in the correct place, hence
the removal of the previously committed Makefile.
2014-01-31 21:47:54 +00:00
Thomas Adam
d50e47fc4a
Merge branch 'obsd-master'
...
Conflicts:
Makefile
cmd-server-info.c
cmd-start-server.c
2014-01-31 21:39:56 +00:00
nicm
9f02feb9d0
Break up and simplify screen_redraw_screen.
2014-01-31 14:19:24 +00:00
nicm
72d1be5ddd
Fix partial matches with xterm-keys on, from m0viefreak dot cm at
...
googlemail dot com.
2014-01-31 11:20:28 +00:00
nicm
1935eb5c1e
Add \033[18t window operations from J Raynor.
2014-01-31 11:17:20 +00:00
nicm
62e0ed5d7e
Fix missing argument, stupid last minute changes...
2014-01-28 23:11:44 +00:00
nicm
945339b443
Allow replacing each of the many sets of separate foo-{fg,bg,attr}
...
options with a single foo-style option. For example:
set -g status-fg yellow
set -g status-bg red
set -g status-attr blink
Becomes:
set -g status-style fg=yellow,bg=red,blink
The -a flag to set can be used to add to rather than replace a style. So:
set -g status-bg red
Becomes:
set -ag status-style bg=red
Currently this is fully backwards compatible (all *-{fg,bg,attr} options
remain) but the plan is to deprecate them over time.
From Tiago Cunha.
2014-01-28 23:07:09 +00:00
nicm
c930fd5ff6
Remember the last active pane in the top-bottom or left-right cell so
...
that it can be restored when moving back to that cell with selectp
-L/-R/etc. From Suraj N Kurapati.
2014-01-28 22:19:17 +00:00
nicm
dda70d4ef1
Merge start-server into kill-server.
2014-01-27 23:57:35 +00:00
nicm
7d3d996383
Support paste key in copy mode input (for search etc). Also clamp length
...
to screen width.
2014-01-22 22:32:15 +00:00
nicm
d23561f381
Merge server-info into show-messages and remove some not useful output.
2014-01-22 14:43:42 +00:00
Nicholas Marriott
cbf9224c5f
Add AC_PROG_MKDIR_P.
2014-01-22 14:03:16 +00:00
Nicholas Marriott
c965870585
+ to TODO.
2014-01-22 14:02:32 +00:00
nicm
9ee93b3ea3
Do not permit periods in session names (colons are already banned). From
...
J Raynor.
2014-01-22 14:00:08 +00:00
nicm
df680d7257
Only exit copy mode at the bottom if no selection in progress, from
...
Benoit Pierre.
2014-01-22 13:57:49 +00:00
Thomas
d02c4bda3a
Merge branch 'obsd-master'
2014-01-20 10:48:12 +00:00
nicm
938768ed3d
Do not attempt to read .tmux.conf if we can't figure out a home
...
directory, from Tiago Cunha.
2014-01-15 11:46:28 +00:00
nicm
3368b602a8
Couple of fixes from cppcheck via Tiago Cunha.
2014-01-15 11:44:18 +00:00
nicm
b185449d07
Fix a memory/fd leak reported by Tiago Cunha.
2014-01-09 21:20:45 +00:00
nicm
c2cac69a22
Similar to attach-session, make switch-client -t accept a window and
...
pane. From Johannes Jakobsson.
2014-01-09 14:28:14 +00:00
nicm
1a0d3cd5d3
Allow attach-session -t to accept a window and pane to select them on
...
attach. Based on a diff from J Raynor.
2014-01-09 14:20:55 +00:00
nicm
adc1f21eae
Three small changes from Tiago Cunha:
...
- Check for truncation when copying path.
- Don't need to use a temporary buffer in screen_set_title.
- Include strerror in output when connecting to server fails.
2014-01-09 14:05:55 +00:00
nicm
994cb872cf
Style and comment fixes from Tiago Cunha.
2014-01-09 13:58:06 +00:00
nicm
66829ee12e
Simplify args_set, from Tiago Cunha.
2014-01-09 13:51:57 +00:00
nicm
1751da76d5
Remove unnecessary calls to va_start/va_end, from Tiago Cunha.
2014-01-09 13:46:12 +00:00
Nicholas Marriott
ba014c1a60
NetBSD broke strnvis when they added it, check for that.
2014-01-06 15:16:57 +00:00
Nicholas Marriott
886c282679
Use 0 if O_DIRECTORY is missing, reported by Dagobert Michelsen.
2014-01-06 15:12:05 +00:00
Nicholas Marriott
ccf39fcdc1
+.
2013-12-09 23:27:42 +00:00
Nicholas Marriott
ee65bde130
Note libevent version.
2013-12-09 22:53:17 +00:00
Nicholas Marriott
b091790622
+.
2013-11-30 17:56:49 +00:00
Nicholas Marriott
a352570e9f
+.
2013-11-30 17:18:25 +00:00
nicm
d459314517
Add comments to ACS table matching terminfo(5).
2013-11-24 19:38:32 +00:00
nicm
1286c56188
Replace ## by # in format.
2013-11-24 11:29:09 +00:00
nicm
40982a01fb
With -k, kill window after using it to work out -c path. Reported by
...
jmacristovao at gmail dot com.
2013-11-23 09:18:29 +00:00
nicm
7aeb4473ad
Handle empty current directory more gracefully.
2013-11-22 20:58:36 +00:00
deraadt
72a4602b88
missing unsigned char casts areound tolower()
...
ok nicm
2013-11-20 17:01:23 +00:00
okan
30275bc610
Include unistd.h as it is the standard location for getopt().
...
OK millert@
2013-11-17 20:19:36 +00:00
Thomas Adam
3e498cdb49
Merge branch 'obsd-master'
2013-11-14 07:51:26 +00:00
benno
7624800ddc
from nicm: : handle msgbuf_write() returning EAGAIN
2013-11-13 20:43:36 +00:00
nicm
f0ed61f53c
Support case insensitive searching in the same manner as emacs - all
...
lowercase means case insensitive, any uppercase means case
sensitive. From J Raynor.
2013-11-09 00:48:57 +00:00
nicm
a6cd84869e
Correctly redraw the top two lines in copy mode when they are selected -
...
the selection was being updated before the redraw so the markings were
lost. Based on a fix from J Raynor.
2013-11-08 12:39:20 +00:00
nicm
7fa55b0419
Key to swap to other end of selection (bound to o with vi keys), from J
...
Raynor.
2013-10-23 11:31:03 +00:00
nicm
bf35441608
Do not run any command line command from the client which starts the
...
server until after the configuration file completes. This prevents it
racing against run-shell or if-shell in .tmux.conf that run in the
background.
2013-10-20 17:28:43 +00:00
nicm
f52eac6225
Don't turn on modifyOtherKeys by default, it is annoying if tmux is
...
killed and it's left on and we can't turn it on and off like we do for
attributes. It's not hard to enable in .Xresources or .Xdefaults anyway.
2013-10-20 09:37:50 +00:00
Thomas Adam
2c08a3a559
Merge branch 'obsd-master'
2013-10-15 08:06:56 +01:00
nicm
2eb6d6e31b
Fix detach -a by skipping clients where the session is NULL.
2013-10-15 00:15:11 +00:00
Thomas Adam
334c28afe7
Fix previous
...
cwd is a char*, not a u_int.
2013-10-11 19:41:43 +01:00
Thomas Adam
5944230c50
Fix up missing cwd definition
...
This went walkies during the merge.
2013-10-11 19:38:40 +01:00
Nicholas Marriott
8bcdd8fc21
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
...
Conflicts:
cmd-split-window.c
cmd-unbind-key.c
format.c
osdep-openbsd.c
2013-10-11 16:52:39 +01:00
Thomas
d518067be6
Forward-declarations for osdep-linux
2013-10-11 14:55:57 +01:00
Thomas
f703a30dfe
Fixup osdep-* specific code
...
get_proc_name() is osdep_get_name() outside of OpenBSD.
2013-10-11 14:39:22 +01:00
Nicholas Marriott
1a0951959f
Add destroy entry to TODO.
2013-10-11 14:36:28 +01:00
Nicholas Marriott
b347a994fd
+ to TODO.
2013-10-11 14:36:28 +01:00
Nicholas Marriott
6126fa0995
+ to TODO.
2013-10-11 14:36:28 +01:00
Nicholas Marriott
85df418728
++ to TODO.
2013-10-11 14:36:28 +01:00
Nicholas Marriott
558e5639d0
Remove from TODO.
2013-10-11 14:36:28 +01:00
Nicholas Marriott
d8d746b4b8
Set EVENT_NOEPOLL on Linux again.
2013-10-11 14:36:28 +01:00
Nicholas Marriott
570028e9c0
Add entry about smaller clients based on text from Thomas Adam.
2013-10-11 14:36:28 +01:00
Thomas Adam
7c3e7d6535
Add subdir-objects to shut automake up
...
automake 1.14 onwards has started emitting lots of warnings about this
option:
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the
'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding
output
automake: object file(s) will be placed in the top-level directory.
However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same
subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout
your
automake: project, to avoid future incompatibilities.
So enable this in AM_INIT_AUTOMAKE.
This doesn't seem to break older automake versions.
2013-10-11 14:36:28 +01:00
Thomas Adam
5b065e93b3
Check setupterm() in libtinfo also
...
Some ncurses packages have build time configuration options to separate its
different parts into separate libraries. Some Linux distributions in
particular separate out the terminfo routines in to libtinfo.
This change teaches configure that setupterm() can also be found there.
2013-10-11 14:36:28 +01:00
Thomas Adam
d3f37566e2
Ignore .dirstamp files
...
GNU automake 1.14+ uses these files for subdir-option detection. We don't
want to accidentally commit these. They're not useful to us.
2013-10-11 14:36:28 +01:00
Nicholas Marriott
b8b31ad53e
Add openat() to compat.
2013-10-11 14:36:28 +01:00
Thomas
7f479ffdce
Merge branch 'obsd-master' into mtemp
2013-10-11 14:33:29 +01:00
nicm
4901d9ddc8
Don't leak file descriptors in the rare MSG_VERSION case. From Chris
...
Johnsen.
2013-10-11 08:07:12 +00:00
nicm
ffba21a60c
Remove stray return, from Chris Johnsen.
2013-10-11 08:06:03 +00:00
nicm
98b81e9834
And get it right this time... don't leak if it is an empty string either.
2013-10-11 08:03:43 +00:00
nicm
17ec688ced
Bracket in the wrong place in description of c0-change-trigger.
2013-10-10 23:31:28 +00:00
nicm
0b77d17b35
Fix leak in format_get_command.
2013-10-10 23:31:03 +00:00
nicm
d0566a474a
Remove the KERN_PROC_CWD the proc_current_path format (which is the only
...
thing that uses it now).
2013-10-10 12:39:24 +00:00
nicm
99e3cbc526
Use format_get_command() and some spacing tweaks.
2013-10-10 12:35:30 +00:00
nicm
b85de1ddb3
Pass -1 for cwd now not NULL.
2013-10-10 12:29:53 +00:00
nicm
c1ccefc62d
We accidentally haven't been using $TMUX to work out the session for a
...
while and in fact it is less useful that using the client ttyname. So
don't bother and don't pass it from the client. If we need it in future
it is in c->environ.
2013-10-10 12:29:35 +00:00
nicm
6ac7abe8f0
Remove now unused cmd_get_default_path.
2013-10-10 12:28:56 +00:00
nicm
909e1c1a86
Don't boke when figuring out working directory from configuration file.
2013-10-10 12:28:38 +00:00
nicm
7936ce3874
Show session name in detached message. Requested by somebody a few
...
months ago who didn't bother testing it. But it works for me anyway.
2013-10-10 12:28:08 +00:00
nicm
b8b85fbb0c
Don't look at string[length - 1] if length == 0.
2013-10-10 12:27:38 +00:00
nicm
282c5f9644
Alter how tmux handles the working directory to internally use file
...
descriptors rather than strings.
- Each session still has a current working directory.
- New sessions still get their working directory from the client that
created them or its attached session if any.
- New windows are created by default in the session working directory.
- The -c flag to new, neww, splitw allows the working directory to be
overridden.
- The -c flag to attach let's the session working directory be changed.
- The default-path option has been removed.
To get the equivalent to default-path '.', do:
bind c neww -c $PWD
To get the equivalent of default-path '~', do:
bind c neww -c ~
This also changes the client identify protocol to be a set of messages rather
than one as well as some other changes that should make it easier to make
backwards-compatible protocol changes in future.
2013-10-10 12:26:34 +00:00
nicm
165aa59760
Make tilde expansion in command strings work even if it isn't terminated by /.
2013-10-10 12:14:09 +00:00
nicm
10c38436aa
Similarly for MSG_COMMAND - allow full imsg limit not arbitrary 2048.
2013-10-10 12:13:56 +00:00
nicm
a0404b6902
retcode -> retval for exit message.
2013-10-10 12:12:54 +00:00
nicm
eb26dbd072
Merge IDENTIFY_* flags with CLIENT_* flags.
2013-10-10 12:12:08 +00:00
nicm
6c093010e0
Remove CMD_SENDENVIRON.
2013-10-10 12:09:34 +00:00
nicm
d2160e3f83
mouse-resize-pane: Only resize on border select
...
The current behaviour of mouse-resize-pane is such that if the mouse
button is held down and a selection takes place within a pane, that if
the mouse pointer then hits a border edge, that pane-resize would
initiate.
This seems counter-intuitive; instead, check for a resize condition if
the border of a pane is selected, and in the case of mouse selection
within a pane, no longer resize the pane if edge of the border is hit.
By Thomas Adam.
2013-10-10 12:08:14 +00:00
nicm
b822d24b15
Support -c for new-session, based on code from J Raynor.
2013-10-10 12:07:36 +00:00
nicm
fc54bfe6b0
Make cmdq->client_exit a tristate (-1 means "not set") so that if
...
explicitly set it can be copied from child to parent cmdq by if-shell
and source-file. This fixes using attach or new. From Chris Johnsen.
2013-10-10 12:04:38 +00:00
nicm
1a49ebaa9f
First period not last for host_short, from Michael Scholz.
2013-10-10 12:04:01 +00:00
nicm
e4dc1568ce
Don't treat TMUX_TMPDIR as a potential file
...
The point of setting TMUX_TMPDIR is to then make any labels from -L go
to that directory. In the case of makesocketpath() with no TMUX_TMPDIR
set, would set both the path and the default socket to a file. The
checking of the permissions on the file worked fine in that case, but
when TMUX_TMPDIR is set, won't work on a directory.
This fixes the problem by ensuring the check on the permissions is
performed on directories only.
By Thomas Adam.
2013-10-10 12:03:22 +00:00
nicm
1bd0851ee8
Mark flags as optional and mutually exclusive. From Tiago Cunha.
2013-10-10 12:02:55 +00:00
nicm
1b7c2dd056
Trivial style and spacing nits.
2013-10-10 12:01:14 +00:00
nicm
d45c12b6c9
Remove the barely-used and unnecessary command check() function.
2013-10-10 12:00:18 +00:00
nicm
90ae7682ed
Clear window->flags when clearing winlinks
...
When clearing WINLINK_ALERTFLAGS for all sessions, we must also, for
that window, clear the window->flags as well, otherwise sessions may
well still see flags for winlinks long since cleared.
This therefore introduces WINDOW_ALERTFLAGS to help with this.
2013-10-10 11:59:23 +00:00
nicm
e6af0ad23e
choose-tree: Reset top when toggling items
...
When choose-tree is told to expand/collapse items (especially when first
rendering collapsed to just show sessions), ensure that in addition to
setting the selected item, that the item itself appears on the bottom of
the screen, rather than off screen.
This was causing rendering glitches when a very small tmux window tried
to render a list of items in choose-tree much larger than itself, and
the selected item appeared off screen, and didn't show the selection
until the selection had wrapped around to the top of the screen.
2013-10-10 11:58:52 +00:00
nicm
34674bb180
Renumber windows: Lookup lastw via window not index
...
When calling 'movew -r' on a session to reorder the winlinks, ensure
when adding back in the information for the lastw stack that we look up
the winlink based on the window and not its index.
Using the index doesn't make sense here because when comparing it to the
old set, it will never match since the winlink has been renumbered.
Bug reported by Ben Boeckel. Patch by Thomas Adam.
2013-10-10 11:58:24 +00:00
nicm
784b711393
Assign mouse x/y coords before checking them. When receiving mouse
...
inputs, we should set the x/y coordinates earlier than we currently do,
so that we aren't off-by-one in the case when the statusbar is at the
top of the screen. By Thomas Adam.
2013-10-10 11:57:52 +00:00
nicm
81a548bcc4
Accept multiple parameters to SM/RM/DECSET/DECRST, based on a diff from
...
Hayaki Saito.
2013-10-10 11:57:14 +00:00
nicm
fd1750af49
Add automatic-rename-format option allowing automatic rename to use
...
something other than pane_current_command.
2013-10-10 11:56:50 +00:00
nicm
2bf2f5d58e
Allow nested format expansion.
2013-10-10 11:50:36 +00:00
nicm
40811eb8d4
Add length limit operator for formats.
2013-10-10 11:50:20 +00:00
nicm
2756d12750
Handle input mouse positions <33 (we already can generate them).
2013-10-10 11:49:42 +00:00
nicm
7839993fe7
Only include actual trailing spaces not unused cells with capturep -J,
...
from George Nachman.
2013-10-10 11:49:29 +00:00
nicm
47a4a9992c
Allow the file descriptor received from the client to be -1.
2013-10-10 11:49:07 +00:00
nicm
d75dd2ab1c
Add formats for window flags.
2013-10-10 11:47:52 +00:00
nicm
6e665708fc
Missing space in refresh-client synopsis.
2013-10-10 11:46:47 +00:00
nicm
d3830e622f
Grouped sessions were being leaked on destroy, correctly free them.
2013-10-10 11:46:28 +00:00
nicm
0538676aa3
Make recalculate_sizes() handle an empty window with no active
...
pane. This can happen when a window is in two sessions - it isn't
destroyed immediately when the pane goes away but is left until the last
session is destroyed. Fixes problems with grouped sessions reported by
Daniel Ralston.
2013-10-10 11:46:00 +00:00
nicm
4c9f41f1ad
Pass flags into cmdq_guard as an argument since sometimes cmdq->cmd can
...
be NULL. Avoids crash when a command in a command client can't be
parsed.
2013-10-10 11:45:28 +00:00
Nicholas Marriott
e588ddb5d6
Add openat() to compat.
2013-10-10 10:27:23 +01:00
Nicholas Marriott
f3ec8693e3
Pass -1 for cwd now not NULL.
2013-10-06 22:44:24 +01:00
Nicholas Marriott
e9b09faab2
We accidentally haven't been using $TMUX to work out the session for a while
...
and in fact it is less useful that using the client ttyname. So don't bother
and don't pass it from the client. If we need it in future it is in c->environ.
2013-10-06 22:38:33 +01:00
Nicholas Marriott
5ea6148362
Remove now unused cmd_get_default_path.
2013-10-06 21:35:44 +01:00
Nicholas Marriott
9e0d7bddc0
Don't boke when figuring out working directory from configuration file.
2013-10-06 21:31:55 +01:00
Nicholas Marriott
aa0a57fd56
Show session name in detached message. Requested by somebody a few months ago
...
who didn't bother testing it. But it works for me anyway.
2013-10-06 21:21:52 +01:00
Nicholas Marriott
d86c70af96
Don't look at string[length - 1] if length == 0.
2013-10-06 21:20:11 +01:00
Nicholas Marriott
4538c269d0
Alter how tmux handles the working directory to internally use file descriptors
...
rather than strings.
- Each session still has a current working directory.
- New sessions still get their working directory from the client that created
them or its attached session if any.
- New windows are created by default in the session working directory.
- The -c flag to new, neww, splitw allows the working directory to be
overridden.
- The -c flag to attach let's the session working directory be changed.
- The default-path option has been removed.
To get the equivalent to default-path '.', do:
bind c neww -c $PWD
To get the equivalent of default-path '', do:
bind c neww -c '#{pane_current_path}'
The equivalent of default-path '~' is left as an exercise for the reader.
This also changes the client identify protocol to be a set of messages rather
than one as well as some other changes that should make it easier to make
backwards-compatible protocol changes in future.
2013-10-06 21:02:23 +01:00
Nicholas Marriott
446eb11cde
Make tilde expansion in command strings work even if it isn't terminated by /.
2013-10-06 09:06:07 +01:00
Nicholas Marriott
fa1375c09f
Similarly for MSG_COMMAND - allow full imsg limit not arbitrary 2048.
2013-10-06 00:48:24 +01:00
Nicholas Marriott
f141e9b37a
Instead of fixed size buffers for some messages, send only the string length.
2013-10-06 00:28:35 +01:00
Nicholas Marriott
3fba377ddd
retcode -> retval for exit message.
2013-10-06 00:18:00 +01:00
Nicholas Marriott
01a4752503
Merge IDENTIFY_* flags with CLIENT_* flags.
2013-10-06 00:10:40 +01:00
Nicholas Marriott
d66cbf20f7
Bump protocol version and add new message types.
2013-10-06 00:06:01 +01:00
Nicholas Marriott
7e4314eccb
Remove CMD_SENDENVIRON.
2013-10-06 00:02:52 +01:00
nicm
7c71c3e27d
Change the default for the default-path option to ~. This is a quick
...
change to turn off the KERN_PROC_CWD code which is unpredictable. Later
it will go away and there may be other changes to how this works.
2013-10-05 13:56:48 +00:00
Thomas Adam
5eeee39cc1
Ignore .dirstamp files
...
GNU automake 1.14+ uses these files for subdir-option detection. We don't
want to accidentally commit these. They're not useful to us.
2013-10-05 12:45:24 +01:00
Thomas Adam
796974ddf6
Check setupterm() in libtinfo also
...
Some ncurses packages have build time configuration options to separate its
different parts into separate libraries. Some Linux distributions in
particular separate out the terminfo routines in to libtinfo.
This change teaches configure that setupterm() can also be found there.
2013-10-05 12:44:29 +01:00
Thomas Adam
75f5b3dab6
Add subdir-objects to shut automake up
...
automake 1.14 onwards has started emitting lots of warnings about this
option:
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the
'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding
output
automake: object file(s) will be placed in the top-level directory.
However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same
subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout
your
automake: project, to avoid future incompatibilities.
So enable this in AM_INIT_AUTOMAKE.
This doesn't seem to break older automake versions.
2013-10-05 12:44:09 +01:00
nicm
9f330897a8
Fix previous not to leak fd on failure, whoops.
2013-10-05 10:40:49 +00:00
Nicholas Marriott
710eeb2a33
Fix previous not to lead fd on failure.
2013-10-05 11:40:47 +01:00
Nicholas Marriott
3493b7dac7
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-10-05 09:14:35 +01:00
Nicholas Marriott
d51b4f92d7
Use open(".")/fchdir() to save and restore current directory rather than
...
getcwd()/chdir().
2013-10-05 09:14:11 +01:00
nicm
3d8a8ea0c6
Use open(".")/fchdir() to save and restore current directory rather than
...
getcwd()/chdir().
2013-10-05 08:12:39 +00:00
Thomas Adam
2057812c8f
mouse-resize-pane: Only resize on border select
...
The current behaviour of mouse-resize-pane is such that if the mouse button
is held down and a selection takes place within a pane, that if the mouse
pointer then hits a border edge, that pane-resize would initiate.
This seems counter-intuitive; instead, check for a resize condition if the
border of a pane is selected, and in the case of mouse selection within a
pane, no longer resize the pane if edge of the border is hit.
2013-10-02 06:53:47 +01:00
Nicholas Marriott
13360ad541
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-10-01 23:50:24 +01:00
Nicholas Marriott
9389cfbec9
Support -c for new-session, based on code from J Raynor.
2013-10-01 23:48:03 +01:00
Nicholas Marriott
7be152412e
Make cmdq->client_exit a tristate (-1 means "not set") so that if explicitly
...
set it can be copied from child to parent cmdq by if-shell and
source-file. This fixes using attach or new. From Chris Johnsen.
2013-10-01 23:31:09 +01:00
Nicholas Marriott
d0fa48db1e
Restore missing key binding for %, from Chris Johnsen.
2013-10-01 23:27:36 +01:00
Nicholas Marriott
884a21d0f5
First period not last for host_short, from Michael Scholz.
2013-10-01 23:24:39 +01:00
Thomas
21bca549d3
layout-resize-pane-mouse: Consider visible panes only
...
When a pane is maximized, and text is selected, we end up checking if a pane
switch is needed. This therefore means we might end up selecting panes
which aren't visible.
2013-09-30 15:26:43 +01:00
Thomas
bda970b3b1
Don't treat TMUX_TMPDIR as a potential file
...
The point of setting TMUX_TMPDIR is to then make any labels from -L go to
that directory. In the case of makesocketpath() with no TMUX_TMPDIR set,
would set both the path and the default socket to a file. The checking of
the permissions on the file worked fine in that case, but when TMUX_TMPDIR
is set, won't work on a directory.
This fixes the problem by ensuring the check on the permissions is performed
on directories only.
2013-09-30 15:26:32 +01:00
Tiago Cunha
75ec17f0b5
Mark flags as optional and mutually exclusive.
2013-08-31 11:16:47 +01:00
Nicholas Marriott
d62121e7bb
Add entry about smaller clients based on text from Thomas Adam.
2013-08-31 10:42:09 +01:00
Nicholas Marriott
06d101657f
No space in lsw -a targets.
2013-08-28 12:59:13 +01:00
Nicholas Marriott
2f7ffab0e8
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-08-23 15:58:46 +01:00
Nicholas Marriott
3ed5e56a39
Set EVENT_NOEPOLL on Linux again.
2013-08-23 15:25:05 +01:00
Nicholas Marriott
a0802dd486
A couple of manpage fixes from Tiago Cunha.
2013-08-22 00:32:55 +01:00
Nicholas Marriott
f2675cdf04
Trivial style and spacing nits.
2013-08-21 18:35:01 +01:00
Nicholas Marriott
e3864c383f
Remove from TODO.
2013-08-21 18:33:34 +01:00
Nicholas Marriott
25c0dc5e6e
++ to TODO.
2013-08-21 18:30:27 +01:00
Nicholas Marriott
8954d01f96
+ to TODO.
2013-08-21 18:28:31 +01:00
Nicholas Marriott
b2fe9bff3f
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-08-21 18:03:07 +01:00
Nicholas Marriott
a36da3a878
Remove the barely-used and unnecessary command check() function.
2013-08-21 18:01:40 +01:00
Thomas
c103f2fbcb
Clear window->flags when clearing winlinks
...
When clearing WINLINK_ALERTFLAGS for all sessions, we must also, for that
window, clear the window->flags as well, otherwise sessions may well still
see flags for winlinks long since cleared.
This therfore introduces WINDOW_ALERTFLAGS to help with this.
2013-08-20 13:03:53 +01:00
Thomas
aa4920fea3
choose-tree: Reset top when toggling items
...
When choose-tree is told to expand/collapse items (especially when first
rendering collapsed to just show sessions), ensure that in addition to
setting the selected item, that the item itself appears on the bottom of the
screen, rather than off screen.
This was causing rendering glitches when a very small tmux window tried to
render a list of items in choose-tree much larger than itself, and the
selected item appeared off screen, and didn't show the selection until the
selection had wrapped around to the top of the screen.
2013-08-20 00:05:28 +01:00
Thomas Adam
5532766b19
Renumber windows: Lookup lastw via window not index
...
When calling 'movew -r' on a session to reorder the winlinks, ensure when
adding back in the information for the lastw stack that we look up the
winlink based on the window and not its index.
Using the index doesn't make sense here because when comparing it to the old
set, it will never match since the winlink has been renumbered.
Bug reported by Ben Boeckel.
2013-08-20 00:04:07 +01:00
Thomas
5dbf3cb036
Assign mouse x/y coords before checking them
...
When receiving mouse inputs, we should set the x/y coordinates earlier than
we currently do, so that we aren't off-by-one in the case when the statusbar
is at the top of the screen.
2013-08-20 00:02:38 +01:00
Nicholas Marriott
ddf929390e
Accept multiple parameters to SM/RM/DECSET/DECRST, based on a diff from Hayaki
...
Saito.
2013-08-19 22:31:38 +01:00
Nicholas Marriott
23519fc0b4
Add automatic-rename-format option allowing automatic rename to use something
...
other than pane_current_command.
2013-08-19 22:16:11 +01:00
Nicholas Marriott
04288fcd4c
Allow nested format expansion.
2013-08-19 22:14:55 +01:00
Nicholas Marriott
84c22d053b
Add length limit operator for formats.
2013-08-03 21:06:38 +01:00
Nicholas Marriott
7581762c8e
+ to TODO.
2013-08-02 13:53:17 +01:00
Nicholas Marriott
7673732c0f
Handle input mouse positions <33 (we already can generate them).
2013-08-02 08:51:57 +01:00
Nicholas Marriott
2dfd3fbd71
Only include actual trailing spaces not unused cells with capturep -J, from
...
George Nachman.
2013-08-01 23:47:45 +01:00
Nicholas Marriott
3a13e066ba
Allow the file descriptor received from the client to be -1 - it can be on
...
Cygwin when stdin is not a terminal. Reported by A Young, SF bug 52.
2013-08-01 23:42:39 +01:00
Nicholas Marriott
bcd9bcae2a
Add formats for window flags.
2013-08-01 23:41:39 +01:00
Nicholas Marriott
939f796f08
Don't leak formats if they are added multiple times.
2013-08-01 23:40:44 +01:00
Nicholas Marriott
27364345bf
Don't add client formats when they are NULL.
2013-08-01 23:39:09 +01:00
Nicholas Marriott
35c19ffc28
Missing space in refresh-client synopsis.
2013-08-01 23:38:53 +01:00
Nicholas Marriott
b0b5cad496
Grouped sessions were being leaked on destroy, correctly free them.
2013-08-01 23:38:35 +01:00
Nicholas Marriott
965edf8a5c
Make recalculate_sizes() handle an empty window with no active pane. This can
...
happen when a window is in two sessions - it isn't destroyed immediately when
the pane goes away but is left until the last session is destroyed. Fixes
problems with grouped sessions reported by Daniel Ralston.
2013-08-01 23:37:45 +01:00
Nicholas Marriott
1c271852fc
Pass flags into cmdq_guard as an argument since sometimes cmdq->cmd can be
...
NULL. Avoids crash when a command in a command client can't be parsed.
2013-08-01 23:35:03 +01:00
Nicholas Marriott
7ea560261c
Add destroy entry to TODO.
2013-07-27 19:57:21 +01:00
schwarze
304ea079d2
use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@
2013-07-16 00:07:52 +00:00
Thomas Adam
c190c73240
Merge branch 'obsd-master'
2013-07-13 16:57:51 +01:00
Nicholas Marriott
e8567098a4
Add support for Cgywin, apparently it is enough just to open the tty again in
...
the server and fd passing is not necessary. Needs some ifdefs unfortunately but
no way around that and some of them can go next time we're willing to do a
protocol bump. Patch from J Raynor jxraynor at gmail dot com.
2013-07-12 22:21:42 +01:00
Nicholas Marriott
a9ebb62d54
Make next-word-end work properly with vi(1) keys, reported by patrick
...
keshishian.
2013-07-12 09:52:36 +00:00
Thomas Adam
bdea2f9eda
Merge branch 'obsd-master'
2013-07-06 11:18:49 +01:00
Nicholas Marriott
f5b041e394
Add pane_synchronized format, from Romain Francoise.
2013-07-05 15:27:14 +00:00
Nicholas Marriott
e496a548d7
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-07-05 16:24:13 +01:00
Nicholas Marriott
3d39b18e31
Section on clipboard, from Thomas Adam.
2013-07-05 16:23:33 +01:00
Nicholas Marriott
a96a8a1aab
Clarify error messages when setting options, from Thomas Adam.
2013-07-05 15:10:38 +00:00
Nicholas Marriott
064124cc5f
When the session option renumber-window is used, ensure we iterate over
...
all sessions in that group when the winlinks are reordered, otherwise
the winlink lists are out of sync with one another. From Thomas Adam.
2013-07-05 14:52:33 +00:00
Nicholas Marriott
7af5fec038
Whitespace nits, from Ben Boeckel.
2013-07-05 14:44:06 +00:00
Nicholas Marriott
f884fff869
Implement s, S, C mode switch commands in vi(1) mode, from Ben Boeckel.
2013-07-05 14:38:23 +00:00
Nicholas Marriott
c7a121cfc0
Focus events can cause trouble if left on and they can't be turned off
...
during idle periods (like the other states are) because we'd miss
events. So add a server option to control them. Defaults to off.
2013-06-28 20:55:16 +01:00
Nicholas Marriott
777be296ee
Always push a focus event when the application turns it on, prompted by
...
discussion with Hayaki Saito a while ago.
2013-06-28 20:55:16 +01:00
Nicholas Marriott
a0172a6ae5
Mark control commands specially so the client can identify them, based
...
on a diff from George Nachman a while back.
2013-06-28 20:55:16 +01:00
Nicholas Marriott
1099442c0a
+strings.h in compat/.
2013-06-25 09:57:49 +01:00
Nicholas Marriott
18989cd430
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-06-25 09:49:14 +01:00
Nicholas Marriott
828145456c
Don't set TMUX_CONF in tmux.h.
2013-06-25 09:48:09 +01:00
Nicholas Marriott
097a046e4a
Use _XPG6 on Solaris with GCC because the headers are insane and don't like GCC
...
with -std=gnu99 and _XPG4_2. We should not really be using _XPG* at all but
there doesn't seem to be a magic define that says "give me the latest
standard", and things are further confused by the CMSG_DATA check in
configure.ac which sets _XOPEN_SOURCE _XOPEN_SOURCE_EXTENDED.
While here add COPYING to EXTRA_DIST.
2013-06-25 09:35:42 +01:00
Nicholas Marriott
3977dba761
Focus events can cause trouble if left on and they can't be turned off
...
during idle periods (like the other states are) because we'd miss
events. So add a server option to control them. Defaults to off.
2013-06-23 13:10:46 +00:00
Nicholas Marriott
a41cd8d75b
Always push a focus event when the application turns it on, prompted by
...
discussion with Hayaki Saito a while ago.
2013-06-23 12:51:28 +00:00
Nicholas Marriott
662d471215
Mark control commands specially so the client can identify them, based
...
on a diff from George Nachman a while back.
2013-06-23 12:41:54 +00:00
Thomas Adam
06b5805479
Merge branch 'obsd-master'
2013-06-13 18:12:49 +01:00
Stuart Henderson
d6debc21c7
revert r1.156 "Add support for focus notifications when tmux pane changes"
...
beck@ found annoying beeps if a machine was shutdown while tmux is running
and you then focus in/out of an xterm; kettenis tracked it down to 1.156.
2013-06-11 19:18:02 +00:00
Jason McIntyre
ddb52a2b15
escape "Ss", becuase groff thinks it has found a macro;
2013-06-02 14:40:17 +00:00
Nicholas Marriott
13441e8cb8
The actual terminfo entries we ended up with for cursor changes are Cs,
...
Ce, Ss and Se (not Cc, Ce, Cs, Csr). So use and document these instead
of the ones we were using earlier.
2013-06-02 07:52:15 +00:00
Thomas Adam
a97d5b8e60
Amend tmux.1 handling in .gitignore
...
Now that tmux.1 is used as the canonical source for man page documentation,
ensure that we ignore tmux.1.{mdoc,man} instead.
2013-06-01 10:58:39 +01:00
Thomas Adam
399d7380a5
Merge branch 'obsd-master'
2013-05-31 21:44:42 +01:00
Nicholas Marriott
c231381aa3
Demote the old single-character replacement variables (#S and friends)
...
to aliases of formats. From Tiago Cunha.
2013-05-31 19:56:05 +00:00
Nicholas Marriott
c30d60f7ae
Add host_short format, from Tiago Cunha.
2013-05-31 19:46:42 +00:00
Nicholas Marriott
9fb9f78e43
Use u_char for the send-keys string to avoid mangling top-bit-set
...
characters when they are promoted to int and passed to
window_pane_key. Reported by Jacob Bang.
2013-05-31 12:50:05 +00:00
Nicholas Marriott
a0cf65db77
Instead of eating 1024 bytes or so for the arguments of each command,
...
save memory by using an RB tree. From Tiago Cunha.
2013-05-31 12:19:34 +00:00
Nicholas Marriott
2ee9c4df12
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-05-31 13:00:11 +01:00
Nicholas Marriott
e6c77e7afb
Add a COPYING file, suggested by Dagobert Michelsen.
2013-05-31 12:59:17 +01:00
Thomas Adam
76cb088d16
Merge branch 'obsd-master'
...
Conflicts:
tmux.h
2013-05-25 11:48:12 +01:00
Nicholas Marriott
907ad00300
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
...
Conflicts:
Makefile.am
2013-05-15 16:50:15 +01:00
Nicholas Marriott
88a4da9747
Don't let cursor position overflow when reflowing, from Christopher
...
Collins.
2013-05-15 15:39:51 +00:00
Nicholas Marriott
25c430b1cd
Reserve space for \0 in cmd_print, from George Nachman.
2013-05-15 15:34:09 +00:00
Nicholas Marriott
772d61f3ed
RIS should reset focus reporting, from Hayaki Saito.
2013-05-15 15:32:14 +00:00
Nicholas Marriott
5b1cf02f2e
Rename tmux.1.in back to tmux.1 and generate tmux.1.{mdoc,man} instead.
2013-05-15 16:27:30 +01:00
Nicholas Marriott
66f4c60a84
Don't limit width and height to 222 in standard mouse mode.
2013-05-07 11:00:16 +00:00
Nicholas Marriott
fce095665c
Use $(srcdir) for generating tmux.1, reported by fasta_ on IRC.
2013-04-28 15:37:02 +01:00
Nicholas Marriott
2555ac58cc
.Op Fl b not .Fl b for run-shell synopsis, from Ben Boeckel.
2013-04-24 10:15:47 +00:00
Nicholas Marriott
e323101ede
Rename global configuration define.
2013-04-24 10:01:32 +00:00
Nicholas Marriott
ce52e45d44
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-04-24 11:00:32 +01:00
Nicholas Marriott
4f3c31a6b6
Use sysconfdir for the location of global tmux.conf (but default it to /etc),
...
based on changes from Dagobert Michelsen.
2013-04-24 10:57:03 +01:00
Thomas Adam
70bc8ef845
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-04-23 08:26:51 +01:00
Thomas Adam
cd60e57b6a
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2013-04-23 08:26:04 +01:00
Nicholas Marriott
3d2b7d5bce
When using choose-tree -u, start with the current window
...
highlighted. From Thomas Adam.
2013-04-22 22:17:29 +00:00
Nicholas Marriott
04f54ab38f
Get session of -t window rather than client's window.
2013-04-22 16:34:53 +00:00
Nicholas Marriott
46c7dbef0f
Call recalculate_sizes() after killing window in case it is in a grouped
...
session, from Daniel Ralston.
2013-04-22 13:35:18 +00:00
Nicholas Marriott
11b90bc959
Pass tmux.1.in to awk on stdin rather than as an argument.
2013-04-22 14:04:40 +01:00
Nicholas Marriott
792e2856c9
Add compat for cfmakeraw, from Dagobert Michelsen.
2013-04-22 09:44:15 +01:00
Nicholas Marriott
d89b35e682
Use lockf which is more portable than flock, from Dagobert Michelsen.
2013-04-22 08:42:19 +00:00
Nicholas Marriott
a46ccbd883
-paths.h. Fixes Solaris, from Dagobert Michelsen.
2013-04-22 09:39:21 +01:00
Nicholas Marriott
5dda1abc32
Don't let server_client_check_focus use a dead bufferevent, from Romain
...
Francoise.
2013-04-21 21:32:00 +00:00
Theo Deraadt
55640a31b3
(long long) and %lld for time_t output
...
ok nicm
2013-04-17 14:52:31 +00:00
Nicholas Marriott
88428cff3a
%zu format for size_t.
2013-04-17 08:41:41 +00:00
Nicholas Marriott
c24b58e2ee
Generate tmux.1 using mdoc2man.awk on Solaris, issue brought up and changes
...
tested by Dagobert Michelsen.
2013-04-16 11:33:53 +01:00
Nicholas Marriott
9e537c808b
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-04-16 10:39:48 +01:00
Thomas Adam
2c4543b9e9
Add back missing -V flag
...
This went walkies from a previous git commit.
2013-04-14 18:07:08 +01:00
Thomas Adam
b58bca9a72
Merge branch 'obsd-master'
...
Conflicts:
tmux.c
2013-04-13 17:05:49 +01:00
Nicholas Marriott
27dcf470dc
Remove some Korean characters from the zero-width list that apparently
...
shouldn't be there, from Jeong Mok Cho.
2013-04-12 12:50:36 +00:00
Nicholas Marriott
caa8290510
Copy the client into the new cmdq in source-file so commands that work
...
on it (such as new-session) can work. Fixes issue reported by oss-adv at
users dot sf dot net.
2013-04-12 12:44:31 +00:00
Nicholas Marriott
7f9b225cc2
Call setlocale(LC_TIME) at startup.
2013-04-11 21:52:18 +00:00
Nicholas Marriott
4ccb2e2c21
TODO tweaks.
2013-04-11 22:45:05 +01:00
Nicholas Marriott
cbee283c26
Send an SGR0 after turning on modifyOtherKeys to fix Terminal.app which
...
treats \033[>4;1m and \033[4;1m (bold+underline). Reported & tested by
otto@.
2013-04-11 07:27:27 +00:00
Nicholas Marriott
9fcda95a6f
Set EV_WRITE for jobs or run/if-shell jobs can hang. From Chris Johnsen.
2013-04-10 12:20:35 +00:00
Nicholas Marriott
7ada64d5f8
Fix bug where end guard in control mode was not printed after session
...
destroyed, from George Nachman.
2013-04-10 12:15:36 +00:00
Nicholas Marriott
20f0d917be
Missed -o from set-window-option, from Ben Boeckel.
2013-04-10 12:07:18 +00:00
Nicholas Marriott
e312db1408
Add wait-for to tmux.vim from Ben Boeckel.
2013-04-10 13:04:19 +01:00
Nicholas Marriott
743bd1275f
Need errno.h, reported by Swaroop M S.
2013-04-10 12:52:40 +01:00
Nicholas Marriott
69c86379e3
Remove some code not needed on OpenBSD.
2013-04-10 11:51:16 +00:00
Nicholas Marriott
46b3c1a025
Use proc_bsdinfo which works on older OS X versions, from OZAKI Kiichi.
2013-04-10 12:46:29 +01:00
Nicholas Marriott
3ea893464f
TODO changes.
2013-04-10 12:43:08 +01:00
Nicholas Marriott
738e789dbd
If -s to swap-pane is not given, use the current pane.
2013-03-28 15:08:12 +00:00
Nicholas Marriott
66afcf5be0
Make copy-mode -u still scroll up if already in copy mode, handy for
...
people who bind it with -n.
2013-03-28 15:07:42 +00:00
Nicholas Marriott
4b0ed56e32
Tidy up and trim down TODO file.
2013-03-28 12:42:00 +00:00
Nicholas Marriott
dc2af8347b
New code doesn't build on old versions of OS X so only support 10.7 and
...
later. Reported by Jared Scheel and tested by Chris Johnsen.
2013-03-28 08:36:34 +00:00
Nicholas Marriott
64ea8829af
Add define for timersub to compat.h.
2013-03-28 00:00:13 +00:00
Nicholas Marriott
629cfec8a3
Trivial typo fixes in changes.
2013-03-27 23:37:05 +00:00
Nicholas Marriott
7f63658709
Add TMUX_TMPDIR variable to put the socket directory outside
...
TMPDIR. From Ben Boeckel.
2013-03-27 11:24:18 +00:00
Nicholas Marriott
5e4d9a3197
Move the cursor back into the last column on CUU/CUD to match xterm
...
behaviour. From George Nachman.
2013-03-27 11:19:19 +00:00
Nicholas Marriott
982354765b
Remove tmux's (already minimal) 88 colour support. Such terminals are
...
few and unnecessary.
2013-03-27 11:17:12 +00:00
Thomas Adam
5fe0576dcb
Working on 1.9
2013-03-26 20:33:10 +00:00
Thomas Adam
1b083aa0fd
Update CHANGES and configure.ac for 1.8 release.
2013-03-26 20:19:04 +00:00
Thomas
399a15b9fc
Merge branch 'obsd-master'
2013-03-26 16:59:37 +00:00
Nicholas Marriott
dfac36b6c3
Only accept partial keys if the timer has not expired, fixes infinite
...
loop when Escape is pressed the wrong number of times.
2013-03-26 14:14:08 +00:00
Nicholas Marriott
771d7db3a6
Fix compiler warnings, missing #include. From Thomas Adam.
2013-03-26 10:54:48 +00:00
Thomas
00af2df102
Merge branch 'obsd-master'
2013-03-25 16:30:37 +00:00
Nicholas Marriott
be390c1991
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-03-25 16:13:22 +00:00
Nicholas Marriott
2fd0cb7600
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
...
Conflicts:
TODO
cmd-queue.c
cmd-server-info.c
cmd-wait-for.c
tmux.1
2013-03-25 16:11:22 +00:00
Thomas Adam
5f5d413408
Remove compat/vis.h from cmd-save-buffer.
...
The include for compat.h in tmux.h takes care of this.
BUG-ID: N/A
2013-03-25 16:09:34 +00:00
Nicholas Marriott
972da2d498
Try to establish client for run-shell and if-shell if no -t.
2013-03-25 16:04:07 +00:00
Nicholas Marriott
e44bd9f750
Revert the command-prefix change which breaks sequences of commands.
2013-03-25 15:59:57 +00:00
Nicholas Marriott
777edd0269
Add to TODO.
2013-03-25 15:47:16 +00:00
Nicholas Marriott
855d6fe1fe
Add to TODO.
2013-03-25 15:47:10 +00:00
Nicholas Marriott
b625ad6d8b
Use -std=gnu99 not c99 with GCC.
2013-03-25 15:33:23 +00:00
Thomas Adam
97b5df35b1
Portability fix-ups
...
* Ammend the Makefile to include newer commands.
* "compat/vis.h" versus <vis.h>
* Removal of cmd-send-prefix.c and cmd-show-buffer.c
* osdep-* for processes.
BUG-ID: N/A
2013-03-25 15:32:02 +00:00
Thomas Adam
7a87c7eff6
Fixup Makefile
2013-03-25 15:00:56 +00:00
Thomas Adam
f90eb43fcb
Merge branch 'obsd-master'
2013-03-25 14:59:29 +00:00
Nicholas Marriott
a09d8e88fc
Use -std=gnu99 not c99 with GCC.
2013-03-25 12:16:03 +00:00
Nicholas Marriott
b5fda7ad2a
Spacing, warning nits.
2013-03-25 12:00:30 +00:00
Nicholas Marriott
58bb6f8c56
Set pane resize flag when needed.
2013-03-25 11:55:01 +00:00
Nicholas Marriott
673eb160d4
Sort includes and fix spaces.
2013-03-25 11:53:54 +00:00
Nicholas Marriott
e97e0d7e54
Man page fixes.
2013-03-25 11:49:54 +00:00
Nicholas Marriott
4119c476aa
b comes before t.
2013-03-25 11:46:28 +00:00
Nicholas Marriott
e2295014d9
Process ^[ as meta when a partial key is found.
2013-03-25 11:44:16 +00:00
Nicholas Marriott
43fb9835fa
Add -P and -F to new-session.
2013-03-25 11:44:00 +00:00
Nicholas Marriott
599dd2a560
Create a new context when copying instead of using the input
...
context. The input context may not exist yet. Fixes crash when copying
from config file errors.
2013-03-25 11:43:33 +00:00
Nicholas Marriott
d28a39d01d
Extend jobs to support writing and use that for copy-pipe instead of
...
popen, from Chris Johnsen.
2013-03-25 11:43:01 +00:00
Nicholas Marriott
270d90ce1e
Handle empty pending output (not a failure) and add \n. From George
...
Nachman.
2013-03-25 11:42:19 +00:00
Nicholas Marriott
0c969a7dfd
Handle no client better in display-message.
2013-03-25 11:42:01 +00:00
Nicholas Marriott
111d993e75
When only two panes in a window, only draw half the separating line as
...
active.
2013-03-25 11:41:49 +00:00
Nicholas Marriott
0ef24f9912
Only send end guard if begin was sent, from George Nachman.
2013-03-25 11:41:16 +00:00
Nicholas Marriott
87fe1c0b0e
Include prefix on ids, from George Nachman.
2013-03-25 11:40:54 +00:00
Nicholas Marriott
114d822d27
Don't zoom windows with one pane, from Romain Francoise.
2013-03-25 11:39:11 +00:00
Nicholas Marriott
88b92df849
We ignore SIGWINCH until ready, so send a MSG_RESIZE immediately when
...
becoming ready.
2013-03-25 11:38:57 +00:00
Nicholas Marriott
e4c0730bf1
Use single stdout and stderr for control clients.
2013-03-25 11:36:59 +00:00
Nicholas Marriott
8a40e10d55
Add time and a command count to control mode guards, based on code from
...
George Nachman.
2013-03-25 11:35:55 +00:00
Nicholas Marriott
e0961dfdf4
Fix handling of short (< 4 character) checksums and a bug with parsing
...
old-style custom layouts. Based on fix from Chris Johnsen.
2013-03-25 11:35:30 +00:00
Nicholas Marriott
446fb0cb9c
Do not redraw panes if invisible.
2013-03-25 10:12:01 +00:00
Nicholas Marriott
6fee3e9e4b
Rename session idx to session id throughout and add $ prefix to targets
...
to use it, extended from a diff from George Nachman.
2013-03-25 10:11:45 +00:00
Nicholas Marriott
748acdc77c
Add wait-for -L and -U for lock and unlock, from Thiago Padilha.
2013-03-25 10:09:35 +00:00
Nicholas Marriott
410a3abbef
Add a wait-for command which blocks a client on a named channel until it
...
is woken up again (with wait-for -S). From Thiago Padilha.
2013-03-25 10:09:05 +00:00
Nicholas Marriott
304336a591
Allow lastgc to be NULL in grid_string_cells so find-window doesn't
...
crash, problem reported by eugene everson.
2013-03-25 10:07:40 +00:00
Nicholas Marriott
35452b3e55
Do not leak command in formats, from Romain Francoise.
2013-03-25 10:07:21 +00:00
Nicholas Marriott
ebd9c615c8
Add some additional debug logging.
2013-03-25 10:06:13 +00:00
Nicholas Marriott
e9cef8bf30
Continue the parent cmdq after sourcing a file.
2013-03-25 10:05:58 +00:00
Nicholas Marriott
e85f764f23
Preserve trailing spaces with capture-pane -J, from George Nachman.
2013-03-25 10:05:35 +00:00
Nicholas Marriott
e2e85650ac
tty.path can be NULL, don't dereference it. From George Nachman.
2013-03-25 10:04:44 +00:00
Nicholas Marriott
2c14a771a8
Remove some unused/unnecessary control notifications, from George Nachman.
2013-03-25 10:04:23 +00:00
Nicholas Marriott
d39b1a87a5
Add -q flags to shut up errors to capture-pane and show-options, from
...
George Nachman.
2013-03-25 10:04:04 +00:00
Nicholas Marriott
62db3c8efe
Send DSC 1000p at the beginning of a -CC client's lifetime and ST and
...
the end, from George Nachman.
2013-03-25 10:03:24 +00:00
Nicholas Marriott
efa06643b0
Remove previous.
2013-03-25 10:03:00 +00:00
Nicholas Marriott
14fad6a5cc
Add -A flag to new-session to make it behave like attach-session if the
...
session exists. If -A is used, -D behaves like -d to attach-session.
2013-03-24 09:58:40 +00:00
Nicholas Marriott
c71844de63
Add resize-pane -Z to temporary zoom the active pane to occupy the full
...
window or unzoom (restored to the normal layout) if it already zoomed,
bound to C-b z by default. The pane is unzoomed on pretty much any
excuse whatsoever.
We considered making this a new layout but the requirements are quite
different from layouts so decided it is better as a special case. Each
current layout cell is saved, a temporary one-cell layout generated and
all except the active pane set to NULL.
Prompted by suggestions and scripts from several. Thanks to Aaron Jensen
and Thiago Padilha for testing an earlier version.
2013-03-24 09:57:59 +00:00
Nicholas Marriott
a05b8c4143
Add a -o option to set-option to prevent setting an option already set,
...
from Thiago Padilha.
2013-03-24 09:55:02 +00:00
Nicholas Marriott
20636d956d
Add a command queue to standardize and simplify commands that call other
...
commands and allow a command to block execution of subsequent
commands. This allows run-shell and if-shell to be synchronous which has
been much requested.
Each client has a default command queue and commands are consumed one at
a time from it. A command may suspend execution from the queue by
returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() -
for example run-shell does this from the callback that is fired after
the job is freed.
When the command queue becomes empty, command clients are automatically
exited (unless attaching). A callback is also fired - this is used for
nested commands in, for example, if-shell which can block execution of
the client's cmdq until a new cmdq becomes empty.
Also merge all the old error/info/print functions together and lose the
old curclient/cmdclient distinction - a cmdq is bound to one client (or
none if in the configuration file), this is a command client if
c->session is NULL otherwise an attached client.
2013-03-24 09:54:10 +00:00
Nicholas Marriott
66edb3392b
Expand format variables in the run-shell and if-shell shell commands,
...
from Thiago Padilha.
2013-03-24 09:33:35 +00:00
Nicholas Marriott
86adcd4b26
Add pane_tabs format to format_window_pane based on code from George
...
Nachman.
2013-03-24 09:29:40 +00:00
Nicholas Marriott
a60687f9ba
Handle focus events from the terminal, from Aaron Jensen.
2013-03-24 09:28:59 +00:00
Nicholas Marriott
bb8457b166
Fix error reporting for client commands by adding a flag to
...
cmd_find_client to tell it whether or not to show errors, sometimes it's
needed and sometimes not.
2013-03-24 09:27:19 +00:00
Nicholas Marriott
3eae71b5b2
Do pane resize ioctls once at the end of the server loop rather than
...
immediately.
2013-03-24 09:25:04 +00:00
Nicholas Marriott
8094e82287
Add option command-prefix which is automatically prepended to any
...
command (apart from a naked default-shell). The default is "exec ".
2013-03-24 09:21:27 +00:00
Nicholas Marriott
1ec4354998
Add support for focus notifications when tmux pane changes, based on
...
work by Aaron Jensen.
2013-03-24 09:18:16 +00:00
Nicholas Marriott
ac1fe83596
Couple of fixes pointed out by jmc.
2013-03-22 18:45:36 +00:00
Nicholas Marriott
c7d1849e1c
Process ^[ as meta when a partial key is found.
2013-03-22 17:02:12 +00:00
Nicholas Marriott
7f191c7951
Add -P and -F to new-session.
2013-03-22 17:01:15 +00:00
Nicholas Marriott
702ab8bab0
Add a load of miscellaneous pane formats, from George Nachman.
2013-03-22 16:03:35 +00:00
Nicholas Marriott
eaaeb28cda
Add session_set_current helper function, extracted from a diff from
...
Aaron Jensen.
2013-03-22 16:00:26 +00:00
Nicholas Marriott
295d86911e
Add -C and -J to capture pane to escape control sequences and to join
...
wrapped line, based on a diff from George Nachman.
2013-03-22 15:56:11 +00:00
Nicholas Marriott
c519f9a84c
evbuffer_readline returns allocated storage, don't leak it.
2013-03-22 15:55:22 +00:00
Nicholas Marriott
2243cfbe75
Need to set clients in context before changing their reference count.
2013-03-22 15:54:29 +00:00
Nicholas Marriott
d644e5143f
Fix so capture-pane/save-buffer can work in control clients, from George
...
Nachman.
2013-03-22 15:53:24 +00:00
Nicholas Marriott
58932295fc
Add copy-pipe mode command to copy selection and also pipe to a command.
2013-03-22 15:52:40 +00:00
Nicholas Marriott
8478895eeb
Add -e flag to capture-pane to include embedded ANSI SGR escape
...
sequences, from George Nachman.
2013-03-22 15:51:54 +00:00
Nicholas Marriott
8a6fbfa148
Don't use a target-client for stdout, just always cmdclient.
2013-03-22 15:51:15 +00:00
Nicholas Marriott
a1722d5c2e
Remove unnecessary initializers of cmd_ctx.
2013-03-22 15:50:42 +00:00
Nicholas Marriott
0ff9275ad7
load_cfg can actually use the same context now they are reference counted.
2013-03-22 15:50:13 +00:00
Nicholas Marriott
d1e6ce2672
Add functions to allocate and free command contexts rather than doing it
...
all on the stack.
2013-03-22 15:49:55 +00:00
Nicholas Marriott
0ccd84d2ef
Instead of skipping del_curterm on FreeBSD < 7, skip it on ncurses < 5.7. It
...
looks like 5.6 on Linux has the problem too. Reported by Myles Dear.
2013-03-22 15:36:45 +00:00
Nicholas Marriott
29613f2f31
Prevent lock on control clients, not on others.
2013-03-22 10:42:55 +00:00
Nicholas Marriott
8c545bbfa8
Don't try to print unterminated strings when loading configuration file.
2013-03-22 10:41:57 +00:00
Nicholas Marriott
f19836550b
Unbreak line wrapping.
2013-03-22 10:41:01 +00:00
Nicholas Marriott
79f5fe6f5b
Use tty_raw on stop, not tty_puts.
2013-03-22 10:40:22 +00:00
Nicholas Marriott
2f5fa4ee9d
Don't hang when clearing line in choose mode now that the cursor stays
...
at the end with wrap.
2013-03-22 10:38:33 +00:00
Nicholas Marriott
db66d85176
Fix double space in sessions template.
2013-03-22 10:38:13 +00:00
Nicholas Marriott
f0efa576e0
Add resize-pane -x and -y for absolute pane size (much requested).
2013-03-22 10:37:39 +00:00
Nicholas Marriott
ad5df9bc2f
Implement DECAWM (SM/RM 7) using existing MODE_WRAP flag.
2013-03-22 10:36:53 +00:00
Nicholas Marriott
22a2949bd2
Correctly handle UTF8 mouse option being toggled, from Egmont Koblinger.
2013-03-22 10:34:46 +00:00
Nicholas Marriott
67b4d5b609
Support the latest theory for mouse input, this is enabled/disabled with
...
SM/RM 1006 and is similar in style to SGR input: \033[<b;x;yM or
\033[b;x;ym. From Egmont Koblinger.
2013-03-22 10:33:50 +00:00
Nicholas Marriott
ad760b3bf7
Add client_session and client_last_session formats.
2013-03-22 10:32:36 +00:00
Nicholas Marriott
8d59b189cc
No more lint means no more ARGSUSED.
2013-03-22 10:31:22 +00:00
Nicholas Marriott
306a3b8d80
In terminals with XT, turn on modifyOtherKeys=1 with the escape sequence
...
and handle the most common set. Pass them through if xterm-keys is on.
2013-03-22 10:30:04 +00:00
Nicholas Marriott
041a911c43
Create a new context when copying instead of using the input context. The input
...
context may not exist yet.
2013-03-21 23:57:21 +00:00
Nicholas Marriott
10682b9e7e
Instead of loads of little screen_write_*_on and off functions which
...
just change mode flags, just have screen_write_mode_set and
screen_write_mode_clear.
2013-03-21 18:47:56 +00:00
Nicholas Marriott
c5504af4a6
Add various checks to turn off bits that can't work in control mode
...
(such as lock).
2013-03-21 18:47:01 +00:00
Nicholas Marriott
49ac5b5fe0
Do not include status line in size calculations in control mode.
2013-03-21 18:46:12 +00:00
Nicholas Marriott
d4785fe798
Don't set key KEYC_NONE on xterm_keys_find match()
...
When calling xterm_keys_find(); if we get a complete match, don't set
the key to unknown before calling the action to complete the binding;
otherwise non-prefixed bindings will not work.
From Thomas Adam
2013-03-21 18:45:38 +00:00
Nicholas Marriott
3d24c75d0f
Include the \033 in the key tree and adjust key matching for this change.
2013-03-21 18:44:47 +00:00
Nicholas Marriott
78543cce30
Support capture-pane -p to send to stdout.
2013-03-21 18:43:34 +00:00
Jason McIntyre
55bf2ecc68
tweak previous; ok nicm
2013-03-21 17:42:36 +00:00
Nicholas Marriott
51ac2a3202
Fix a couple of memory leaks, from Romain Francoise.
2013-03-21 16:54:37 +00:00
Nicholas Marriott
48291f0eeb
Make choose-tree actually work again.
2013-03-21 16:53:12 +00:00
Nicholas Marriott
d5139d1401
Fix a comment for new key table names.
2013-03-21 16:52:02 +00:00
Nicholas Marriott
3665be7c44
Tidy by splitting default key tables into two.
2013-03-21 16:50:22 +00:00
Nicholas Marriott
801d64a16e
Add -c to refresh-client to set client size in control mode, based on
...
code from George Nachman.
2013-03-21 16:49:37 +00:00
Nicholas Marriott
dd46c95e23
Aargh. Spaces -> tabs.
2013-03-21 16:25:08 +00:00
Nicholas Marriott
4920306486
Clarify choose-tree entry in man page.
2013-03-21 16:23:46 +00:00
Nicholas Marriott
66414029a1
Run session command before window in choose-tree.
2013-03-21 16:23:07 +00:00
Nicholas Marriott
51d989f5df
Do not crash when calling choose-tree with a command that changes the mode.
2013-03-21 16:22:48 +00:00
Nicholas Marriott
c982279950
Fix constness of cmd_template_replace, window_choose_add_item and
...
window_choose_add_window.
2013-03-21 16:19:25 +00:00
Nicholas Marriott
0c0953f3bd
Add user options, prefixed with @. May be set to any arbitrary string.
2013-03-21 16:17:01 +00:00
Nicholas Marriott
69fe5ca567
Add -v to set and setw to show only option value.
2013-03-21 16:15:52 +00:00
Nicholas Marriott
63b4fd5cac
Add a format client_prefix which is 1 if prefix key has been
...
pressed, used for example #{?client_prefix,X,Y}. Also a few extra
server_client_status needed.
2013-03-21 16:14:09 +00:00
Nicholas Marriott
dd76497ab0
Show alias in lscm output.
2013-03-21 16:12:50 +00:00
Nicholas Marriott
9b7e18f166
Rework reflow code so it does not do so much allocation which should be
...
faster with large histories.
2013-03-21 16:12:10 +00:00
Nicholas Marriott
180faf73af
Allow choose commands to be used outside tmux, so long as at least one
...
client is attached.
2013-03-21 16:09:59 +00:00
Nicholas Marriott
6ddb06d372
Extend jobs to support writing and use that for copy-pipe instead of popen,
...
from Chris Johnsen.
2013-03-21 14:24:33 +00:00
Nicholas Marriott
69d97f6d4b
Handle empty pending output (not a failure) and add \n. From George Nachman.
2013-03-19 09:34:00 +00:00
Nicholas Marriott
f5de847a0c
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-03-17 23:45:19 +00:00
Nicholas Marriott
6bdc947f6b
Handle no client better in display-message.
2013-03-14 16:02:33 +00:00
Nicholas Marriott
919bde7cb1
When only two panes in a window, only draw half the separating line as active.
2013-03-14 12:08:26 +00:00
Nicholas Marriott
3d974b7267
Don't let display-message crash if no client, from George Nachman.
2013-03-14 07:31:20 +00:00
Nicholas Marriott
c5ad47ee7c
Only send end guard if begin was sent, from George Nachman.
2013-03-13 07:31:36 +00:00
Nicholas Marriott
4d38b6d1fa
Include prefix on ids, from George Nachman.
2013-03-13 07:28:12 +00:00
Nicholas Marriott
9e879b4aab
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-03-12 22:49:56 +00:00
Nicholas Marriott
99934bf998
Write escaped output in control mode rather than hex, from George Nachman.
2013-03-12 22:48:58 +00:00
Nicholas Marriott
8840f2d629
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-03-12 14:59:27 +00:00
Nicholas Marriott
d32a546d6e
Clarify zoom/unzoom, from Romain Francoise.
2013-03-12 14:58:48 +00:00
Nicholas Marriott
8aa40ec1c7
Don't zoom windows with one pane, from Romain Francoise.
2013-03-12 12:18:52 +00:00
Nicholas Marriott
543420ccd2
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-03-11 21:31:46 +00:00
Nicholas Marriott
064022548b
We ignore SIGWINCH until ready, so send a MSG_RESIZE immediately when becoming
...
ready.
2013-03-11 21:30:48 +00:00
Nicholas Marriott
7c00950967
Don't add prefix to %output pane id.
2013-03-11 15:28:34 +00:00
Nicholas Marriott
b5516771d3
Clean up capture-pane and add -P option to dump pending output, based on code
...
from George Nachman.
2013-03-11 13:47:29 +00:00
Nicholas Marriott
7b4084a15a
Document control mode in the manpage, from George Nachman.
2013-03-11 13:06:30 +00:00
Nicholas Marriott
412ac6bc3a
Use single stdout and stderr for control clients.
2013-03-11 09:46:18 +00:00
Nicholas Marriott
a6ad44f111
Fix if-shell and run-shell if there are no sessions. Batted around through
...
several people, finished off by Chris Johnsen.
2013-03-11 09:43:56 +00:00
Nicholas Marriott
97620bb5be
Add a home and end as modified by xterm in keypad mode, from Chris Johnsen.
2013-03-11 09:37:52 +00:00
Nicholas Marriott
49ed75d883
Fix a warning.
2013-03-11 09:37:16 +00:00
Nicholas Marriott
c41d92d27a
Add time and a command count to control mode guards, based on code from George
...
Nachman.
2013-03-11 09:35:44 +00:00
Nicholas Marriott
a060aa2bf0
Fix handling of short (< 4 character) checksums and a bug with parsing
...
old-style custom layouts. Based on fix from Chris Johnsen.
2013-03-10 23:41:59 +00:00
Nicholas Marriott
2ac6501698
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-03-09 21:33:28 +00:00
Nicholas Marriott
06ac399ce6
Zoom script is no longer needed.
2013-03-09 21:32:47 +00:00
Nicholas Marriott
dde5d49a5e
Do not redraw panes if invisible.
2013-03-09 17:29:22 +00:00
Nicholas Marriott
89d3f13945
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-03-07 10:09:13 +00:00
Nicholas Marriott
f47a063841
Rename session idx to session id throughout and add $ prefix to targets to use
...
it, extended from a diff from George Nachman.
2013-03-07 10:07:22 +00:00
Nicholas Marriott
e964ff70e6
Fix --disable-static, reported by Shea Levy.
2013-03-06 14:58:48 +00:00
Nicholas Marriott
bc3580fa06
Add wait-for -L and -U for lock and unlock, from Thiago Padilha.
2013-03-06 11:00:55 +00:00
Nicholas Marriott
7fd4d49d56
Add a wait-for command which blocks a client on a named channel until it is
...
wokrn up again (with wait-for -S). From Thiago Padilha.
2013-03-06 09:57:26 +00:00
Nicholas Marriott
ec75f9d1a3
Allow lastgc to be NULL in grid_string_cells so find-window doesn't crash,
...
problem reported by eugene everson.
2013-03-06 09:56:31 +00:00
Nicholas Marriott
6405fceee2
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-03-05 20:02:47 +00:00
Nicholas Marriott
f9e46a373f
Do not leak command in formats, from Romain Francoise.
2013-03-05 20:01:16 +00:00
Nicholas Marriott
d05debbe19
Unzoom on last-pane and fix a typo, from Romain Francoise.
2013-03-05 18:00:14 +00:00
Nicholas Marriott
f8c86a9515
Add some additional debug logging.
2013-03-05 17:17:59 +00:00
Nicholas Marriott
2c9cddd876
Continue the parent cmdq after sourcing a file.
2013-03-05 17:14:19 +00:00
Nicholas Marriott
aaeee34c32
Preserve trailing spaces with capture-pane -J, from George Nachman.
2013-03-04 11:03:03 +00:00
Nicholas Marriott
70397e4a95
Print %%error not %%end guard on error, from George Nachman.
2013-03-04 09:09:07 +00:00
Nicholas Marriott
43d904dbf3
tty.path can be NULL, don't dereference it. From George Nachman.
2013-03-04 09:02:32 +00:00
Nicholas Marriott
1da64bf786
Remove some unused/unnecessary control notifications, from George Nachman.
2013-03-04 09:01:30 +00:00
Nicholas Marriott
1cb1fb5bd4
Add -q flags to shut up errors to capture-pane and show-options, from George
...
Nachman.
2013-03-04 09:00:24 +00:00
Nicholas Marriott
208881a735
Send DSC 1000p at the beginning of a -CC client's lifetime and ST and the end,
...
from George Nachman..
2013-03-04 08:52:41 +00:00
Thomas Adam
a2f52d4224
Remove previous
2013-02-25 18:25:37 +00:00
Thomas Adam
2ccb67cae4
Plug small memory leak in run-shell
...
Don't potentially leak the command to run were it to fail.
2013-02-25 07:33:21 +00:00
Nicholas Marriott
b2a61348dd
Add -a to capture-pane to capture alternate screen, from George Nachman.
2013-02-24 07:52:03 +00:00
Nicholas Marriott
234f6d27c1
Use \\ not \ for escaping \.
2013-02-24 07:49:54 +00:00
Nicholas Marriott
f339cfd315
Add -A flag to new-session to make it behave like attach-session if the session
...
exists. If -A is used, -D behaves like -d to attach-session.
2013-02-24 00:43:28 +00:00
Nicholas Marriott
c5239c5984
Add resize-pane -Z to temporary zoom the active pane to occupy the full window
...
or unzoom (restored to the normal layout) if it already zoomed, bound to C-b z
by default. The pane is unzoomed on pretty much any excuse whatsoever.
We considered making this a new layout but the requirements are quite different
from layouts so decided it is better as a special case. Each current layout
cell is saved, a temporary one-cell layout generated and all except the active
pane set to NULL.
Prompted by suggestions and scripts from several. Thanks to Aaron Jensen and
Thiago Padilha for testing an earlier version.
2013-02-24 00:25:03 +00:00
Nicholas Marriott
be13479f09
Add a -o option to set-option to prevent setting an option already set, from
...
Thiago Padilha.
2013-02-23 23:22:03 +00:00
Nicholas Marriott
69a8d64716
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
...
Conflicts:
cmd-if-shell.c
cmd-run-shell.c
tmux.1
2013-02-23 22:42:49 +00:00
Nicholas Marriott
3964309c67
Add a command queue to standardize and simplify commands that call other
...
commands and allow a command to block execution of subsequent commands. This
allows run-shell and if-shell to be synchronous which has been much requested.
Each client has a default command queue and commands are consumed one at a time
from it. A command may suspend execution from the queue by returning
CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example
run-shell does this from the callback that is fired after the job is freed.
When the command queue becomes empty, command clients are automatically exited
(unless attaching). A callback is also fired - this is used for nested commands
in, for example, if-shell which can block execution of the client's cmdq until
a new cmdq becomes empty.
Also merge all the old error/info/print functions together and lose the old
curclient/cmdclient distinction - a cmdq is bound to one client (or none if in
the configuration file), this is a command client if c->session is NULL
otherwise an attached client.
2013-02-23 22:25:58 +00:00
Nicholas Marriott
243244d285
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-23 19:26:12 +00:00
Nicholas Marriott
497b27dafb
Expand format variables in the run-shell and if-shell shell commands, from
...
Thiago Padilha.
2013-02-23 19:24:42 +00:00
Nicholas Marriott
ca6d9f799e
Tidy TODO and nuke stuff that is done in some form or not going to happen.
2013-02-23 15:52:56 +00:00
Nicholas Marriott
f1aa5f6a1d
Add to TODO.
2013-02-23 15:43:13 +00:00
Nicholas Marriott
dc50de782a
The visit -> Visit
2013-02-23 15:15:20 +00:00
Nicholas Marriott
2e85eeea37
www Project Page -> SourceForge Page
2013-02-23 14:51:56 +00:00
Nicholas Marriott
357da035b9
Merge send-prefix into send-keys.
2013-02-23 14:41:07 +00:00
Nicholas Marriott
5aa54c863d
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-23 14:23:59 +00:00
Nicholas Marriott
42735d446e
Merge show-buffer into save-buffer.
2013-02-23 14:23:35 +00:00
Nicholas Marriott
57eb334d5b
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-23 13:03:47 +00:00
Nicholas Marriott
5f904aa350
Add pane_tags format to format_window_pane based on code from George Nachman.
2013-02-23 13:02:52 +00:00
Nicholas Marriott
ee0f8adfac
Handle focus events from the terminal, from Aaron Jensen.
2013-02-23 10:01:34 +00:00
Nicholas Marriott
1ed37385c6
Use -O2 without debugging.
2013-02-22 23:37:55 +00:00
Nicholas Marriott
3a2e9d805a
Fix error reporting for client commands by adding a flag to cmd_find_client to
...
tell it whether or not to show errors, sometimes it's needed and sometimes not.
2013-02-22 23:04:53 +00:00
Nicholas Marriott
911ef4e69a
Allow display-message with no curclient.
2013-02-22 22:57:26 +00:00
Nicholas Marriott
1994ae4640
Missing PANE_RESIZE define.
2013-02-22 21:47:34 +00:00
Nicholas Marriott
dbd8e47846
Do pane resize ioctls once at the end of the server loop rather than
...
immediately.
2013-02-22 21:35:29 +00:00
Nicholas Marriott
ce7bf1083e
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-22 16:25:50 +00:00
Nicholas Marriott
1db4ec6e63
Add pane_current_command format.
2013-02-22 16:25:21 +00:00
Nicholas Marriott
1c82cf7660
Remove a couple of FAQ bits that are out of date and not frequent.
2013-02-22 14:53:00 +00:00
Nicholas Marriott
e43fc6f08a
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-22 14:32:33 +00:00
Nicholas Marriott
31407b70e0
Add option command-prefix which is automatically prepended to any command
...
(apart from a naked default-shell). The default is "exec ".
2013-02-22 14:31:38 +00:00
Nicholas Marriott
7d3c1016ce
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-22 07:25:38 +00:00
Nicholas Marriott
4c9f9438ff
Add support for focus notifications when tmux pane changes, based on work by
...
Aaron Jensen.
2013-02-22 07:23:11 +00:00
Nicholas Marriott
374dae6635
Add a load of miscellaneous pane formats, from George Nachman.
2013-02-21 19:44:27 +00:00
Nicholas Marriott
8c50f625b0
Add session_set_current helper function, extracted from a diff from Aaron
...
Jensen.
2013-02-21 16:54:13 +00:00
Nicholas Marriott
6fc96978c2
Add to TODO.
2013-02-21 16:43:04 +00:00
Nicholas Marriott
8e3767e344
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-21 09:37:06 +00:00
Nicholas Marriott
b8b5631d9d
Add -C and -J to capture pane to escape control sequences and to join wrapped
...
line, based on a diff from George Nachman.
2013-02-21 09:35:01 +00:00
Nicholas Marriott
c577b47cd5
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-20 23:16:53 +00:00
Nicholas Marriott
cb6f36655e
evbuffer_readline returns allocated storage, don't leak it.
2013-02-20 23:15:21 +00:00
Nicholas Marriott
7905f4600d
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-20 14:58:23 +00:00
Nicholas Marriott
41c39e9bd9
Remove stray blank line.
2013-02-20 13:01:59 +00:00
Nicholas Marriott
f81d723264
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-20 10:59:02 +00:00
Nicholas Marriott
afd5e978cf
Need to set clients in context before changing their reference count.
2013-02-20 10:25:15 +00:00
Nicholas Marriott
e68b9abd04
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-20 10:20:44 +00:00
Nicholas Marriott
e487b87f6f
Clear last attributes after reset in string_cells, from George Nachman.
2013-02-20 09:34:21 +00:00
Nicholas Marriott
1e20153b6e
Fix so capture-pane/save-buffer can work in control clients, from George
...
Nachman.
2013-02-20 09:32:52 +00:00
Nicholas Marriott
4621a52183
Include ML and IRC in the text.
2013-02-20 00:16:00 +00:00
Nicholas Marriott
e90a742db8
Tweak bold link.
2013-02-20 00:06:01 +00:00
Nicholas Marriott
b219d54503
Simplify main www page.
2013-02-20 00:03:59 +00:00
Nicholas Marriott
3108d80b7e
Move NOTES->README, move Vim syntax file documentation to the file itself and
...
otherwise tweak some bits.
2013-02-19 23:31:04 +00:00
Nicholas Marriott
8a7d463b87
Prevent lock on control clients, not on others.
2013-02-19 21:11:32 +00:00
Nicholas Marriott
c3859d1df1
Add copy-pipe mode command to copy selection and also pipe to a command.
2013-02-19 17:49:53 +00:00
Nicholas Marriott
5a5e285be8
Don't try to print unterminated strings when loading configuration file.
2013-02-19 17:28:21 +00:00
Nicholas Marriott
4d1d4d6e8e
Add -e flag to capture-pane to include embedded ANSI SGR escape sequences, from
...
George Nachman.
2013-02-19 09:55:02 +00:00
Nicholas Marriott
a96dd1932a
Don't use a target-client for stdout, just always cmdclient.
2013-02-19 09:51:04 +00:00
Nicholas Marriott
693244795c
Remove unnecessary initializers of cmd_ctx.
2013-02-18 23:38:57 +00:00
Nicholas Marriott
255a4f8ce3
load_cfg can actually use the same context now they are reference counted.
2013-02-18 23:35:54 +00:00
Nicholas Marriott
e2b26d910c
Unbreak line wrapping.
2013-02-18 23:31:23 +00:00
Nicholas Marriott
293e331d69
Add functions to allocate and free command contexts rather than doing it all on
...
the stack.
2013-02-18 23:20:21 +00:00
Nicholas Marriott
2a91025581
Use tty_raw on stop, not tty_puts.
2013-02-18 17:35:53 +00:00
Nicholas Marriott
37d34b6b83
Don't hang when clearing line in choose mode now that the cursor stays at the
...
end with wrap.
2013-02-18 17:23:08 +00:00
Nicholas Marriott
44452823b7
Fix double space in sessions template.
2013-02-18 17:12:58 +00:00
Nicholas Marriott
e4bb87032e
Add resize-pane -x and -y for absolute pane size.
2013-02-18 17:00:35 +00:00
Nicholas Marriott
a6c4c2cca0
Implement DECAWM (SM/RM 7) using existing MODE_WRAP flag.
2013-02-18 15:57:46 +00:00
Nicholas Marriott
ba3b8ccc1d
Correctly turn handle UTF8 mouse option being toggled, from Egmont Koblinger.
2013-02-18 15:03:50 +00:00
Nicholas Marriott
e5eee7de0c
Support the latest theory for mouse input, this is enabled/disabled with SM/RM
...
1006 and is similar in style to SGR input: \033[<b;x;yM or \033[b;x;ym. From
Egmont Koblinger.
2013-02-18 14:52:27 +00:00
Nicholas Marriott
d8261019f1
Add client_session and client_last_session formats.
2013-02-18 14:23:40 +00:00
Nicholas Marriott
9d165df18a
No more lint means no more ARGSUSED.
2013-02-17 23:15:38 +00:00
Nicholas Marriott
7d1a8f7e9e
Remove stray test code which would convert abc to x.
2013-02-17 23:05:57 +00:00
Nicholas Marriott
8df3ec612a
In terminals with XT, turn on modifyOtherKeys=1 with the escape sequence and
...
handle the most common set. Pass them through if xterm-keys is on.
2013-02-17 22:56:12 +00:00
Nicholas Marriott
4c91c153cb
I strongly suspect it is possible for tmux to block on detach in tty_raw, so
...
make the fd blocking again much later and have tty_raw just retry the write a
few times.
2013-02-17 22:28:11 +00:00
Nicholas Marriott
cf2c0237f4
Instead of loads of little screen_write_*_on and off functions which just
...
change mode flags, just have screen_write_mode_set and screen_write_mode_clear.
2013-02-17 10:43:35 +00:00
Nicholas Marriott
3d9fd1c7f2
Add various checks to turn off bits that can't work in control mode (such as
...
lock).
2013-02-17 10:12:55 +00:00
Nicholas Marriott
d1e8fb33da
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-17 10:04:59 +00:00
Nicholas Marriott
1e3a4f2331
Do not include status line in size calculations in control mode.
2013-02-17 10:04:26 +00:00
Thomas Adam
2ac1d46f46
Don't set key KEYC_NONE on xterm_keys_find match()
...
When calling xterm_keys_find(); if we get a complete match, don't set the
key to unknown before calling the action to complete the binding; otherwise
non-prefixed bindings will not work.
2013-02-16 21:04:48 +00:00
Nicholas Marriott
77a2174685
Fix a couple of memory leaks, from Romain Francoise.
2013-02-16 19:35:49 +00:00
Nicholas Marriott
3e270af17a
Don't omit half the default table (!= not ==).
2013-02-16 13:29:40 +00:00
Nicholas Marriott
10db7ec51b
Include the \033 in the key tree and adjust key matching for this change.
2013-02-16 13:21:14 +00:00
Nicholas Marriott
4f01bfc4bc
Make choose-tree actually work again.
2013-02-15 12:57:13 +00:00
Nicholas Marriott
1d591ada76
Support capture-pane -p to send to stdout.
2013-02-15 09:31:45 +00:00
Nicholas Marriott
2bdc59fac8
Fix a comment for new key table names.
2013-02-15 02:38:15 +00:00
Nicholas Marriott
784a74df0b
Fix function parameter to tty_keys_free.
2013-02-15 02:18:38 +00:00
Nicholas Marriott
82355d2f2d
Tidy by splitting default key tables into two.
2013-02-15 02:16:41 +00:00
Nicholas Marriott
97a99d8718
Add -c to refresh-client to set client size in control mode, based on code from
...
George Nachman.
2013-02-15 01:54:48 +00:00
Nicholas Marriott
755d4863c8
Spaces -> tabs.
2013-02-14 12:22:14 +00:00
Nicholas Marriott
28544391f5
Do not leak formats in status_replace.
2013-02-14 12:20:17 +00:00
Nicholas Marriott
931b0103cd
Clarify choose-tree entry in man page.
2013-02-13 11:07:21 +00:00
Nicholas Marriott
6e03b50771
Run session command before window in choose-tree.
2013-02-13 11:05:10 +00:00
Nicholas Marriott
362c460767
Do not crash when calling choose-tree with a command that changes the mode.
2013-02-13 11:01:26 +00:00
Nicholas Marriott
f4c815a1d9
Fix constness again, sigh.
2013-02-13 10:41:12 +00:00
Nicholas Marriott
fc6f08d5b7
No more need for freefn.
2013-02-13 10:27:49 +00:00
Nicholas Marriott
68e370574a
Fix constness of window_choose_add_item and _window.
2013-02-13 10:25:37 +00:00
Nicholas Marriott
544c80d715
Fix constness of cmd_template_replace.
2013-02-13 10:19:43 +00:00
Nicholas Marriott
36fe146a74
Fix choose-tree usage.
2013-02-13 09:55:37 +00:00
Nicholas Marriott
caa29af2a9
Add user options, prefixed with @. May be set to any arbitrary string.
2013-02-13 09:54:24 +00:00
Nicholas Marriott
0f31d231db
Return error for --foo when using compat/getopt.c.
2013-02-12 20:36:22 +00:00
Nicholas Marriott
102cb77435
Add -v to set and setw to show only option value.
2013-02-12 20:12:10 +00:00
Nicholas Marriott
7360ff4496
Use proc_pidinfo on Darwin for process name too, from OZAKI Kiichi.
2013-02-12 09:40:22 +00:00
Nicholas Marriott
a6fd92bd8d
Remove stray change accidentally committed.
2013-02-10 19:15:49 +00:00
Nicholas Marriott
06ac4b628d
Add a format client_prefix which is 1 if prefix key has been pressed, used for
...
example #{?client_prefix,X,Y}. Also a few extra server_client_status needed.
2013-02-10 18:58:05 +00:00
Nicholas Marriott
6c53a1ed68
Allow formats in status options.
2013-02-10 18:53:25 +00:00
Nicholas Marriott
6ad2c5c40f
Show alias in lscm output.
2013-02-10 18:26:22 +00:00
Nicholas Marriott
99cc0015f8
Rework reflow code so it does not do so much allocation which should be faster
...
with large histories.
2013-02-10 18:15:30 +00:00
Nicholas Marriott
f1ce95915c
Allow choose commands to be used outside tmux, so long as at least one client
...
is attached.
2013-02-10 17:52:51 +00:00
Nicholas Marriott
aadc87f5a7
Remove free callback for window_choose_data objects.
2013-02-10 17:36:58 +00:00
Nicholas Marriott
4d382ae8e6
Miscellaneous tidying of choose API, including:
...
- rename client and session to start_client and start_session in
window_choose_data struct. also add TREE_OTHER define and reorder the
struct
- rename window_choose_ctx to window_choose_data_run
- don't pass a cmd_ctx into window_choose_create (will let it use a
different client later). instead take type, session, client
- add window_choose_data_free and use it to dispose of wcd rather than
each cmd-*.c doing it individually
- change so ref counting is done by wcd_add and wcd_free rather than
callers. this means 1 ref for each item but what of it :-)
- also add a ref to tree_session - not sure if this is needed?
- all the callbacks except choose-client and find-window are the same so
remove them and add window_choose_default_callback
- reorder/rename some other bits and pieces for tidyness
2013-02-10 17:32:58 +00:00
Nicholas Marriott
418ba99078
Add to TODO.
2013-02-09 16:21:20 +00:00
Nicholas Marriott
648ce2f56a
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-09 14:53:51 +00:00
Nicholas Marriott
0648c58716
Add to TODO list.
2013-02-09 14:52:11 +00:00
Thomas Adam
01da28efb1
Minor update to .gitignore
...
Now ignores: corefiles, stray patches and tags file.
2013-02-09 10:26:57 +00:00
Thomas Adam
6d6e1581b5
Use osdep_get_cwd() for format change
2013-02-07 13:06:31 +00:00
Thomas Adam
64da762c15
Merge branch 'obsd-master'
2013-02-07 12:08:55 +00:00
Nicholas Marriott
8903c1f167
Automatically reflow wrapped lines when a pane is resized, requested by
...
many over the years and finally implemented by Richard Woodbury.
2013-02-05 11:08:59 +00:00
Nicholas Marriott
a5521597b0
Don't set some string formats if the string is NULL.
2013-02-05 11:01:45 +00:00
Thomas Adam
fe00607816
Only set AUTO{MAKE,CONF}_VERSION on OpenBSD
...
OpenBSD requires the presence of AUTOMAKE_VERSION and AUTOCONF_VERSION for
bootstrapping purposes. Setting these on any other system requires that
explicit version to be used, rather than what might already be installed.
Therefore, only do this when the platform is OpenBSD and ignore everything
else.
2013-01-31 00:14:59 +00:00
Thomas Adam
6e6d756109
Corrections to SYNCING
...
* Reflow some paragraphs due to repo-naming pushing the line length over 80
chaacters.
* Correct path to git clone commands for each repo.
2013-01-30 23:28:38 +00:00
Nicholas Marriott
85531fd404
Unused variable/type nit from Thomas Adam.
2013-01-30 17:00:17 +00:00
Nicholas Marriott
c4c98df4f2
Add -Wdeclaration-after-statement.
2013-01-30 16:35:00 +00:00
Thomas Adam
a3f4eb7b24
Merge branch 'obsd-master'
...
Conflicts:
Makefile
grid-utf8.c
2013-01-30 15:27:19 +00:00
Nicholas Marriott
fdbfc7e349
Rather than having two grids for each pane, one for ASCII and one for
...
UTF-8, collapse the two together. Simplifies the code at the expense of
more memory (which can probably be reduced again later).
2013-01-18 02:16:21 +00:00
Nicholas Marriott
c2e2107063
Style nits - return (x) not return x.
2013-01-18 02:10:29 +00:00
Thomas Adam
2ca8b7f359
Merge branch 'obsd-master'
2013-01-17 22:14:18 +00:00
Nicholas Marriott
3a09e01a8e
Do not allow cursor colours to be set beginning with ? as that will
...
report the colour, from Hayaki Saito.
2013-01-17 20:30:43 +00:00
Nicholas Marriott
d31315884c
Fix some blank line nits.
2013-01-17 03:51:21 +00:00
Nicholas Marriott
57ca428975
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-01-17 02:09:18 +00:00
Nicholas Marriott
b0e2ef1a7d
Update www for new SF URLs.
2013-01-17 02:08:58 +00:00
Thomas Adam
b237d9dd95
Updated SYNCING
2013-01-17 02:02:04 +00:00
Thomas Adam
de194016ec
Merge branch 'obsd-master'
2013-01-17 01:38:21 +00:00
Nicholas Marriott
e33ba57c13
Remove the layout undo/redo code which never really worked.
2013-01-17 00:11:22 +00:00
Nicholas Marriott
44f8e1caff
Implement ECH (erase character, CSI X). Reported by Christian Neukirchen.
2013-01-15 23:18:55 +00:00
Nicholas Marriott
bc2e4a36df
If timing between keys is less than (by default) 1 millisecond, assume
...
the text is being pasted. assume-paste-time option changes the value (0
disables). Based on a diff from Marcin Kulik.
2013-01-15 22:55:29 +00:00
Thomas Adam
675c6b3773
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-12-31 18:50:37 +00:00
Tiago Cunha
f4472c16b2
Fix keyword matching.
...
Per the documentation in *:syn-keyword* (in particular *E789*), the
optional characters inside the square brackets can only be used in the
end. Therefore, unfold some keywords which were being wrongly
recognised.
Noticed by Bruce Wolk.
2012-12-24 17:18:35 +00:00
Nicholas Marriott
854e8ae04d
Add ^ and $ special command targets to select lowest and highest
...
numbered windows, from Raghavendra D Prabhu.
2012-12-24 12:38:57 +00:00
Nicholas Marriott
3e6d45acf6
Add -T option to select-window to toggle to last window if already
...
current, from Raghavendra D Prabhu.
2012-12-24 12:34:32 +00:00
Nicholas Marriott
a2c8af97e9
Add missing function prototype.
2012-12-24 12:33:05 +00:00
Nicholas Marriott
b18ff67646
Add a -u flag to choose-tree to start uncollapsed, from Raghavendra D
...
Prabhu.
2012-12-24 12:25:52 +00:00
millert
6a5adfc0ba
We no longer use struct eproc for kinfo_proc in sysctl.h so there
...
is no direct need for sys/proc.h or sys/resource.h. Some consumers
of kinfo_proc need these for the proc flags and rlimit defines like
RLIM_INF so add the appropriate includes to them.
OK deraadt@ sthen@
2012-12-18 21:28:45 +00:00
Nicholas Marriott
9714880283
Change load_cfg to fix a crash reported by jasper.
2012-12-13 15:36:16 +00:00
Nicholas Marriott
3a0016a78a
Use the CMD_*_USAGE defines consistently, from Thomas Adam.
2012-12-09 23:17:35 +00:00
Thomas Adam
fb83914bd7
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-12-08 20:29:37 +00:00
Thomas Adam
d5de489dc4
.+
2012-12-08 19:16:45 +00:00
Nicholas Marriott
3fa4f691e3
Handle resetting 256-colours properly when parsing #[default],
...
#[fg=default] and #[bg=default] styles.
2012-12-08 17:05:57 +00:00
Nicholas Marriott
8600fe054b
Use strlcat not strncat in load_cfg and some other trivial tidying from
...
Tiago Cunha.
2012-12-06 13:06:05 +00:00
Nicholas Marriott
8378be03d1
Fix argument order in a log statement.
2012-12-06 12:49:13 +00:00
Nicholas Marriott
51a1dbfe09
Simplify command string parsing with a helper function from Tiago Cunha.
2012-12-06 12:47:48 +00:00
Nicholas Marriott
8264e92b37
Fix return value of load_cfg, from Thomas Adam.
2012-11-27 22:59:34 +00:00
Thomas Adam
739a76634c
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-11-27 22:24:00 +00:00
Nicholas Marriott
47c097cb51
Support middle-click paste, based on a diff from Ailin Nemui.
2012-11-27 20:22:12 +00:00
Nicholas Marriott
24d7d073ff
Support the 47 and 1047 SM and RM sequences (alternate screen without
...
cursor), requested by I forget who ages ago.
2012-11-27 20:08:42 +00:00
Thomas Adam
39631edb98
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-11-27 18:12:04 +00:00
Nicholas Marriott
9b8998aeec
Correctly aggregate together errors from nested config files (with
...
source-file). Fix by Thomas Adam, reported by Sam Livingstone-Gray
2012-11-27 16:12:29 +00:00
Nicholas Marriott
4aa4e9fb26
Allow cmd-run-shell to accept -t to specify the pane to display the
...
output, requested by Alexander Tsepkov.
2012-11-27 15:09:35 +00:00
Nicholas Marriott
1fcc7f50ac
When scrolling in copy mode with the mouse, scroll screen rather than
...
moving cursor. This change from Ailin Nemui, alternative to a change
from Stephen Hicks.
2012-11-27 14:42:56 +00:00
Nicholas Marriott
6ef4f8e16c
Revert last, after discussion it isn't necessary.
2012-11-27 14:26:48 +00:00
Nicholas Marriott
93224260ae
Add window-status-last-* options, from Boris Faure.
2012-11-27 13:52:23 +00:00
Nicholas Marriott
991bfcf443
Fix session choice so that preferring unattached sessions actually
...
works, reported by Drew Frank.
2012-11-27 09:20:03 +00:00
Nicholas Marriott
d762ced298
Call realpath earlier on the socket directory path rather than on the
...
socket file path because the latter may not exist yet and in that case
realpath is allowed to fail. From Romain Francoise.
2012-11-26 11:35:28 +00:00
Thomas Adam
1bc910a963
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-11-22 22:19:04 +00:00
Nicholas Marriott
63f451965c
Merge branch 'master' of ssh://tmux.git.sourceforge.net/gitroot/tmux/tmux
2012-11-22 16:48:50 +00:00
Nicholas Marriott
260419f48e
Put helper function back, will be needed in a bit.
2012-11-22 14:41:11 +00:00
Thomas Adam
c04aa90207
Merge branch 'obsd-master'
...
Sync from OpenBSD.
* obsd-master:
Add halfpage commands to mode command string table (missed by accident), from Thomas Adam.
Clarify some points about config files, notably that they are only read at server start. From Thomas Adam.
Use a utility function for common code to show errors in config file, from Thomas Adam.
2012-11-22 13:24:14 +00:00
Nicholas Marriott
0679eb6a6d
Add halfpage commands to mode command string table (missed by accident),
...
from Thomas Adam.
2012-11-19 10:51:25 +00:00
Nicholas Marriott
9a7e5bd1d3
Clarify some points about config files, notably that they are only read
...
at server start. From Thomas Adam.
2012-11-19 10:50:24 +00:00
Nicholas Marriott
827b311c81
Use a utility function for common code to show errors in config file,
...
from Thomas Adam.
2012-11-19 10:38:06 +00:00
Thomas Adam
e4679172e3
Sanitise additional .mailmap entries
...
This sanitises multiple author addresses some more, mapping them back to one
common entity.
2012-11-08 21:39:35 +00:00
Thomas Adam
be10e8eee6
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-11-08 21:27:40 +00:00
Thomas Adam
cb4553bd06
Add .mailmap for commit author translations
...
Because it's not possible to enumerate up-front all of the committers to
tmux coming from OpenBSD, at the time a commit is imported in to git from
the OpenBSD CVS repository, the author information is not known to Git,
necessarily.
But it's possible to alter for output the respective author after the fact,
via Git's .mailmap file. It is this file which will therefore provide a new
mapping of OpenBSD commiter to an actual real name and real email address.
2012-11-08 21:14:32 +00:00
Nicholas Marriott
c68efec6c0
Show last client activity time in default choose-client list.
2012-11-05 13:13:04 +00:00
Thomas Adam
a75801320d
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-11-04 01:27:57 +00:00
okan
241a746f32
fix an off-by-one
...
ok nicm@
2012-10-31 19:11:18 +00:00
Thomas Adam
47fbf87185
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-10-26 20:28:58 +01:00
Nicholas Marriott
d210d99cce
Make mouse event structure clearer by defining events (up, click, drag)
...
and simplifying how buttons and wheels are represented, from Ailin
Nemui. Should be no functional changes.
2012-10-26 14:35:42 +00:00
Thomas Adam
31f93d8445
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-10-25 23:32:14 +01:00
Nicholas Marriott
2a609b332f
Add ability to active pane in list-windows and find-window formats, from
...
Carl Henrik Lunde.
2012-10-25 11:26:47 +00:00
Nicholas Marriott
18236c1c1b
Fix BELL_NONE which had been broken in some code reorganisation or other
...
also don't redraw unnecessarily. From Seiji Ohashi.
2012-10-25 11:16:53 +00:00
Nicholas Marriott
596e9d8068
Fix bad size in memcpy from Romain Francoise.
2012-10-25 11:14:46 +00:00
Nicholas Marriott
589b4b8c6a
Fix typo bell->bells from Thomas Adam.
2012-10-25 11:11:58 +00:00
Nicholas Marriott
60808bbded
+.
2012-10-23 18:47:52 +01:00
Thomas Adam
d4dc52ec84
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-10-16 18:30:36 +01:00
Nicholas Marriott
c695c0c085
Fix some function prototypes from Helmut Tessarek.
2012-10-15 21:53:30 +00:00
Nicholas Marriott
a91c598971
Link to git instructions from index.html.
2012-10-15 18:25:44 +01:00
Thomas Adam
bf45619441
Don't push all tags when releasing tmux
...
Pushing all tags with "git push --tags" will also transfer tags from the
tmux-openbsd repository which isn't what we want to do!
Therefore, just specify the newly created tag to push instead for the next
release.
2012-10-13 13:35:35 +01:00
Thomas Adam
9b2aabb752
Merge branch 'master' of ssh://tmux.git.sourceforge.net/gitroot/tmux/tmux
2012-10-13 12:25:08 +01:00
Thomas Adam
c0fb5edff9
Update website.
2012-10-13 12:22:11 +01:00
Thomas Adam
5cdc9591d3
Working on 1.8
2012-10-13 12:12:43 +01:00
Thomas Adam
2b5c3fc49f
Update NOTES, CHANGES, configure.ac for 1.7 release
2012-10-13 11:56:14 +01:00
Thomas Adam
b4ad1759b8
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-10-11 17:52:23 +01:00
Nicholas Marriott
6589120667
Fix a use-after-free when collapsing the tree in choose mode, from
...
Carl Henrik Lunde.
2012-10-11 08:53:50 +00:00
Thomas Adam
0cdcae3532
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-10-09 20:47:28 +01:00
Nicholas Marriott
0e87430462
Add tree keys to vi mode too, missed by accident.
2012-10-09 18:08:21 +00:00
Thomas Adam
43d2b6a648
Remove references to PATCHES file
2012-10-07 10:57:11 +01:00
Nicholas Marriott
8249fbfb60
Make some tweaks to NOTES and add a paragraph on git rather than huge PATCHES
...
file.
2012-10-05 09:05:44 +01:00
Thomas Adam
3a545376f0
Reference PATCHES document from TODO file
...
In terms of submitting patches via the TODO file from the tmux portable
repository, mention the PATCHES file in passing.
2012-10-05 00:19:53 +01:00
Thomas Adam
5cc9380bfa
Add PATCHES document
...
This describes how to send patches against the portable tmux version as
hosted on souceforge, using Git.
2012-10-05 00:18:50 +01:00
Thomas Adam
ca84659ca1
Add explanatory sections to TODO file
...
This restructures the TODO file slightly, separating out the
terminal-specific tasks from the tmux user interface tasks.
2012-10-04 23:57:31 +01:00
Thomas Adam
8dc78377d1
+.
2012-10-04 22:45:22 +01:00
Thomas Adam
64deb34c3b
Add choose-list to tmux.vim
2012-10-02 18:13:13 +01:00
Thomas Adam
8b05d84ece
Update TODO list.
...
Keeping this in sync with work done.
2012-10-02 13:02:30 +01:00
Thomas Adam
619ffe1f4f
Merge branch 'obsd-master'
...
Sync from OpenBSD.
* obsd-master:
Allow session tree (C-b s) to expand and collapse sessions with left/right/space keys. From Thomas Adam.
Remove some out of date text from man page, from Thomas Adam.
2012-10-02 10:47:16 +01:00
Nicholas Marriott
9107b0c69a
Allow session tree (C-b s) to expand and collapse sessions with
...
left/right/space keys. From Thomas Adam.
2012-10-02 08:16:28 +00:00
Nicholas Marriott
ea289bc457
Remove some out of date text from man page, from Thomas Adam.
2012-10-02 08:02:21 +00:00
Thomas Adam
9763282dc1
Merge branch 'obsd-master'
2012-10-01 13:32:52 +01:00
Nicholas Marriott
44dccf7ea2
Do not test client flags against TTY_FREEZE bit, reported by Tom Ryder.
2012-09-29 06:57:56 +00:00
Thomas
80b5c0e076
Merge branch 'obsd-master'
...
Sync from OpenBSD.
* obsd-master:
Do not leak file descriptor if not a tty, reported by Sebastien Marie.
2012-09-27 11:55:55 +01:00
Nicholas Marriott
7a3ec77dbd
Do not leak file descriptor if not a tty, reported by Sebastien Marie.
2012-09-27 10:02:56 +00:00
Thomas Adam
48750022c0
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-09-25 17:05:36 +01:00
Nicholas Marriott
ce0b285aad
Fix up missing bits.
2012-09-25 08:54:01 +01:00
Nicholas Marriott
17bbf90393
Add notification for input from a pane, from George Nachman.
2012-09-25 07:41:22 +00:00
Nicholas Marriott
0d0b3cf9a4
Fix search forward so it can match strings on the last line, SF bug
...
3571114 from "LiJunLe".
2012-09-25 07:39:28 +00:00
Nicholas Marriott
149f5bac05
Merge branch 'master' of ssh://tmux.git.sourceforge.net/gitroot/tmux/tmux
...
Conflicts:
cmd.c
format.c
osdep-openbsd.c
2012-09-25 08:07:39 +01:00
Thomas Adam
253f1395a0
Don't rely on "-s ours" for merging
...
The ours strategy assumes one subsumes the other -- which isn't the case for
the portable version, so for now -- just go back to using the default merge
strategy of recursive, and fix-up any conflicts manually.
2012-09-24 18:05:34 +01:00
Thomas Adam
e342304134
Merge branch 'obsd-master'
...
Conflicts:
cmd.c
format.c
osdep-openbsd.c
tmux.h
2012-09-24 17:55:06 +01:00
Nicholas Marriott
d785c37ee2
Fix some UTF-8 Japanese issue on OS X, SF bug 3566884.
2012-09-24 17:53:15 +01:00
Nicholas Marriott
69683ba7b4
Use ACS characters for choose-tree arrows based on diff from Romain
...
Francoise.
2012-09-24 17:53:10 +01:00
Thomas
7b189f1ad7
Merge branch 'obsd-master'
...
* obsd-master:
Use pgrp of pty fd not pid of immediate child when recovering current working directory (like current process). From Marcel Partap.
Use ACS characters for choose-tree arrows based on diff from Romain Francoise.
2012-09-24 14:56:56 +01:00
Nicholas Marriott
84612a8196
Add control_write_buffer, from George Nachman.
2012-09-24 13:39:10 +00:00
Nicholas Marriott
5d60bc7f7c
Use pgrp of pty fd not pid of immediate child when recovering current working
...
directory (like current process). From Marcel Partap.
2012-09-24 14:05:38 +01:00
Nicholas Marriott
42272dfbd5
Use pgrp of pty fd not pid of immediate child when recovering current
...
working directory (like current process). From Marcel Partap.
2012-09-24 13:05:10 +00:00
Nicholas Marriott
5b85efeb93
Fix some UTF-8 Japanese issue on OS X, SF bug 3566884.
2012-09-24 13:56:32 +01:00
Nicholas Marriott
eb0ad181e9
Use ACS characters for choose-tree arrows based on diff from Romain
...
Francoise.
2012-09-24 12:53:55 +00:00
Thomas Adam
dc3df931d7
Merge branch 'master' of ssh://tmux.git.sourceforge.net/gitroot/tmux/tmux
...
Conflicts:
SYNCING
2012-09-20 23:02:49 +01:00
Thomas Adam
d3d48fa3e7
Add release instructions for new tmux versions
...
Document how actual releases will happen. Largely based on tcunha's
original notes. Tweaked by me slightly to adapt to git.
2012-09-20 22:59:08 +01:00
Thomas Adam
73f29094d0
.+ SYNCING.
2012-09-19 09:50:39 +01:00
Thomas Adam
a043b975ca
Add SYNCING document
...
This explains how to keep the tmux and tmux-openbsd repositories in sync
with one another during the course of tmux development.
2012-09-16 22:53:58 +01:00
Thomas Adam
68cc635ed5
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-09-15 12:23:25 +01:00
Nicholas Marriott
b2a9f4115f
Handle empty list properly in choose-list, based on fix from Thomas Adam.
2012-09-05 10:14:21 +00:00
Nicholas Marriott
b433886840
We can't tell what the terminal has done with a DCS string, so reset the
...
cursor and attributes afterwards.
2012-09-05 09:59:41 +00:00
Thomas Adam
248cd423a1
Fixup Makefile.am
...
Since this is just Makefile in the OpenBSD directory, pull in those trivial
changes to the templated one for use in autotools.
2012-09-04 22:50:16 +01:00
Nicholas Marriott
b79f86e32a
Trivial code simplification from Tim Ruehsen.
2012-09-04 22:37:31 +01:00
Nicholas Marriott
40505e59f1
Remove xterm CRA support - support is patchy and it will be done better
...
using margins.
2012-09-04 22:37:31 +01:00
Nicholas Marriott
a1cd0eee1b
Use the right index when adding item in choose-tree, from Thomas Adam.
2012-09-04 22:37:31 +01:00
Nicholas Marriott
c914fcfacb
When choosing a pane found by find-window, switch to that pane rather
...
than just the window. Also use a helper function for the inner loop.
2012-09-04 22:37:31 +01:00
Nicholas Marriott
4d7967de7a
Rename variables to something a but more understandable.
2012-09-04 22:37:31 +01:00
Nicholas Marriott
28fd3a3835
add cmd-choose-list to allow arbitrary options to be selected. From
...
Thomas Adam.
2012-09-04 22:37:29 +01:00
Nicholas Marriott
996a636713
Remove an unused variable.
2012-09-04 22:36:56 +01:00
Nicholas Marriott
41a448193f
Send notifications to control clients. Also don't redraw client when
...
suspended.
2012-09-04 22:36:47 +01:00
Nicholas Marriott
0304555184
Change format of choose-tree arrows slightly, from Romain Francoise.
2012-09-04 22:35:52 +01:00
Nicholas Marriott
f536dc47c4
If stdin in the client is enable immediately, tmux will eat anything
...
sent to stdin before it is needed, which can be inconvenient (eg pasting
commands). Instead, start with stdin disabled and reuse MSG_STDIN from
server->client to mean that stdin should be enabled. Based on a diff
from Chris Johnsen.
2012-09-04 22:35:52 +01:00
Nicholas Marriott
d6066552ee
Can't call evtimer_pending on uninitialized events, call
...
evtimer_initialized first. Reported by Vladimir Lomov, fix from Thomas
Adam slightly modified by me.
2012-09-04 22:35:52 +01:00
Nicholas Marriott
59c760dfcd
Trivial code simplification from Tim Ruehsen.
2012-09-04 13:24:50 +00:00
Nicholas Marriott
c06b2e4fb9
.gitignore + Makefile Makefile.in configure
2012-09-04 09:26:54 +01:00
Thomas Adam
1f29f6ac4d
Add .gitignore
...
Tell git not to consider certain files, such as object files.
2012-09-04 09:21:09 +01:00
Thomas Adam
3ad812cbd5
Make autogen.sh executable
2012-09-04 08:19:12 +01:00
Nicholas Marriott
53c430eced
Change WWW links to Git not Subverson.
2012-09-04 08:00:34 +01:00
Nicholas Marriott
6307d63715
Remove xterm CRA support - support is patchy and it will be done better
...
using margins.
2012-09-03 15:47:40 +00:00
Nicholas Marriott
4f8a6867fa
Use the right index when adding item in choose-tree, from Thomas Adam.
2012-09-03 12:24:25 +00:00
Nicholas Marriott
9e7bbc7281
When choosing a pane found by find-window, switch to that pane rather
...
than just the window. Also use a helper function for the inner loop.
2012-09-03 12:20:17 +00:00
Nicholas Marriott
c96a2a3c9e
Rename variables to something a but more understandable.
2012-09-03 10:02:39 +00:00
Nicholas Marriott
7263fa36eb
add cmd-choose-list to allow arbitrary options to be selected. From
...
Thomas Adam.
2012-09-03 09:57:57 +00:00
Nicholas Marriott
adc9fad4ac
Remove an unused variable.
2012-09-03 09:36:07 +00:00
Nicholas Marriott
9247c90d69
Send notifications to control clients. Also don't redraw client when
...
suspended.
2012-09-03 09:32:38 +00:00
Nicholas Marriott
a679a4a708
Change format of choose-tree arrows slightly, from Romain Francoise.
2012-09-03 09:01:16 +00:00
Nicholas Marriott
2e43372d0b
If stdin in the client is enable immediately, tmux will eat anything
...
sent to stdin before it is needed, which can be inconvenient (eg pasting
commands). Instead, start with stdin disabled and reuse MSG_STDIN from
server->client to mean that stdin should be enabled. Based on a diff
from Chris Johnsen.
2012-09-03 08:48:57 +00:00
Nicholas Marriott
473911fb73
Can't call evtimer_pending on uninitialized events, call
...
evtimer_initialized first. Reported by Vladimir Lomov, fix from Thomas
Adam slightly modified by me.
2012-09-03 06:26:48 +00:00
Tiago Cunha
686d461144
Sync OpenBSD patchset 1168:
...
Change a log to fprintf that was missed last time around, from Tiago Cunha.
2012-08-31 09:25:19 +00:00
Tiago Cunha
554f19eb05
Sync OpenBSD patchset 1167:
...
Instead of requiring a prompt to enter all numbers >10, go back to
0-9a-z and add A-Z and enter the prompt when M-0 to M-9 are pressed
(like in copy mode). Prompted by request from mcbride@, help from Thomas
Adam.
2012-08-31 09:24:51 +00:00
Tiago Cunha
fc8d3f7a56
Sync OpenBSD patchset 1166:
...
xterm won't reach version 500 for a while so set that as the upper limit.
2012-08-31 09:22:50 +00:00
Tiago Cunha
56e37487a8
Sync OpenBSD patchset 1165:
...
Fix up window reference counting and don't crash if the rename timer
fires while the window is dead but still referenced. Fixes problem
reported by Michael Scholz.
2012-08-31 09:22:08 +00:00
Tiago Cunha
674545f7e6
Sync OpenBSD patchset 1164:
...
Boldify windows with alerts in choose-* list.
2012-08-31 09:20:47 +00:00
Tiago Cunha
35690fb3a5
Sync OpenBSD patchset 1163:
...
Tidy up tty_write, from Sean Estabrooks.
2012-08-31 09:20:09 +00:00
Tiago Cunha
1c608031b5
Sync OpenBSD patchset 1162:
...
Use a separate define for each default format template and strip clutter
from the choose-tree defaults.
2012-08-31 09:18:50 +00:00
Nicholas Marriott
84a4007b06
Change a log to fprintf that was missed last time around, from Tiago Cunha.
2012-08-27 21:35:11 +00:00
Nicholas Marriott
753775033a
Instead of requiring a prompt to enter all numbers >10, go back to
...
0-9a-z and add A-Z and enter the prompt when M-0 to M-9 are pressed
(like in copy mode). Prompted by request from mcbride@, help from Thomas
Adam.
2012-08-27 21:29:23 +00:00
Nicholas Marriott
d39c58c01c
xterm won't reach version 500 for a while so set that as the upper limit.
2012-08-21 10:08:11 +00:00
Nicholas Marriott
58e8e0eac8
Fix up window reference counting and don't crash if the rename timer
...
fires while the window is dead but still referenced. Fixes problem
reported by Michael Scholz.
2012-08-21 10:00:33 +00:00
Nicholas Marriott
d50f157f7e
+.
2012-08-14 09:38:34 +00:00
Nicholas Marriott
a1e4908ed7
Boldify windows with alerts in choose-* list.
2012-08-14 09:17:14 +00:00
Nicholas Marriott
f61fc576d9
Tidy up tty_write, from Sean Estabrooks.
2012-08-14 08:58:25 +00:00
Nicholas Marriott
73c6785538
Use a separate define for each default format template and strip clutter
...
from the choose-tree defaults.
2012-08-14 08:51:53 +00:00
Nicholas Marriott
6804d5841e
Add a patch missed during a merge sometime to use
...
TAILQ_FOREACH_SAFE. From Tiago Cunha.
2012-08-14 08:15:00 +00:00
Tiago Cunha
96aaa87df6
Remove osdep include.
2012-08-12 19:34:57 +00:00
Tiago Cunha
454e7d9c3a
Sync OpenBSD patchset 1160:
...
Simplify width calculation (all numbers always sequential) and don't
rely on uninitialized data, from Thomas Adam.
2012-08-12 19:31:26 +00:00
Tiago Cunha
db27dc82f0
Sync OpenBSD patchset 1159:
...
Remove dead code, from Sean Estabrooks.
2012-08-12 19:30:54 +00:00
Tiago Cunha
061027fefc
Sync OpenBSD patchset 1158:
...
Another missing format from sam at sltosis.org.
2012-08-12 19:30:11 +00:00
Tiago Cunha
45d68963ab
Sync OpenBSD patchset 1157:
...
Fix a return type.
2012-08-12 19:29:05 +00:00
Tiago Cunha
200b0e5821
Sync OpenBSD patchset 1156:
...
Instead of numbering choose mode items 0-9a-z and then nothing, number
them all and if there are more than 10 use a prompt when 0-9 is
pressed. From Thomas Adam.
2012-08-12 19:28:20 +00:00
Tiago Cunha
30b801decf
Sync OpenBSD patchset 1155:
...
Add some missing formats from Samuel Le Thiec.
2012-08-12 19:25:15 +00:00
Tiago Cunha
ca3f92e78c
Sync OpenBSD patchset 1154:
...
Document pane_index variable, from sam at sltosis dot org.
2012-08-12 19:24:31 +00:00
Tiago Cunha
c8849ac990
Sync OpenBSD patchset 1153:
...
Add a queue of notifys and a way to turn them off and on (we do not want
notifys to happen during some commands). Based on code from George
Nachman.
2012-08-12 19:23:01 +00:00
Nicholas Marriott
44307712ed
Add to TODO.
2012-08-12 18:56:25 +00:00
Nicholas Marriott
20129b7bf9
Simplify width calculation (all numbers always sequential) and don't
...
rely on uninitialized data, from Thomas Adam.
2012-08-12 06:22:26 +00:00
Nicholas Marriott
a194430e5d
Remove dead code, from Sean Estabrooks.
2012-08-11 07:32:16 +00:00
Nicholas Marriott
cf2e65c0e2
Another missing format from sam at sltosis.org.
2012-08-11 07:10:01 +00:00
Nicholas Marriott
8889a48f9b
Fix a return type.
2012-08-11 06:46:47 +00:00
Nicholas Marriott
a3dec6bece
Instead of numbering choose mode items 0-9a-z and then nothing, number
...
them all and if there are more than 10 use a prompt when 0-9 is
pressed. From Thomas Adam.
2012-08-11 06:45:33 +00:00
Nicholas Marriott
ff4097e02c
Add some missing formats from Samuel Le Thiec.
2012-08-11 05:55:12 +00:00
Tiago Cunha
c081af2963
Sync with reality.
2012-07-16 22:19:13 +00:00
Nicholas Marriott
89a96b05fa
Document pane_index variable, from sam at sltosis dot org.
2012-07-15 06:51:57 +00:00
Nicholas Marriott
5385a9bb34
Add a queue of notifys and a way to turn them off and on (we do not want
...
notifys to happen during some commands). Based on code from George
Nachman.
2012-07-13 06:27:41 +00:00
Tiago Cunha
d697b5ef20
Sync OpenBSD patchset 1152:
...
Nuke unused variable from Thomas Adam.
2012-07-12 21:14:46 +00:00
Tiago Cunha
81858d7891
Now that the queue _SAFE macros are available, use them instead of rolling
...
our own. This is analogous to the recent changes to the detach-client and
kill-{session,window} commands.
2012-07-12 21:04:43 +00:00
Tiago Cunha
7a583b1e54
Sync with OpenBSD. Mostly because of the added _SAFE macros which is
...
needed by an upcoming change.
2012-07-12 20:59:39 +00:00
Nicholas Marriott
35a8a61254
Nuke unused variable from Thomas Adam.
2012-07-12 13:03:42 +00:00
Tiago Cunha
513bd8f62d
Remove remaining xfree calls from the portable version.
2012-07-11 19:50:46 +00:00
Tiago Cunha
1f5e6e35d5
Sync OpenBSD patchset 1151:
...
Make command exec functions return an enum rather than -1/0/1 values and
add a new value to mean "leave client running but don't attach" to fix
problems with using some commands in a command sequence. Most of the
work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
2012-07-11 19:37:32 +00:00
Tiago Cunha
a432fcd306
Sync OpenBSD patchset 1150:
...
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-11 19:34:16 +00:00
Tiago Cunha
06d27e94b2
Sync OpenBSD patchset 1149:
...
Move a NULL check inside a function, from Tiago Cunha.
2012-07-11 19:30:01 +00:00
Tiago Cunha
188be9718e
Sync OpenBSD patchset 1148:
...
Fix choose-tree usage string.
2012-07-11 17:16:25 +00:00
Tiago Cunha
bbd3e822c7
Sync OpenBSD patchset 1147:
...
remove extraneous line;
2012-07-11 17:15:53 +00:00
Tiago Cunha
45a2e2d6c6
Update list of sources to reflect the recent changes introduced by the
...
choose-tree command.
2012-07-11 17:15:23 +00:00
Tiago Cunha
a10143a2d1
Sync OpenBSD patchset 1146:
...
Add choose-tree command to show windows and sessions in the same
list. Change choose-window and -session to use the same code. From
Thomas Adam.
2012-07-11 17:13:55 +00:00
Tiago Cunha
38530de622
Sync OpenBSD patchset 1144:
...
Clear flags across all sessions, from Thomas Adam.
2012-07-11 17:06:11 +00:00
Nicholas Marriott
f040bc249f
Add.
2012-07-11 09:28:11 +00:00
Nicholas Marriott
ede8312d59
Make command exec functions return an enum rather than -1/0/1 values and
...
add a new value to mean "leave client running but don't attach" to fix
problems with using some commands in a command sequence. Most of the
work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
2012-07-11 07:10:15 +00:00
Nicholas Marriott
df912e3540
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-10 11:53:01 +00:00
Nicholas Marriott
3886f60671
+.
2012-07-09 20:46:41 +00:00
Nicholas Marriott
a3391692ad
Move a NULL check inside a function, from Tiago Cunha.
2012-07-09 09:55:57 +00:00
Nicholas Marriott
91f54b59ac
Fix choose-tree usage string.
2012-07-09 07:08:03 +00:00
Jason McIntyre
b0f4f94b5b
remove extraneous line;
2012-07-08 17:24:29 +00:00
Nicholas Marriott
f20c6fe009
Add choose-tree command to show windows and sessions in the same
...
list. Change choose-window and -session to use the same code. From
Thomas Adam.
2012-07-08 16:04:38 +00:00
Nicholas Marriott
191a92c0c6
Sort SRCS list.
2012-07-08 15:24:08 +00:00
Nicholas Marriott
adba3d35b1
+ entry to show default options, suggested by Thomas Adam.
2012-07-08 13:32:09 +00:00
Nicholas Marriott
63f5c38023
Clear flags across all sessions, from Thomas Adam.
2012-07-08 07:27:32 +00:00
Tiago Cunha
7e02d2f459
Sync OpenBSD patchset 1143:
...
Provide common helper function for adding windows and sessions to choose
lists and expand %% in command before using it rather than at callback
time. From Thomas Adam.
2012-07-04 11:03:20 +00:00
Tiago Cunha
5761712799
Sync OpenBSD patchset 1142:
...
Clean up and simplify the choose mode code, from Thomas Adam.
2012-07-04 11:01:00 +00:00
Tiago Cunha
9bb97522d5
Sync OpenBSD patchset 1141:
...
Trim a blank line.
2012-07-04 10:55:22 +00:00
Tiago Cunha
f4053bc217
Sync OpenBSD patchset 1140:
...
Remove a couple of unused variables from redbrain at gcc dot gnu dot org.
2012-07-04 10:54:45 +00:00
Nicholas Marriott
67b926cf3c
Provide common helper function for adding windows and sessions to choose
...
lists and expand %% in command before using it rather than at callback
time. From Thomas Adam.
2012-06-25 14:27:25 +00:00
Nicholas Marriott
5b6f78186c
Clean up and simplify the choose mode code, from Thomas Adam.
2012-06-25 14:08:55 +00:00
Nicholas Marriott
39abca401a
Trim a blank line.
2012-06-25 13:49:16 +00:00
Nicholas Marriott
a7917430d8
Remove a couple of unused variables from redbrain at gcc dot gnu dot org.
2012-06-20 12:55:55 +00:00
Tiago Cunha
202c04414c
More ifdef goo is needed due to NOKERNINFO.
2012-06-18 16:23:42 +00:00
Tiago Cunha
bc47596313
Sync OpenBSD patchset 1139:
...
Actually write all the data to stdout/stderr.
2012-06-18 15:25:23 +00:00
Tiago Cunha
dfc845e7f9
Add control.c to the list of sources.
2012-06-18 15:24:17 +00:00
Tiago Cunha
0159c74a32
Sync OpenBSD patchset 1138:
...
Add a skeleton mode to tmux (called "control mode") that let's tmux
commands be sent and output received on stdout. This can be used to
integrate with other terminal emulators and should allow some other
things to be made simpler later. More to come so doesn't do much yet and
deliberately not documented.
2012-06-18 15:23:01 +00:00
Tiago Cunha
a401420273
Sync OpenBSD patchset 1137:
...
Tidy up bell code, from Thomas Adam.
2012-06-18 15:17:55 +00:00
Tiago Cunha
fce30422f3
Sync OpenBSD patchset 1136:
...
Add a couple of NULL pointer checks to key binding functions, from
jspenguin on SF bug 3535531.
2012-06-18 15:15:32 +00:00
Tiago Cunha
2a36a0a067
Sync OpenBSD patchset 1135:
...
Do not crash when the current session has no window, fixes a bug
reported by Giorgio Lando. Fix from Thomas Adam.
2012-06-18 15:14:48 +00:00
Tiago Cunha
1c15848c47
Sync OpenBSD patchset 1134:
...
Add -a for kill-session, from Thomas Adam.
2012-06-18 15:12:54 +00:00
Tiago Cunha
4a634a7da4
Sync OpenBSD patchset 1133:
...
Add -a flag for detach-client, from Thomas Adam.
2012-06-18 15:11:35 +00:00
Tiago Cunha
576f2694b1
Sync OpenBSD patchset 1132:
...
Simplify references to alerts in the man page, from Thomas Adam.
2012-06-18 15:10:40 +00:00
Nicholas Marriott
0f00c3b47a
Actually write all the data to stdout/stderr.
2012-06-18 13:34:56 +00:00
Nicholas Marriott
2942eca895
Add a skeleton mode to tmux (called "control mode") that let's tmux
...
commands be sent and output received on stdout. This can be used to
integrate with other terminal emulators and should allow some other
things to be made simpler later. More to come so doesn't do much yet and
deliberately not documented.
2012-06-18 13:16:42 +00:00
Nicholas Marriott
7c39850d1f
Tidy up bell code, from Thomas Adam.
2012-06-18 10:58:44 +00:00
Nicholas Marriott
a13b4a819a
Add a couple of NULL pointer checks to key binding functions, from
...
jspenguin on SF bug 3535531.
2012-06-18 09:58:02 +00:00
Nicholas Marriott
a4a2c68fa9
Do not crash when the current session has no window, fixes a bug
...
reported by Giorgio Lando. Fix from Thomas Adam.
2012-06-18 09:20:19 +00:00
Nicholas Marriott
2113115cdd
Add -a for kill-session, from Thomas Adam.
2012-06-18 09:16:15 +00:00
Nicholas Marriott
038e8b770d
Add -a flag for detach-client, from Thomas Adam.
2012-06-18 09:15:22 +00:00
Nicholas Marriott
04ac61ecd7
Simplify references to alerts in the man page, from Thomas Adam.
2012-06-18 09:13:12 +00:00
Nicholas Marriott
eed7d9b473
Do not use stderr for log file and don't call log_close when not needed.
2012-05-30 15:01:57 +00:00
Nicholas Marriott
021e95b09f
Do not use stderr for log file and don't call log_close when not needed.
2012-05-30 15:01:21 +00:00
Tiago Cunha
bf4b02cea2
Sync OpenBSD patchset 1130:
...
Add pane title to choose-window template and use the right index for the
pane, from Romain Francoise.
2012-05-30 13:49:45 +00:00
Tiago Cunha
e96d514247
Sync OpenBSD patchset 1129:
...
Use RB_FOREACH_SAFE as winlinks are being removed, from Chris Johnsen.
2012-05-30 13:49:05 +00:00
Tiago Cunha
bcda6eed63
Sync OpenBSD patchset 1128:
...
Use session from -t for killw -a, from Chris Johnsen.
2012-05-30 13:48:16 +00:00
Tiago Cunha
2e3a260315
Sync OpenBSD patchset 1127:
...
Use default-shell not _PATH_BSHELL to spawn commands, pointed out by
Dennis G?nnewig and Thomas Adam.
2012-05-30 13:47:33 +00:00
Tiago Cunha
b24829a99c
Sync OpenBSD patchset 1126:
...
Trim a double space from template.
2012-05-30 13:46:25 +00:00
Tiago Cunha
7c7bd14c61
Sync OpenBSD patchset 1125:
...
Strip layout from choose-windows again (leave in list-windows),
suggested by Romain Francoise, diff from Thomas Adam.
2012-05-30 13:45:16 +00:00
Tiago Cunha
30b23baaf5
Sync OpenBSD patchset 1124:
...
Fix client templates, from Romain Francoise.
2012-05-30 13:44:13 +00:00
Tiago Cunha
169d362945
Sync OpenBSD patchset 1123:
...
Simplify logging and just fprintf(stderr, ...) for early errors.
2012-05-30 13:42:57 +00:00
Tiago Cunha
c6fc8771a9
Sync OpenBSD patchset 1122:
...
Use a predefined structure for not-space cells used to set attributes.
2012-05-30 13:41:58 +00:00
Nicholas Marriott
626c8aa8e7
Add a simple zoom script from Juan Ignacio Pumarino.
2012-05-30 10:33:20 +00:00
Nicholas Marriott
db20f2d907
Add pane title to choose-window template and use the right index for the
...
pane, from Romain Francoise.
2012-05-29 08:15:45 +00:00
Nicholas Marriott
63d109fb7f
Use RB_FOREACH_SAFE as winlinks are being removed, from Chris Johnsen.
2012-05-29 08:12:13 +00:00
Nicholas Marriott
226f9fa012
Use session from -t for killw -a, from Chris Johnsen.
2012-05-29 08:11:34 +00:00
Nicholas Marriott
f51c55c3f0
Use default-shell not _PATH_BSHELL to spawn commands, pointed out by
...
Dennis G?nnewig and Thomas Adam.
2012-05-28 08:55:43 +00:00
Nicholas Marriott
fbf2bd865c
Trim a double space from template.
2012-05-28 08:00:46 +00:00
Nicholas Marriott
1845800651
Strip layout from choose-windows again (leave in list-windows),
...
suggested by Romain Francoise, diff from Thomas Adam.
2012-05-28 07:59:07 +00:00
Nicholas Marriott
993f1b96a3
Fix client templates, from Romain Francoise.
2012-05-27 21:43:57 +00:00
Nicholas Marriott
196710e2d3
Simplify logging and just fprintf(stderr, ...) for early errors.
2012-05-25 08:28:10 +00:00
Nicholas Marriott
ed85c5a198
Remove an extraneous word.
2012-05-23 20:08:14 +00:00
Nicholas Marriott
1f23f6d686
Use a predefined structure for not-space cells used to set attributes.
2012-05-23 19:19:40 +00:00
Tiago Cunha
17da2f7d5f
Sync OpenBSD patchset 1121:
...
Store client in tty struct directly instead of using a callback function
pointer.
2012-05-22 21:05:30 +00:00
Tiago Cunha
fff7c0b276
Sync OpenBSD patchset 1120:
...
Store mouse data in tty structure not on the stack.
2012-05-22 21:04:25 +00:00
Tiago Cunha
5cc4961fd2
Sync OpenBSD patchset 1119:
...
Switch all of the various choose- and list- commands over to the format
infrastructure, from Thomas Adam.
2012-05-22 21:03:25 +00:00
Tiago Cunha
baafc17a1e
Sync OpenBSD patchset 1118:
...
Add a helper function to send ready message.
2012-05-22 20:59:58 +00:00
Tiago Cunha
49b2a255b6
Sync OpenBSD patchset 1117:
...
Use tty_pane_full_width macro in some more places.
2012-05-22 20:59:12 +00:00
Tiago Cunha
d9cb07df3b
Sync OpenBSD patchset 1116:
...
If there are any terminals with insert mode but not ich1, they can go
through the slow path. Tidies code slightly.
2012-05-22 20:58:33 +00:00
Tiago Cunha
a97f22ff2b
Sync OpenBSD patchset 1115:
...
Move some common code to repeat spaces into a function.
2012-05-22 20:57:47 +00:00
Tiago Cunha
ffab6dbc9a
Sync OpenBSD patchset 1114:
...
Instead of passing stdin/stdout/stderr file descriptors over imsg and
handling them in the server, handle them in the client and pass buffers
over imsg. This is much tidier for some upcoming changes and the
performance hit isn't critical.
The tty fd is still passed to the server as before.
This bumps the tmux protocol version so new clients and old servers are
incompatible.
2012-05-22 20:56:35 +00:00
Tiago Cunha
04bf0d8efc
Sync OpenBSD patchset 1113:
...
Ignore line continuation when escaped as \\, from Simon Nicolussi.
2012-05-22 20:50:51 +00:00
Tiago Cunha
3604b31b6f
Sync OpenBSD patchset 1112:
...
Use -t for move-window with -r rather than dying. Reported by Ben
Boeckel and Thomas Adam.
2012-05-22 20:50:03 +00:00
Nicholas Marriott
84c708f355
Store client in tty struct directly instead of using a callback function
...
pointer.
2012-05-22 14:32:28 +00:00
Nicholas Marriott
fe4f00834d
Store mouse data in tty structure not on the stack.
2012-05-22 14:11:30 +00:00
Nicholas Marriott
ebf94bc9cb
Switch all of the various choose- and list- commands over to the format
...
infrastructure, from Thomas Adam.
2012-05-22 11:35:37 +00:00
Nicholas Marriott
682884edc5
Add a helper function to send ready message.
2012-05-22 10:56:48 +00:00
Nicholas Marriott
82b053a811
Use tty_pane_full_width macro in some more places.
2012-05-22 09:37:54 +00:00
Nicholas Marriott
2f93affb98
If there are any terminals with insert mode but not ich1, they can go
...
through the slow path. Tidies code slightly.
2012-05-22 09:36:12 +00:00
Nicholas Marriott
243d12752c
Move some common code to repeat spaces into a function.
2012-05-22 09:09:16 +00:00
Nicholas Marriott
7a4679a17f
Instead of passing stdin/stdout/stderr file descriptors over imsg and
...
handling them in the server, handle them in the client and pass buffers
over imsg. This is much tidier for some upcoming changes and the
performance hit isn't critical.
The tty fd is still passed to the server as before.
This bumps the tmux protocol version so new clients and old servers are
incompatible.
2012-05-21 18:27:42 +00:00
Nicholas Marriott
d61c572c92
+/- from Thomas Adam.
2012-05-20 11:09:17 +00:00
Nicholas Marriott
cae8d02b2e
Add FAQ entry on terminal scrollback, from Andrew Pimlott.
2012-05-17 23:30:20 +00:00
Nicholas Marriott
ac7e2f13e9
Ignore line continuation when escaped as \\, from Simon Nicolussi.
2012-05-17 21:21:31 +00:00
Nicholas Marriott
50cefec497
Use -t for move-window with -r rather than dying. Reported by Ben
...
Boeckel and Thomas Adam.
2012-05-13 07:33:31 +00:00
Tiago Cunha
1340c012b0
Sync OpenBSD patchset 1111:
...
Add a helper function to open the terminal for attach-/new-session.
2012-05-12 15:00:19 +00:00
Tiago Cunha
2f0db58777
Sync OpenBSD patchset 1110:
...
Only enter copy mode on scroll up, from Ailin Nemui.
2012-05-12 14:59:17 +00:00
Tiago Cunha
470f521410
Sync OpenBSD patchset 1109:
...
Tidy up by adding a macro for the pane being the full screen width, from
Ailin Nemui.
2012-05-12 14:58:43 +00:00
Tiago Cunha
8f29eeaae6
Sync OpenBSD patchset 1108:
...
Missing ()s in macros.
2012-05-12 14:57:36 +00:00
Tiago Cunha
f2f9bc0181
Sync OpenBSD patchset 1107:
...
Pull CRA out into a separate function and add ERA, from Ailin Nemui.
2012-05-12 14:57:02 +00:00
Tiago Cunha
5f92f62ac3
Sync OpenBSD patchset 1106:
...
Make unbind-key -a work with -t, based on a diff from Kazuhiko Sakaguchi.
2012-05-12 14:56:10 +00:00
Nicholas Marriott
673b1abe5f
+.
2012-05-10 06:04:31 +00:00
Nicholas Marriott
37f9bb46d8
Add a helper function to open the terminal for attach-/new-session.
2012-05-06 07:38:17 +00:00
Nicholas Marriott
218b692221
Only enter copy mode on scroll up, from Ailin Nemui.
2012-05-05 18:48:31 +00:00
Nicholas Marriott
96a34a0c0a
Tidy up by adding a macro for the pane being the full screen width, from
...
Ailin Nemui.
2012-05-05 18:45:55 +00:00
Nicholas Marriott
132403b6be
Missing ()s in macros.
2012-05-05 18:31:09 +00:00
Nicholas Marriott
3e6454f2d6
Pull CRA out into a separate function and add ERA, from Ailin Nemui.
2012-05-05 18:17:59 +00:00
Nicholas Marriott
f66b105c21
Make unbind-key -a work with -t, based on a diff from Kazuhiko Sakaguchi.
2012-05-05 17:40:47 +00:00
Tiago Cunha
b74b875f25
Sync OpenBSD tree.h due to patchset 1104.
...
Prompted by ore on #tmux.
2012-05-03 20:39:42 +00:00
Tiago Cunha
e79c647052
Sync OpenBSD patchset 1105:
...
default-path has the same possibilities as new-window -c now.
2012-05-03 17:53:50 +00:00
Tiago Cunha
b728970c65
Sync OpenBSD patchset 1104:
...
Add a flag to move-window to renumber the windows in a session (closing
any gaps) and add an option to do this automatically each time a window
is killed. From Thomas Adam.
2012-05-03 17:51:04 +00:00
Tiago Cunha
e45dc6ae59
Sync OpenBSD patchset 1103:
...
Use int not u_char for colours from options since they may have bit 8
set to mark them as 256-colour. Reported by Chris Johnson.
2012-05-03 17:12:38 +00:00
Tiago Cunha
d0907861f9
Sync OpenBSD patchset 1102:
...
Add a buffer with all input from last ground state, will be used for
control mode. From George Nachman.
2012-05-03 16:55:48 +00:00
Nicholas Marriott
cc979bda0f
default-path has the same possibilities as new-window -c now.
2012-05-02 19:29:13 +00:00
Nicholas Marriott
a6c22d650b
Add a flag to move-window to renumber the windows in a session (closing
...
any gaps) and add an option to do this automatically each time a window
is killed. From Thomas Adam.
2012-04-29 17:20:01 +00:00
Nicholas Marriott
e60f48ab09
Use int not u_char for colours from options since they may have bit 8
...
set to mark them as 256-colour. Reported by Chris Johnson.
2012-04-29 07:33:41 +00:00
Nicholas Marriott
ff5155f719
Add a buffer with all input from last ground state, will be used for
...
control mode. From George Nachman.
2012-04-25 21:12:49 +00:00
Tiago Cunha
714416074a
Sync OpenBSD patchset 1101:
...
Add missing prototype.
2012-04-24 16:24:37 +00:00
Tiago Cunha
bea5155fee
Sync OpenBSD patchset 1100:
...
Use an enum for client exit reasons, from George Nachman.
2012-04-24 16:24:03 +00:00
Tiago Cunha
995c9a50ab
Sync OpenBSD patchset 1099:
...
Do not return a buffer on the stack, mentioned by jsg a while ago.
2012-04-24 16:22:28 +00:00
Tiago Cunha
c8c6a23d66
Sync OpenBSD patchset 1098:
...
Use a helper function to fire choose callback.
2012-04-24 16:21:43 +00:00
Tiago Cunha
6df8953f4f
Sync OpenBSD patchset 1097:
...
Add window-status-separator option, from Thomas Adam.
2012-04-24 16:20:18 +00:00
Tiago Cunha
00e2e35740
Sync OpenBSD patchset 1096:
...
Add -a flag to kill-window, from Thomas Adam.
2012-04-24 16:19:27 +00:00
Tiago Cunha
31cf5314ee
Sync OpenBSD patchset 1095:
...
Fix printing commands with no arguments, from Benjamin Poirier.
2012-04-24 16:18:35 +00:00
Tiago Cunha
bdfbb52951
Sync OpenBSD patchset 1094:
...
Handle partial keys properly by making sure the timer has actually
expired, fixes problems with mintty reported by Michael Simpson.
2012-04-24 16:17:57 +00:00
Nicholas Marriott
94795eb48e
Add missing prototype.
2012-04-23 23:25:02 +00:00
Nicholas Marriott
d3e432069b
Use an enum for client exit reasons, from George Nachman.
2012-04-23 23:18:43 +00:00
Nicholas Marriott
0f9e0d1cfe
Do not return a buffer on the stack, mentioned by jsg a while ago.
2012-04-23 22:43:09 +00:00
Nicholas Marriott
48e6ebbe1e
Use a helper function to fire choose callback.
2012-04-23 22:40:47 +00:00
Nicholas Marriott
e02d1bce98
Add window-status-separator option, from Thomas Adam.
2012-04-23 22:23:14 +00:00
Nicholas Marriott
ed58b2d353
Add -a flag to kill-window, from Thomas Adam.
2012-04-23 22:10:45 +00:00
Nicholas Marriott
5cbca2e70f
Fix printing commands with no arguments, from Benjamin Poirier.
2012-04-22 05:24:05 +00:00
Nicholas Marriott
e8dff68588
Handle partial keys properly by making sure the timer has actually
...
expired, fixes problems with mintty reported by Michael Simpson.
2012-04-22 05:21:40 +00:00
Tiago Cunha
e65c5ad56c
Sync OpenBSD patchset 1093:
...
Turn automatic-rename off properly if turned off by renaming a
window. Reported by Romain Francoise.
2012-04-12 12:44:26 +00:00
Tiago Cunha
bae2701289
Sync OpenBSD patchset 1092:
...
Stop accepting new clients for 1 second on EMFILE/ENFILE. Based on
ongoing fixes to other daemons by Theo.
2012-04-12 12:43:40 +00:00
Nicholas Marriott
c6e0af9bdb
Turn automatic-rename off properly if turned off by renaming a
...
window. Reported by Romain Francoise.
2012-04-11 07:45:30 +00:00
Nicholas Marriott
6703ca8d26
Stop accepting new clients for 1 second on EMFILE/ENFILE. Based on
...
ongoing fixes to other daemons by Theo.
2012-04-11 06:16:14 +00:00
Tiago Cunha
ce67a44a94
Sync OpenBSD patchset 1091:
...
Do not fire name timer when automatic-rename is off, from Tim Ruehsen a
while ago.
2012-04-10 09:57:08 +00:00
Tiago Cunha
14e5cdf02e
Sync OpenBSD patchset 1090:
...
Fix comment for mouse bits.
2012-04-10 09:56:04 +00:00
Tiago Cunha
21f62c2cee
Sync OpenBSD patchset 1089:
...
Fix some indentation.
2012-04-10 09:55:27 +00:00
Tiago Cunha
bd6153195f
Sync OpenBSD patchset 1088:
...
Simplify mouse input function.
2012-04-10 09:54:59 +00:00
Tiago Cunha
e5b3858944
Sync OpenBSD patchset 1087:
...
Minor style nits - return ().
2012-04-10 09:54:29 +00:00
Tiago Cunha
09e6b7c137
Sync OpenBSD patchset 1086:
...
Turn some errors down to info.
2012-04-10 09:53:52 +00:00
Tiago Cunha
36ece3fcf5
Sync OpenBSD patchset 1085:
...
Fix option name.
2012-04-10 09:53:14 +00:00
Tiago Cunha
f99de22808
Sync OpenBSD patchset 1084:
...
Add a layout history which can be stepped through with select-layout -u
and -U commands (bound to 'u' and 'U' by default).
2012-04-10 09:52:45 +00:00
Tiago Cunha
b58d7f78a1
Adjust OpenBSD patchset 1083 to the portable version.
2012-04-10 09:50:32 +00:00
Tiago Cunha
2ce636a315
Sync OpenBSD patchset 1083:
...
Add pane_current_path format, suggested by Mikolaj Kucharski.
2012-04-10 09:49:04 +00:00
Tiago Cunha
2c4e8b92ab
Sync OpenBSD patchset 1082:
...
Only exit mouse mode on scroll wheel when actually reaching the end of
the history, from James Nylen.
2012-04-10 09:45:41 +00:00
Tiago Cunha
86c1335452
Sync OpenBSD patchset 1081:
...
Only find each window once no matter how many panes, from Jonathan
Daugherty.
2012-04-10 09:44:58 +00:00
Nicholas Marriott
631d6b59fd
Do not fire name timer when automatic-rename is off, from Tim Ruehsen a
...
while ago.
2012-04-08 06:47:26 +00:00
Nicholas Marriott
ed54f01d2f
Fix comment for mouse bits.
2012-04-01 21:45:48 +00:00
Nicholas Marriott
711d2205dd
Fix some indentation.
2012-04-01 21:07:35 +00:00
Nicholas Marriott
18d3498fb2
Simplify mouse input function.
2012-04-01 20:56:47 +00:00
Nicholas Marriott
c829bdf537
Minor style nits - return ().
2012-04-01 20:53:47 +00:00
Nicholas Marriott
20d10c608d
Turn some errors down to info.
2012-04-01 13:27:18 +00:00
Nicholas Marriott
e1273fb6a1
Fix option name.
2012-04-01 13:21:38 +00:00
Nicholas Marriott
85f5485cb5
Add a layout history which can be stepped through with select-layout -u
...
and -U commands (bound to 'u' and 'U' by default).
2012-04-01 13:18:38 +00:00
Nicholas Marriott
b831f86354
Add pane_current_path format, suggested by Mikolaj Kucharski.
2012-04-01 10:42:39 +00:00
Nicholas Marriott
c11da7ca88
Only exit mouse mode on scroll wheel when actually reaching the end of
...
the history, from James Nylen.
2012-04-01 09:23:31 +00:00
Nicholas Marriott
f881ff1c18
+.
2012-04-01 08:39:19 +00:00
Nicholas Marriott
cd8e536c43
Only find each window once no matter how many panes, from Jonathan
...
Daugherty.
2012-04-01 08:10:56 +00:00
Tiago Cunha
58e5442d37
Sync OpenBSD patchset 1080:
...
Add sys/file.h.
2012-03-29 21:10:41 +00:00
Tiago Cunha
faf51d748e
Sync OpenBSD patchset 1079:
...
Accept an argument to show-environment to show one variable, based on a
diff from Kazuhiko Sakaguchi.
2012-03-29 21:10:10 +00:00
Tiago Cunha
407f66ccbc
Sync OpenBSD patchset 1078:
...
Some terminals respond to secondary DA with primary (they ignore the
intermediate character). So ignore the possible responses to primary DA.
2012-03-29 21:09:19 +00:00
Tiago Cunha
bfc9f475c6
Sync OpenBSD patchset 1077:
...
Fix save-buffer usage, from Kazuhiko Sakaguchi.
2012-03-29 21:08:44 +00:00
Tiago Cunha
8121b541e0
Sync OpenBSD patchset 1076:
...
Remove a stale comment.
2012-03-29 21:08:14 +00:00
Tiago Cunha
65748fb197
Sync OpenBSD patchset 1075:
...
Add -C -N -T flags to find-window to find in content, name, title. From
Jonathan Daugherty.
2012-03-29 21:07:28 +00:00
Tiago Cunha
37e5b5d947
Sync OpenBSD patchset 1074:
...
Check changes_timer with event_initialized before event_del.
2012-03-29 21:06:25 +00:00
Tiago Cunha
8ff20a5c6d
Sync OpenBSD patchset 1073:
...
50 is a too low trigger default on larger terminals, bump to 250.
2012-03-29 21:05:53 +00:00
Tiago Cunha
f9f6eea444
Sync OpenBSD patchset 1072:
...
Add a simple form of output rate limiting by counting the number of
certain C0 sequences (linefeeds, backspaces, carriage returns) and if it
exceeds a threshold (current default 50/millisecond), start to redraw
the pane every 100 milliseconds instead of making each change as it
comes. Two configuration options - c0-change-trigger and
c0-change-interval.
This makes tmux much more responsive under very fast output (for example
yes(1) or accidentally cat'ing a large file) but may not be perfect on
all terminals and connections - feedback very welcome, particularly
where this change has a negative rather than positive effect (making it
off by default is a possibility).
After much experimentation based originally on a request Robin Lee
Powell (which ended with a completely different solution), this idea
from discussion with Ailin Nemui.
2012-03-29 21:05:16 +00:00
Tiago Cunha
621fa0a686
Sync OpenBSD patchset 1071:
...
Move MSG_IDENTIFY to the last sent by the client, this will be needed by
control clients and irrelevant for others.
2012-03-29 21:02:34 +00:00
Nicholas Marriott
0edaa34bfd
Add sys/file.h.
2012-03-24 11:23:19 +00:00
Nicholas Marriott
c0cfbe12e4
Accept an argument to show-environment to show one variable, based on a
...
diff from Kazuhiko Sakaguchi.
2012-03-22 11:11:57 +00:00
Nicholas Marriott
7c9d003e99
Some terminals respond to secondary DA with primary (they ignore the
...
intermediate character). So ignore the possible responses to primary DA.
2012-03-21 21:28:03 +00:00
Nicholas Marriott
49ce38b09a
Fix save-buffer usage, from Kazuhiko Sakaguchi.
2012-03-21 19:16:07 +00:00
Nicholas Marriott
b1e4b8769b
Remove a stale comment.
2012-03-20 23:20:08 +00:00
Nicholas Marriott
90bf560fe4
Add -C -N -T flags to find-window to find in content, name, title. From
...
Jonathan Daugherty.
2012-03-20 17:09:48 +00:00
Nicholas Marriott
5672f2ce6b
Check changes_timer with event_initialized before event_del.
2012-03-20 14:06:44 +00:00
Nicholas Marriott
01f2b5d64b
50 is a too low trigger default on larger terminals, bump to 250.
2012-03-20 11:23:12 +00:00
Nicholas Marriott
f59971276a
Add a simple form of output rate limiting by counting the number of
...
certain C0 sequences (linefeeds, backspaces, carriage returns) and if it
exceeds a threshold (current default 50/millisecond), start to redraw
the pane every 100 milliseconds instead of making each change as it
comes. Two configuration options - c0-change-trigger and
c0-change-interval.
This makes tmux much more responsive under very fast output (for example
yes(1) or accidentally cat'ing a large file) but may not be perfect on
all terminals and connections - feedback very welcome, particularly
where this change has a negative rather than positive effect (making it
off by default is a possibility).
After much experimentation based originally on a request Robin Lee
Powell (which ended with a completely different solution), this idea
from discussion with Ailin Nemui.
2012-03-20 11:01:00 +00:00
Nicholas Marriott
2e2c9bd623
+.
2012-03-20 10:24:12 +00:00
Nicholas Marriott
bf9e7a1c68
Move MSG_IDENTIFY to the last sent by the client, this will be needed by
...
control clients and irrelevant for others.
2012-03-19 08:42:06 +00:00
Tiago Cunha
df31f1dfc9
Sync OpenBSD patchset 1070:
...
On xterm 271 and later, put the terminal into SCL 5 and use DECCRA for
scrolling the region in panes (if the large region check isn't
hit). With help from Ailin Nemui.
2012-03-18 02:25:26 +00:00
Tiago Cunha
0f9f30de2e
Add notify.c to the list of sources.
2012-03-18 02:24:33 +00:00
Tiago Cunha
f41efd9d89
Sync OpenBSD patchset 1069:
...
Add notify hooks for various events, the functions are currently empty
stubs but will be filled in for control mode later. From George Nachman.
2012-03-18 02:22:09 +00:00
Tiago Cunha
ba7278373d
Sync OpenBSD patchset 1067:
...
Use snprintf for constructing attribute string, from Tim Ruehsen.
2012-03-18 02:17:20 +00:00
Tiago Cunha
e4eb43ec71
Sync OpenBSD patchset 1066:
...
Add a wrap-search option to turn off wrapping of searches in copy
mode. From Jacobo de Vera.
2012-03-18 02:12:24 +00:00
Tiago Cunha
dc83ba0372
Sync OpenBSD patchset 1065:
...
Michael Krysiak points out that some terminals (eg mintty) have cursor
styles 5 and 6 too, so allow them to be set.
2012-03-18 02:11:27 +00:00
Tiago Cunha
cf8faa3b33
Sync OpenBSD patchset 1064:
...
Need to call recalculate_sizes() when changing window with the mouse,
from marcel partap.
2012-03-18 02:10:50 +00:00
Tiago Cunha
68ba5377e3
Sync OpenBSD patchset 1063:
...
Add -q option to set-option to turn off info message, from marcel partap.
2012-03-18 02:09:51 +00:00
Tiago Cunha
be4d77e60f
Sync OpenBSD patchset 1062:
...
Break out termios initialization into a separate function, from George
Nachman.
2012-03-18 02:03:15 +00:00
Tiago Cunha
bde45cdd9c
Sync OpenBSD patchset 1061:
...
Do not clear to end of line if the line is full, fixes missing last
character in rightmost pane.
2012-03-18 02:02:18 +00:00
Tiago Cunha
a7c615a794
Sync OpenBSD patchset 1060:
...
Use the region lower not the pane size to work out where the bottom line
is.
2012-03-18 02:01:46 +00:00
Tiago Cunha
92c522228b
Sync OpenBSD patchset 1059:
...
Tweak last fix to actually hit the right end of pane.
2012-03-18 02:01:16 +00:00
Tiago Cunha
3a902f4196
Sync OpenBSD patchset 1058:
...
Fix warnings. Doh.
2012-03-18 02:00:39 +00:00
Tiago Cunha
0987d55231
Sync OpenBSD patchset 1057:
...
Check event_initialized before event_del if event may not have been set
up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
2012-03-18 01:59:34 +00:00
Tiago Cunha
5aa28473dd
Sync OpenBSD patchset 1056:
...
Redirect libevent logging to tmux's log.
2012-03-18 01:58:09 +00:00
Tiago Cunha
21ab66569c
Sync OpenBSD patchset 1055:
...
Revert screen-write.c r1.54 and fix the bug properly. After wrapping a
line in a pane, the cursor needs to move to the next line unless it
scrolled.
2012-03-18 01:57:01 +00:00
Tiago Cunha
070d266aae
Sync OpenBSD patchset 1054:
...
Send secondary DA to terminals with XT in terminfo when starting up and
parse it to work out the xterm version.
2012-03-18 01:55:45 +00:00
Tiago Cunha
3b990ef6b2
Sync OpenBSD patchset 1053:
...
Respond to secondary DA requests.
2012-03-18 01:48:04 +00:00
Tiago Cunha
e920fa3e36
Sync OpenBSD patchset 1052:
...
Fix a warning. Doh.
2012-03-18 01:47:11 +00:00
Tiago Cunha
84207f06b7
Sync OpenBSD patchset 1051:
...
Add a helper function for enabling an optimization to make some code
clearer.
2012-03-18 01:46:37 +00:00
Tiago Cunha
c7f078dcbc
Sync OpenBSD patchset 1050:
...
Store context off before moving the cursor when wrapping, to fix long
standing bug drawing over the status line.
2012-03-18 01:40:26 +00:00
Tiago Cunha
3893cc17a4
Sync OpenBSD patchset 1049:
...
Add -P/-F flags to break-pane too, from George Nachman.
2012-03-18 01:38:27 +00:00
Tiago Cunha
4d1c513968
Sync OpenBSD patchset 1048:
...
Erm, use EL in a way that actually works...
2012-03-18 01:37:26 +00:00
Tiago Cunha
14d6a4ab26
Sync OpenBSD patchset 1047:
...
Use EL to clear to end of line if possible.
2012-03-18 01:36:49 +00:00
Tiago Cunha
e678ba3943
Sync OpenBSD patchset 1046:
...
Always remember last cursor position when moving up or down, not just
for if crossing zero length lines. From Itay Perl.
2012-03-18 01:35:39 +00:00
Tiago Cunha
166681eee9
Sync OpenBSD patchset 1045:
...
Remove some bits leftover from unused backoff code.
2012-03-18 01:33:56 +00:00
Tiago Cunha
1fdac2adf1
Sync OpenBSD patchset 1044:
...
Add a missing call to window_set_name, from George Nachman.
2012-03-18 01:28:56 +00:00
Tiago Cunha
40b1d64ce7
Sync OpenBSD patchset 1043:
...
Use a lock file and flock() to serialize server start, avoids problems
when running a bunch of tmux from cron at the same time. Based on a diff
from Tim Ruehsen.
2012-03-18 01:28:10 +00:00
Nicholas Marriott
d8805af66b
On xterm 271 and later, put the terminal into SCL 5 and use DECCRA for
...
scrolling the region in panes (if the large region check isn't
hit). With help from Ailin Nemui.
2012-03-17 22:56:04 +00:00
Nicholas Marriott
46210344a6
Add notify hooks for various events, the functions are currently empty
...
stubs but will be filled in for control mode later. From George Nachman.
2012-03-17 22:35:09 +00:00
Nicholas Marriott
4f480c901d
$Id$ -> $OpenBSD$.
2012-03-17 22:34:12 +00:00
Nicholas Marriott
50f5d2a7ec
Use snprintf for constructing attribute string, from Tim Ruehsen.
2012-03-17 21:45:25 +00:00
Nicholas Marriott
95f48a219a
Add a wrap-search option to turn off wrapping of searches in copy
...
mode. From Jacobo de Vera.
2012-03-17 21:40:53 +00:00
Nicholas Marriott
87d092d226
Michael Krysiak points out that some terminals (eg mintty) have cursor
...
styles 5 and 6 too, so allow them to be set.
2012-03-17 21:37:36 +00:00
Nicholas Marriott
e87d4b43ab
Need to call recalculate_sizes() when changing window with the mouse,
...
from marcel partap.
2012-03-17 21:34:34 +00:00
Nicholas Marriott
f152379e5a
Add -q option to set-option to turn off info message, from marcel partap.
2012-03-17 21:33:33 +00:00
Nicholas Marriott
889fe42e11
Break out termios initialization into a separate function, from George
...
Nachman.
2012-03-17 21:27:51 +00:00
Nicholas Marriott
164e85cca7
Do not clear to end of line if the line is full, fixes missing last
...
character in rightmost pane.
2012-03-17 19:29:46 +00:00
Nicholas Marriott
0b34fefe6e
Use the region lower not the pane size to work out where the bottom line
...
is.
2012-03-17 19:18:37 +00:00
Nicholas Marriott
928f40615c
Tweak last fix to actually hit the right end of pane.
2012-03-17 18:51:50 +00:00
Nicholas Marriott
7ad052583a
Fix warnings. Doh.
2012-03-17 18:38:58 +00:00
Nicholas Marriott
d3c842d367
Check event_initialized before event_del if event may not have been set
...
up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
2012-03-17 18:24:07 +00:00
Nicholas Marriott
a597e3546c
Redirect libevent logging to tmux's log.
2012-03-17 18:23:03 +00:00
Nicholas Marriott
0489213b1b
Revert screen-write.c r1.54 and fix the bug properly. After wrapping a
...
line in a pane, the cursor needs to move to the next line unless it
scrolled.
2012-03-17 17:36:03 +00:00
Nicholas Marriott
9b8fc982ec
+.
2012-03-16 21:10:39 +00:00
Nicholas Marriott
92a720157b
+.
2012-03-16 07:37:19 +00:00
Nicholas Marriott
c8c0d68128
Send secondary DA to terminals with XT in terminfo when starting up and
...
parse it to work out the xterm version.
2012-03-15 10:36:00 +00:00
Nicholas Marriott
523ed3873d
Respond to secondary DA requests.
2012-03-15 10:05:49 +00:00
Nicholas Marriott
005566f915
Fix a warning. Doh.
2012-03-15 09:22:31 +00:00
Nicholas Marriott
698361ccde
Add a helper function for enabling an optimization to make some code
...
clearer.
2012-03-15 09:10:33 +00:00
Nicholas Marriott
71df37c247
Store context off before moving the cursor when wrapping, to fix long
...
standing bug drawing over the status line.
2012-03-14 23:29:07 +00:00
Nicholas Marriott
21c11c7f48
+.
2012-03-12 13:58:11 +00:00
Nicholas Marriott
4e05a2c0ae
Add -P/-F flags to break-pane too, from George Nachman.
2012-03-12 13:31:09 +00:00
Nicholas Marriott
575bfa4b4b
Erm, use EL in a way that actually works...
2012-03-12 12:43:18 +00:00
Nicholas Marriott
31ddae7735
Use EL to clear to end of line if possible.
2012-03-12 12:38:42 +00:00
Nicholas Marriott
33fac234c0
Fix trailing \, pointed out by Romain Francoise and a few others.
2012-03-11 23:04:19 +00:00
Nicholas Marriott
1bbb793263
Always remember last cursor position when moving up or down, not just
...
for if crossing zero length lines. From Itay Perl.
2012-03-11 23:01:19 +00:00
Nicholas Marriott
799f437eff
Remove some bits leftover from unused backoff code.
2012-03-09 21:42:13 +00:00
Nicholas Marriott
be63fef872
Add a missing call to window_set_name, from George Nachman.
2012-03-09 21:11:28 +00:00
Nicholas Marriott
ac9ebc29a2
Use a lock file and flock() to serialize server start, avoids problems
...
when running a bunch of tmux from cron at the same time. Based on a diff
from Tim Ruehsen.
2012-03-09 09:57:40 +00:00
Tiago Cunha
3307813a07
Sync OpenBSD patchset 1042:
...
free -> xfree.
2012-03-07 13:40:08 +00:00
Tiago Cunha
3d98adaf91
Sync OpenBSD patchset 1041:
...
Add -F format to new-window and split-window to use with the -P flag,
from George Nachman.
2012-03-07 13:39:29 +00:00
Tiago Cunha
cf11809cd4
Sync OpenBSD patchset 1040:
...
Accept hex values as keys, needed for send-keys, based on a diff from
George Nachman.
2012-03-07 13:38:26 +00:00
Tiago Cunha
32a6092f71
Sync OpenBSD patchset 1039:
...
Add A and I keys for vi status line editing.
2012-03-07 13:37:44 +00:00
Tiago Cunha
e7c7024907
Sync OpenBSD patchset 1038:
...
Terminate strftime buffer properly and free format string, whoops. From
Tiago Cunha.
2012-03-07 13:36:57 +00:00
Tiago Cunha
3275e9bd5b
Sync OpenBSD patchset 1037:
...
Support "bracketed paste" mode. This adds a -p flag to paste-buffer - if
this is used and the application has requested bracketed pastes, then
tmux surrounds the pasted text by \033[200~ and \033[201~. Applications
like vim can (apparently) use this to avoid, for example, indenting the
text. From Ailin Nemui.
2012-03-07 13:36:19 +00:00
Tiago Cunha
9d79a56402
Sync OpenBSD patchset 1036:
...
The wlmouse offset should be part of the client, not the server. From
Ailin Nemui.
2012-03-07 13:35:03 +00:00
Nicholas Marriott
18012f5b18
free -> xfree.
2012-03-04 20:52:05 +00:00
Nicholas Marriott
03dca66ae2
Add -F format to new-window and split-window to use with the -P flag,
...
from George Nachman.
2012-03-04 20:50:53 +00:00
Nicholas Marriott
178a20718c
Accept hex values as keys, needed for send-keys, based on a diff from
...
George Nachman.
2012-03-04 20:40:54 +00:00
Nicholas Marriott
30f4c30ca3
Add A and I keys for vi status line editing.
2012-03-04 07:38:11 +00:00
Nicholas Marriott
8b68ea1462
Terminate strftime buffer properly and free format string, whoops. From
...
Tiago Cunha.
2012-03-03 09:45:41 +00:00
Nicholas Marriott
f4fdddc930
Support "bracketed paste" mode. This adds a -p flag to paste-buffer - if
...
this is used and the application has requested bracketed pastes, then
tmux surrounds the pasted text by \033[200~ and \033[201~. Applications
like vim can (apparently) use this to avoid, for example, indenting the
text. From Ailin Nemui.
2012-03-03 09:43:22 +00:00
Tiago Cunha
e4f1fbd008
Sync OpenBSD patchset 1035:
...
Add move-pane command (like join-pane but allows the same window). Also
-b flag to join-pane and move-pane to place the pane to the left or
above. From George Nachman.
2012-03-03 09:19:40 +00:00
Tiago Cunha
89ab147093
Sync OpenBSD patchset 1034:
...
Add printf attribute to a couple of functions, from Tim Ruehsen.
2012-03-03 09:17:30 +00:00
Tiago Cunha
95f427c34e
Sync OpenBSD patchset 1032:
...
Allow a single option to be specified to show-options to show just that
option.
2012-03-03 09:16:52 +00:00
Tiago Cunha
e0d2221879
Sync OpenBSD patchset 1031:
...
Use format for display-message, based on a diff from George Nachman.
2012-03-03 09:14:21 +00:00
Nicholas Marriott
4b8bb7770f
The wlmouse offset should be part of the client, not the server. From
...
Ailin Nemui.
2012-03-03 08:55:56 +00:00
Nicholas Marriott
07ac16807f
Add move-pane command (like join-pane but allows the same window). Also
...
-b flag to join-pane and move-pane to place the pane to the left or
above. From George Nachman.
2012-03-03 08:31:18 +00:00
Nicholas Marriott
82f4db0d10
ANSIfy function prototypes, from Tim Ruehsen.
2012-03-02 11:23:51 +00:00
Nicholas Marriott
4d9ccd3229
Add printf attribute to a couple of functions, from Tim Ruehsen.
2012-03-02 11:16:44 +00:00
Nicholas Marriott
b801118fe5
+book at http://pragprog.com/book/bhtmux/tmux
2012-03-01 17:16:49 +00:00
Nicholas Marriott
952ffdd288
Remove accidentally committed option.
2012-02-29 21:10:51 +00:00
Nicholas Marriott
4e7de210e4
Allow a single option to be specified to show-options to show just that
...
option.
2012-02-25 12:57:42 +00:00
Nicholas Marriott
aaf0bfccf4
Use format for display-message, based on a diff from George Nachman.
2012-02-23 22:40:58 +00:00
Nicholas Marriott
a870a596bc
+.
2012-02-21 08:56:18 +00:00
Tiago Cunha
88f25bb677
Sync OpenBSD patchset 1030:
...
Sort some entries, from Ben Boeckel.
2012-02-15 19:32:39 +00:00
Tiago Cunha
290636bc86
Sync OpenBSD patchset 1029:
...
Add a wrapper function tty_set_size from George Nachman.
2012-02-15 19:32:12 +00:00
Tiago Cunha
3e94fa70f9
Sync OpenBSD patchset 1028:
...
Don't die if fail to get root directory, from Ben Boeckel.
2012-02-15 19:31:35 +00:00
Tiago Cunha
cfa6ac9161
Sync OpenBSD patchset 1026:
...
Check for the right return value from sscanf.
2012-02-15 19:30:51 +00:00
Tiago Cunha
6e6e8046ba
Sync OpenBSD patchset 1026:
...
Document option values, particularly that omitting on|off for a flag is
a toggle.
2012-02-15 19:30:17 +00:00
Nicholas Marriott
d7ea1ac847
Update, from Ben Boeckel.
2012-02-15 18:48:52 +00:00
Nicholas Marriott
fe055c89f5
Sort some entries, from Ben Boeckel.
2012-02-15 18:44:49 +00:00
Nicholas Marriott
fddbd44c18
Add a wrapper function tty_set_size from George Nachman.
2012-02-15 17:25:02 +00:00
Nicholas Marriott
67949de0a1
Don't die if fail to get root directory, from Ben Boeckel.
2012-02-06 17:29:29 +00:00
Nicholas Marriott
3f49137f90
Check for the right return value from sscanf.
2012-02-05 22:23:13 +00:00
Nicholas Marriott
fe7cf0ba90
Document option values, particularly that omitting on|off for a flag is
...
a toggle.
2012-02-02 22:33:05 +00:00
Tiago Cunha
94e46dd724
Sync OpenBSD patchset 1025:
...
Add -l flag to send-keys to send input literally (without translating
key names). From Frank Terbeck.
2012-02-02 02:01:18 +00:00
Tiago Cunha
c82e06804e
Sync OpenBSD patchset 1024:
...
Move window name changes into wrapper function window_set_name, from
George Nachman.
2012-02-02 02:00:12 +00:00
Tiago Cunha
509a7e8b73
Sync OpenBSD patchset 1023:
...
Do not change pane when changing window with mouse on status line,
pointed out by Romain Francoise.
2012-02-02 01:58:47 +00:00
Tiago Cunha
98e24b9f70
Sync OpenBSD patchset 1022:
...
Get client_width and client_height the right way round, from Stephen
Thirlwall.
2012-02-02 01:58:16 +00:00
Tiago Cunha
0fd0030a2a
Adjust function name to the portable version.
2012-02-02 01:57:14 +00:00
Tiago Cunha
4bb01c1768
Sync OpenBSD patchset 1021:
...
Provide defined ways to set the various default-path possibilities: ~
for home directory, . for server start directory, - for session start
directory and empty for the pane's working directory (the default). All
can also be used as part of a relative path (eg -/foo). Also provide -c
flags to neww and splitw to override default-path setting.
Based on a diff from sthen. ok sthen
2012-02-02 01:55:34 +00:00
Nicholas Marriott
efb639e1d2
Add -l flag to send-keys to send input literally (without translating
...
key names). From Frank Terbeck.
2012-02-02 00:15:28 +00:00
Nicholas Marriott
8363d19307
Move window name changes into wrapper function window_set_name, from
...
George Nachman.
2012-02-02 00:10:11 +00:00
Nicholas Marriott
fdeaa73342
Do not change pane when changing window with mouse on status line,
...
pointed out by Romain Francoise.
2012-02-02 00:04:54 +00:00
Nicholas Marriott
d1ae2d9757
Get client_width and client_height the right way round, from Stephen
...
Thirlwall.
2012-02-02 00:03:45 +00:00
Nicholas Marriott
908a22e41c
Provide defined ways to set the various default-path possibilities: ~
...
for home directory, . for server start directory, - for session start
directory and empty for the pane's working directory (the default). All
can also be used as part of a relative path (eg -/foo). Also provide -c
flags to neww and splitw to override default-path setting.
Based on a diff from sthen. ok sthen
2012-01-31 15:52:21 +00:00
Tiago Cunha
c2176afe9c
Sync OpenBSD patchset 1020:
...
Add pane id to each pane in layout description (while still accepting
the old form). Based on diff from George Nachman.
2012-01-31 12:03:56 +00:00
Tiago Cunha
6b3988b749
Sync OpenBSD patchset 1019:
...
id -> ID; ok nicm
2012-01-31 12:03:00 +00:00
Tiago Cunha
896c55291f
Sync OpenBSD patchset 1018:
...
Don't print double spaces in list output.
2012-01-31 12:02:24 +00:00
Tiago Cunha
2ee0d851d9
Sync OpenBSD patchset 1017:
...
Give each window a unique id, like panes but prefixed with @. Based on
work from George Nachman.
2012-01-31 12:01:43 +00:00
Tiago Cunha
c08a532440
Sync OpenBSD patchset 1016:
...
Enforce history-limit option when clearing the screen, memory leak
spotted by R I Pienaar.
2012-01-31 11:58:55 +00:00
Nicholas Marriott
49a5a587ec
Add pane id to each pane in layout description (while still accepting
...
the old form). Based on diff from George Nachman.
2012-01-30 20:57:02 +00:00
Jason McIntyre
677ed3e5f0
id -> ID; ok nicm
2012-01-30 20:48:28 +00:00
Nicholas Marriott
f188345b33
Don't print double spaces in list output.
2012-01-30 20:39:56 +00:00
Nicholas Marriott
0e59bc75fd
Give each window a unique id, like panes but prefixed with @. Based on
...
work from George Nachman.
2012-01-30 09:39:34 +00:00
Nicholas Marriott
937173ff11
Enforce history-limit option when clearing the screen, memory leak
...
spotted by R I Pienaar.
2012-01-29 21:31:11 +00:00
Tiago Cunha
e4a7cefe0c
Sync OpenBSD patchset 1015:
...
Add an option to move the status line to the top of the screen,
requested by many.
2012-01-29 12:57:01 +00:00
Tiago Cunha
e23df3af5a
Sync OpenBSD patchset 1014:
...
Call bufferevent_free before closing file descriptor associated with it
or bugs in $EventMechanism on $OtherOS makes libevent get it's knickers
in a twist. From Dylan Alex Simon.
2012-01-29 12:53:33 +00:00
Tiago Cunha
9c1d3046ca
Sync OpenBSD patchset 1013:
...
Terminate strftime buffer properly even if a really long format string
is given, from Tiago Cunha.
2012-01-29 12:52:16 +00:00
Tiago Cunha
c846298747
Sync OpenBSD patchset 1012:
...
Fix memory leak in error path, from Tiago Cunha.
2012-01-29 12:51:43 +00:00
Nicholas Marriott
230d0fbc9e
Add an option to move the status line to the top of the screen,
...
requested by many.
2012-01-29 09:37:02 +00:00
Nicholas Marriott
9bbc63ed65
Call bufferevent_free before closing file descriptor associated with it
...
or bugs in $EventMechanism on $OtherOS makes libevent get it's knickers
in a twist. From Dylan Alex Simon.
2012-01-29 02:22:11 +00:00
Nicholas Marriott
ad2cc63412
Fill in osdep_get_cwd on Darwin, from Alex Ernst.
2012-01-27 09:01:06 +00:00
Nicholas Marriott
a7a44bfcd9
Terminate strftime buffer properly even if a really long format string
...
is given, from Tiago Cunha.
2012-01-26 09:05:54 +00:00
Nicholas Marriott
d2d2df1365
Fix memory leak in error path, from Tiago Cunha.
2012-01-26 09:03:09 +00:00
Tiago Cunha
224255cb89
Create a debug build by default.
2012-01-23 13:20:14 +00:00
Tiago Cunha
74b2eaa73e
Working on 1.7.
2012-01-23 13:19:08 +00:00
Tiago Cunha
e254aeb9f9
Major changes since the previous version.
2012-01-23 12:41:36 +00:00
Tiago Cunha
1d4c54717c
Add notes about some potential configuration file breaking in the 1.6 release.
2012-01-23 12:38:05 +00:00
Tiago Cunha
30b816f101
Done.
2012-01-23 12:35:55 +00:00
Tiago Cunha
9803aee98e
Releases don't have debugging enabled.
2012-01-23 12:34:47 +00:00
Tiago Cunha
a34a72d2d9
Sync OpenBSD patchset 1011:
...
Remove unused backoff code that doesn't do any good.
2012-01-23 12:24:00 +00:00
Tiago Cunha
4d80980e50
Sync OpenBSD patchset 1010:
...
Show pane size in top right of display panes mode.
2012-01-23 12:23:27 +00:00
Tiago Cunha
85152ef35c
Expand the Id keyword.
2012-01-22 23:41:34 +00:00
Nicholas Marriott
678e67437f
Remove unused backoff code that doesn't do any good.
2012-01-21 23:51:34 +00:00
Nicholas Marriott
b92e81a1aa
Show pane size in top right of display panes mode.
2012-01-21 23:45:44 +00:00
Tiago Cunha
ebce251183
Sync OpenBSD patchset 1009:
...
it's -> its.
2012-01-21 21:40:33 +00:00
Nicholas Marriott
e870a3f3ec
it's -> its.
2012-01-21 20:40:28 +00:00
Tiago Cunha
a3c1b730c9
Sync OpenBSD patchset 1008:
...
Use RB trees not SPLAY.
2012-01-21 19:38:26 +00:00
Tiago Cunha
a7b0b30bdd
Sync OpenBSD patchset 1007:
...
Drop the ability to have a list of keys in the prefix in favour of two
separate options, prefix and prefix2. This simplifies the code and gets
rid the data options type which was only used for this one option.
Also add a -2 flag to send-prefix to send the secondary prefix key,
fixing a cause of minor irritation.
People who want three prefix keys are out of luck :-).
2012-01-21 19:36:40 +00:00
Tiago Cunha
d4c2a935f2
Sync OpenBSD patchset 1006:
...
Add strings to allow the aixterm bright colours to be used when
configuring colours, requested by Elliott Cable a few months ago.
2012-01-21 19:33:45 +00:00
Tiago Cunha
cc967ffeb9
Sync OpenBSD patchset 1005:
...
One day I will actually fix ALL the warnings before I commit...
2012-01-21 19:32:36 +00:00
Tiago Cunha
4bea559037
Sync OpenBSD patchset 1004:
...
Add a -R flag to send-keys to reset the terminal. Written ages ago and
Suggested by someone, I forget who.
2012-01-21 19:31:59 +00:00
Tiago Cunha
674de910ca
Sync OpenBSD patchset 1003:
...
Only hide flags on the current window when the session is attached, from
Roland Walker.
2012-01-21 19:30:07 +00:00
Nicholas Marriott
8ed9124f3f
Use RB trees not SPLAY.
2012-01-21 11:12:13 +00:00
Nicholas Marriott
535286c05a
Drop the ability to have a list of keys in the prefix in favour of two
...
separate options, prefix and prefix2. This simplifies the code and gets
rid the data options type which was only used for this one option.
Also add a -2 flag to send-prefix to send the secondary prefix key,
fixing a cause of minor irritation.
People who want three prefix keys are out of luck :-).
2012-01-21 08:40:09 +00:00
Nicholas Marriott
7f24020cbe
Add strings to allow the aixterm bright colours to be used when
...
configuring colours, requested by Elliott Cable a few months ago.
2012-01-21 08:23:12 +00:00
Nicholas Marriott
be7b56a613
One day I will actually fix ALL the warnings before I commit...
2012-01-21 08:12:03 +00:00
Nicholas Marriott
66f04514cf
Add a -R flag to send-keys to reset the terminal. Written ages ago and
...
Suggested by someone, I forget who.
2012-01-21 08:10:21 +00:00
Nicholas Marriott
cd10f7322a
Only hide flags on the current window when the session is attached, from
...
Roland Walker.
2012-01-21 06:13:16 +00:00
Tiago Cunha
5434a2759a
Sync OpenBSD patchset 1002:
...
Add some const and fix a warning.
2012-01-20 21:21:32 +00:00
Tiago Cunha
b7551c9193
Sync OpenBSD patchset 1001:
...
Add some trivial additional status line attributes from jwcxz at users
dot sourceforge dot net.
2012-01-20 21:20:35 +00:00
Tiago Cunha
d4312281da
Sync OpenBSD patchset 1000:
...
Remove trailing spaces.
2012-01-20 21:19:20 +00:00
Tiago Cunha
d9eb34b28d
Sync OpenBSD patchset 999:
...
Add an option to disable the window rename escape sequence, from Romain
Francoise.
2012-01-20 21:18:39 +00:00
Tiago Cunha
b79189958f
Sync OpenBSD patchset 998:
...
Add space movement keys for vi mode in the status line from Ben Boeckel.
2012-01-20 21:17:18 +00:00
Tiago Cunha
ad5c4e719b
Sync OpenBSD patchset 997:
...
Calculate last position correctly for UTF-8 wide characters, reported by
Matthias Lederhofer.
2012-01-20 21:16:07 +00:00
Nicholas Marriott
db7570daab
Set IUTF8 in termios where supported, suggested by Egmont Koblinger.
2012-01-20 20:18:20 +00:00
Nicholas Marriott
8332413305
Add some const and fix a warning.
2012-01-20 19:54:07 +00:00
Nicholas Marriott
8cf19ab770
Add some trivial additional status line attributes from jwcxz at users
...
dot sourceforge dot net.
2012-01-20 19:51:28 +00:00
Nicholas Marriott
199d148740
Remove trailing spaces.
2012-01-20 19:16:16 +00:00
Nicholas Marriott
dcad13155b
Add an option to disable the window rename escape sequence, from Romain
...
Francoise.
2012-01-20 19:15:40 +00:00
Nicholas Marriott
e6519d3e27
Add space movement keys for vi mode in the status line from Ben Boeckel.
2012-01-20 19:10:29 +00:00
Nicholas Marriott
299a8fd4a3
Calculate last position correctly for UTF-8 wide characters, reported by
...
Matthias Lederhofer.
2012-01-15 19:39:42 +00:00
Tiago Cunha
60069fe8fe
Sync OpenBSD patchset 995:
...
Add a man page section on window names and pane titles, from Felix
Rosencrantz.
2012-01-03 18:36:40 +00:00
Tiago Cunha
d817f88fec
Sync OpenBSD patchset 995:
...
Show how to set default-path to revert to tmux's old behaviour of opening
new windows in the current working directory at the time tmux was started,
it's not obvious. naddy@ agrees this is a useful inclusion.
2012-01-03 18:35:54 +00:00
Nicholas Marriott
eeaf92ad06
Add a man page section on window names and pane titles, from Felix
...
Rosencrantz.
2011-12-31 03:40:15 +00:00
Stuart Henderson
16f9667620
Show how to set default-path to revert to tmux's old behaviour of opening
...
new windows in the current working directory at the time tmux was started,
it's not obvious. naddy@ agrees this is a useful inclusion.
2011-12-30 14:59:13 +00:00
Tiago Cunha
90b331ea46
Sync OpenBSD patchset 994:
...
Add CNL and CPL escape sequences.
2011-12-30 14:21:40 +00:00
Tiago Cunha
e2d59a6c17
Sync OpenBSD patchset 993:
...
Allow $HOME as default-path in tmux.conf so the same config file can be used
on different machines regardless of where the user's home directory is.
ok nicm
2011-12-30 14:21:02 +00:00
Tiago Cunha
2ca1849350
Sync OpenBSD patchset 992:
...
Add \033[s and \033[u to save and restore cursor position.
2011-12-30 14:19:21 +00:00
Tiago Cunha
e210abf335
$Id$ not $OpenBSD$.
2011-12-30 14:18:27 +00:00
Tiago Cunha
f9b4095188
Sync OpenBSD patchset 991:
...
Extend history that can be captured to INT_MIN rather than
SHRT_MIN. From Chris Johnsen.
2011-12-30 14:16:44 +00:00
Tiago Cunha
d1f0138653
Sync OpenBSD patchset 990:
...
Reset flags on every loop or it is displayed too often, from Chris
Johnsen.
2011-12-30 14:15:40 +00:00
Nicholas Marriott
92aef64c5a
Add CNL and CPL escape sequences.
2011-12-29 08:06:24 +00:00
Stefan Sperling
fdd1d0b72e
Allow $HOME as default-path in tmux.conf so the same config file can be used
...
on different machines regardless of where the user's home directory is.
ok nicm
2011-12-27 14:07:20 +00:00
Nicholas Marriott
d377a68593
Add \033[s and \033[u to save and restore cursor position.
2011-12-27 14:06:19 +00:00
Nicholas Marriott
5db593e5c2
Extend history that can be captured to INT_MIN rather than
...
SHRT_MIN. From Chris Johnsen.
2011-12-27 13:46:26 +00:00
Nicholas Marriott
d71e4b9aca
Reset flags on every loop or it is displayed too often, from Chris
...
Johnsen.
2011-12-27 13:41:50 +00:00
Tiago Cunha
9e7ec2e971
Sync OpenBSD patchset 989:
...
formatting errors, found using freebsd's "igor";
2011-12-25 23:36:27 +00:00
Tiago Cunha
3a9a24a7c0
Sync OpenBSD patchset 988:
...
Fix so that when mouse-select-pane and mouse-select-window are both
enabled, clicking on the status line does not change the current
pane. From Romain Francoise.
2011-12-25 23:33:30 +00:00
Jason McIntyre
da145e7c20
formatting errors, found using freebsd's "igor";
2011-12-24 08:46:48 +00:00
Nicholas Marriott
d655566ce7
Fix so that when mouse-select-pane and mouse-select-window are both
...
enabled, clicking on the status line does not change the current
pane. From Romain Francoise.
2011-12-24 08:26:59 +00:00
Nicholas Marriott
c1b9948525
Change the way the working directory for new processes is discovered. If
...
default-path isn't empty, it is used. Otherwise:
1) If tmux neww is run from the command line, the working directory of the
client is used.
2) Otherwise use some platform specific code to retrieve the current working
directory of the process in the active pane.
3) If that fails, the directory where the session was created is used.
Idea and support code, Linux, Solaris, FreeBSD bits by Romain Francoise,
OpenBSD bits by me.
2011-12-09 16:37:29 +00:00
Nicholas Marriott
f308ba93aa
Change the way the working directory for new processes is discovered. If
...
default-path isn't empty, it is used. Otherwise:
1) If tmux neww is run from the command line, the working directory of the
client is used.
2) Otherwise sysctl KERN_PROC_CWD is used to retrieve the current
working directory of the process in the active pane.
3) If that fails, the directory where the session was created is used.
Support code by Romain Francois, OpenBSD specific bits by me.
Note this requires a recent userland and kernel with KERN_PROC_CWD.
2011-12-09 16:28:18 +00:00
Tiago Cunha
76862acf3e
Sync OpenBSD patchset 986:
...
Support "jump to" like vi in copy mode using t and T keys. Also add x
and X for delete in edit mode.
From Ben Boeckel, thanks.
2011-12-06 18:50:26 +00:00
Tiago Cunha
f308663ad4
Sync OpenBSD patchset 985:
...
Log terminal overrides.
2011-12-06 18:48:45 +00:00
Tiago Cunha
876f46abb9
Sync OpenBSD patchset 984:
...
Add home and end keys for command prompt, from Matthias Lederhofer.
2011-12-06 18:48:02 +00:00
Tiago Cunha
620a87db25
Sync OpenBSD patchset 983:
...
Make M-f and M-b work the same at the command prompt as in copy mode,
pointed out by Romain Francoise.
2011-12-06 18:47:14 +00:00
Nicholas Marriott
e04d13f6a6
Support "jump to" like vi in copy mode using t and T keys. Also add x
...
and X for delete in edit mode.
From Ben Boeckel, thanks.
2011-12-04 16:18:01 +00:00
Nicholas Marriott
c44d2d854f
Log terminal overrides.
2011-12-01 23:47:08 +00:00
Nicholas Marriott
31f13e49d8
Add home and end keys for command prompt, from Matthias Lederhofer.
2011-12-01 20:44:12 +00:00
Nicholas Marriott
2397083f7e
Make M-f and M-b work the same at the command prompt as in copy mode,
...
pointed out by Romain Francoise.
2011-12-01 20:42:31 +00:00
Tiago Cunha
08014af243
New commands and options. From Ben Boeckel.
2011-11-25 14:31:11 +00:00
Tiago Cunha
774bffb3c6
Sync OpenBSD patchset 982:
...
Add word movement and editing command for command prompt editing, from
Ben Boeckel.
2011-11-25 13:34:20 +00:00
Tiago Cunha
9c920214e6
Sync OpenBSD patchset 981:
...
Move word-separators to be a session rather than window option, from Ben
Boeckel.
2011-11-25 13:33:04 +00:00
Tiago Cunha
5cc3d50289
Sync OpenBSD patchset 980:
...
Add a pane_index format string and use it, from Ben Boeckel.
2011-11-25 13:31:56 +00:00
Tiago Cunha
9ec457575d
Sync OpenBSD patchset 979:
...
Make window_pane_index work the same as window_index, from Ben Boeckel.
2011-11-25 13:30:45 +00:00
Nicholas Marriott
fc5f8804ec
Add word movement and editing command for command prompt editing, from
...
Ben Boeckel.
2011-11-15 23:34:12 +00:00
Nicholas Marriott
fd25d35868
Move word-separators to be a session rather than window option, from Ben
...
Boeckel.
2011-11-15 23:24:04 +00:00
Nicholas Marriott
7c9bc377a3
Add a pane_index format string and use it, from Ben Boeckel.
2011-11-15 23:21:52 +00:00
Nicholas Marriott
57df442916
Make window_pane_index work the same as window_index, from Ben Boeckel.
2011-11-15 23:19:51 +00:00
Nicholas Marriott
398af28d2a
+.
2011-11-15 23:12:28 +00:00
Tiago Cunha
8798079ab0
Typo. From Bastien Dejean.
2011-11-10 21:50:40 +00:00
Tiago Cunha
c26ec766cb
Add command colour options. From Ben Boeckel.
2011-11-10 21:49:27 +00:00
Tiago Cunha
c3794d4303
Sync OpenBSD patchset 978:
...
Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.
2011-11-10 21:41:37 +00:00
Tiago Cunha
4fbb296438
Sync OpenBSD patchset 977:
...
Missing bits for new keys and buffer indexes, from Tiago Cunha
2011-11-10 21:41:01 +00:00
Tiago Cunha
21128fea1e
Sync OpenBSD patchset 976:
...
Option to change status line (message) background when using vi keys and
in command mode. From Ben Boeckel.
2011-11-10 21:40:17 +00:00
Nicholas Marriott
9f738dd2fe
Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.
2011-11-09 12:02:07 +00:00
Nicholas Marriott
693c106a1d
Add.
2011-11-09 12:00:11 +00:00
Nicholas Marriott
6c1c304fc3
Missing bits for new keys and buffer indexes, from Tiago Cunha
2011-11-05 09:13:00 +00:00
Nicholas Marriott
e5bf63cb59
Option to change status line (message) background when using vi keys and
...
in command mode. From Ben Boeckel.
2011-11-05 09:06:31 +00:00
Tiago Cunha
046d8b096f
Sync OpenBSD patchset 975:
...
minor formatting fix;
2011-10-31 13:56:55 +00:00
Tiago Cunha
0cbab892d5
Sync OpenBSD patchset 974:
...
Add screen*:XT to terminal-overrides for tmux-in-tmux, from Romain
Francoise.
2011-10-31 13:56:16 +00:00
Tiago Cunha
b44f78fe9f
Sync OpenBSD patchset 973:
...
Missing -o on usage for pipe-pane, from Tiago Cunha.
2011-10-31 13:55:43 +00:00
Tiago Cunha
3f5ec24b5a
Sync OpenBSD patchset 972:
...
Didn't really think the else behaviour through - requiring argv to
contain "else" is silly so just omit that, also some manpage
tweaks. From Tiago Cunha.
2011-10-31 13:55:10 +00:00
Tiago Cunha
d8d9c2af98
Sync OpenBSD patchset 971:
...
When copying, make repeat count indicate buffer to replace if used.
2011-10-31 13:54:28 +00:00
Jason McIntyre
e5d6df8979
minor formatting fix;
2011-10-27 23:33:35 +00:00
Nicholas Marriott
cf317412d9
Use pkg-config for libevent.
2011-10-27 23:00:45 +00:00
Nicholas Marriott
b2ee98b8d7
Add screen*:XT to terminal-overrides for tmux-in-tmux, from Romain
...
Francoise.
2011-10-27 22:54:06 +00:00
Nicholas Marriott
5213d9674b
Add.
2011-10-27 22:43:02 +00:00
Nicholas Marriott
0ff42d975b
Missing -o on usage for pipe-pane, from Tiago Cunha.
2011-10-27 22:41:03 +00:00
Nicholas Marriott
5ed3daf28b
Didn't really think the else behaviour through - requiring argv to
...
contain "else" is silly so just omit that, also some manpage
tweaks. From Tiago Cunha.
2011-10-27 22:40:15 +00:00
Nicholas Marriott
f5a73c5433
When copying, make repeat count indicate buffer to replace if used.
2011-10-23 23:38:16 +00:00
Tiago Cunha
0e45ca1718
Recognise special keys and binds with multiple modifiers. From Bastien Dejean.
2011-10-23 15:42:15 +00:00
Tiago Cunha
c1eeac86fe
Sync OpenBSD patchset 970:
...
Alias NPage/PPage as PageDown/PgDn/PageUp/PgUp to reduce occasional
confusion.
2011-10-23 15:11:09 +00:00
Tiago Cunha
03ee7f7edf
Sync OpenBSD patchset 969:
...
Support for \e[3J to clear the history. Also send the corresponding
terminfo code (E3) before locking.
2011-10-23 15:10:22 +00:00
Tiago Cunha
a8ca1340ad
Sync OpenBSD patchset 968:
...
Try to resolve relative paths for loadb and saveb (first using client
working directory if any then default-path or session wd).
2011-10-23 15:08:58 +00:00
Tiago Cunha
7d169a3679
Sync OpenBSD patchset 967:
...
For initial session, use size of command client even if detached.
2011-10-23 15:05:20 +00:00
Tiago Cunha
98e500f598
Sync OpenBSD patchset 966:
...
Ignore LC_ALL and LC_CTYPE if they are empty as well as unset.
2011-10-23 15:04:30 +00:00
Tiago Cunha
1c1797e4f2
Sync OpenBSD patchset 965:
...
Add client formats, from Ben Boeckel.
2011-10-23 15:03:50 +00:00
Tiago Cunha
653d1e2fc8
Sync OpenBSD patchset 964:
...
Plug a memory leak and update some comments, from Tiago Cunha.
2011-10-23 15:02:20 +00:00
Tiago Cunha
9b48c77493
Sync OpenBSD patchset 963:
...
Add an else clause for if-shell, from "arno-" on SourceForge.
2011-10-23 15:00:41 +00:00
Nicholas Marriott
96146a8c6f
Done.
2011-10-23 10:21:02 +00:00
Nicholas Marriott
e3225bc4e3
Alias NPage/PPage as PageDown/PgDn/PageUp/PgUp to reduce occasional
...
confusion.
2011-10-23 10:19:26 +00:00
Nicholas Marriott
f0aad68aee
Support for \e[3J to clear the history. Also send the corresponding
...
terminfo code (E3) before locking.
2011-10-23 10:16:14 +00:00
Nicholas Marriott
7d53e2c946
Done!
2011-10-23 08:36:19 +00:00
Nicholas Marriott
7ff4cf9405
Try to resolve relative paths for loadb and saveb (first using client
...
working directory if any then default-path or session wd).
2011-10-23 08:34:01 +00:00
Nicholas Marriott
179d0686d7
For initial session, use size of command client even if detached.
2011-10-23 08:10:11 +00:00
Nicholas Marriott
b32254acda
Ignore LC_ALL and LC_CTYPE if they are empty as well as unset.
2011-10-23 08:03:27 +00:00
Nicholas Marriott
16d75a6bf2
Add client formats, from Ben Boeckel.
2011-10-23 01:12:46 +00:00
Nicholas Marriott
e63909655c
Plug a memory leak and update some comments, from Tiago Cunha.
2011-10-23 00:49:25 +00:00
Nicholas Marriott
213deb5c66
+.
2011-10-23 00:43:58 +00:00
Nicholas Marriott
69c1521895
+.
2011-10-23 00:31:35 +00:00
Nicholas Marriott
6821ccc882
Add an else clause for if-shell, from "arno-" on SourceForge.
2011-10-18 08:57:01 +00:00
Nicholas Marriott
17e6dc4405
Add manpage, also spaces->tabs.
2011-10-10 20:17:17 +00:00
Nicholas Marriott
a7341715c1
Fix some warnings with newer autoconf, from Matt Curtis.
2011-10-06 12:14:22 +00:00
Tiago Cunha
521bf41d12
Sync OpenBSD patchset 962:
...
Add a few more formats for panes (tty, pid, start cmd/cwd).
2011-10-02 11:34:04 +00:00
Tiago Cunha
f0c3e9babe
Sync OpenBSD patchset 961:
...
Add -S option to refresh-client to redraw status line, from Marco Beck.
2011-10-02 11:33:14 +00:00
Tiago Cunha
edd59d9e0f
Sync OpenBSD patchset 960:
...
Reject $SHELL if it is not a full path.
2011-10-02 11:32:24 +00:00
Tiago Cunha
326c5bf1b4
Sync OpenBSD patchset 959:
...
Tweaks to the format parts, from Tiago Cunha.
2011-10-02 11:31:34 +00:00
Tiago Cunha
550906cb09
Sync OpenBSD patchset 958:
...
Fix typo: ) -> }.
2011-10-02 11:30:26 +00:00
Nicholas Marriott
175d82c95b
Done.
2011-10-02 06:56:31 +00:00
Nicholas Marriott
49ef0b4af3
Add a few more formats for panes (tty, pid, start cmd/cwd).
2011-10-02 06:55:48 +00:00
Nicholas Marriott
3740f8f846
Add.
2011-10-02 06:44:16 +00:00
Nicholas Marriott
adfa5050d5
Add.
2011-10-02 06:33:32 +00:00
Nicholas Marriott
f62dcc1ea1
Separate dfly from fbsd as one or the other keeps becoming incompatible
...
;-). From Antonio Huete Jimenez
2011-09-29 08:43:01 +00:00
Nicholas Marriott
b1ed2d5bd9
Add -S option to refresh-client to redraw status line, from Marco Beck.
2011-09-28 20:11:21 +00:00
Nicholas Marriott
e6a59c4bee
Reject $SHELL if it is not a full path.
2011-09-25 18:53:04 +00:00
Nicholas Marriott
d6dc4c30f4
+.
2011-09-25 18:45:15 +00:00
Nicholas Marriott
f14da260c8
Tweaks to the format parts, from Tiago Cunha.
2011-09-23 18:33:43 +00:00
Nicholas Marriott
d635d79042
The HAVE_DIRFD check should be for dirfd() not /proc/$$/fd. Doh.
2011-09-23 12:35:08 +00:00
Nicholas Marriott
b8ce435a54
+.
2011-09-23 12:34:31 +00:00
Nicholas Marriott
b6bd9515ea
Fix typo: ) -> }.
2011-09-23 12:23:24 +00:00
Tiago Cunha
6e0c097d9f
Sync OpenBSD patchset 957:
...
Mark dead panes with some text saying they are dead, suggested by and
with help from Randy Stauner.
2011-09-21 16:35:13 +00:00
Tiago Cunha
d9807eeba1
Sync OpenBSD patchset 956:
...
Another memory leak from Tiago Cunha.
2011-09-21 16:34:34 +00:00
Tiago Cunha
cb752f9938
Sync OpenBSD patchset 955:
...
Plug memory leak, from Tiago Cunha.
2011-09-21 16:34:04 +00:00
Tiago Cunha
2e98603db9
Sync OpenBSD patchset 954:
...
tweak previous;
2011-09-21 16:33:19 +00:00
Tiago Cunha
39628e8280
Add format.c to the list of sources.
2011-09-21 16:32:31 +00:00
Tiago Cunha
40af1a854c
Sync OpenBSD patchset 953:
...
Add initial framework for more powerful formatting of command output and
use it for list-{panes,windows,sessions}. This allows more descriptive
replacements (such as #{session_name}) and conditionals.
Later this will be used for status_replace and list-keys and other
places.
2011-09-21 16:31:15 +00:00
Nicholas Marriott
fb5b958837
Add build instructions based on diff from Frank Terbeck.
2011-09-15 12:58:39 +00:00
Nicholas Marriott
99f78340af
Use %u for process group on Sun OS.
2011-09-11 23:54:32 +00:00
Nicholas Marriott
5985143813
Mark dead panes with some text saying they are dead, suggested by and
...
with help from Randy Stauner.
2011-09-05 23:40:51 +00:00
Nicholas Marriott
9800eaa63f
Another memory leak from Tiago Cunha.
2011-08-30 09:20:17 +00:00
Nicholas Marriott
423649b2c6
Plug memory leak, from Tiago Cunha.
2011-08-30 09:18:52 +00:00
Jason McIntyre
2888843a18
tweak previous;
2011-08-26 13:07:49 +00:00
Nicholas Marriott
4a5dff3f11
Add initial framework for more powerful formatting of command output and
...
use it for list-{panes,windows,sessions}. This allows more descriptive
replacements (such as #{session_name}) and conditionals.
Later this will be used for status_replace and list-keys and other
places.
2011-08-26 10:53:16 +00:00
Tiago Cunha
4a01da19df
Sync OpenBSD patchset 951:
...
Support \ for line continuation in the configuration file, from Julius
Plenz.
2011-08-25 21:14:23 +00:00
Tiago Cunha
d390a90bf0
Sync OpenBSD patchset 950:
...
Add pane-base-index option, from Ben Barbour.
2011-08-25 21:13:45 +00:00
Tiago Cunha
c41a93d130
Sync OpenBSD patchset 949:
...
Add a tty_bell wrapper function, from Dylan Alex Simon.
2011-08-25 21:12:52 +00:00
Tiago Cunha
0a4fd0f7a4
libm isn't needed anymore.
2011-08-25 21:12:10 +00:00
Tiago Cunha
a54e670301
Sync OpenBSD patchset 948:
...
There is no need to use sqrt()/INFINITY here which simplifies the code
and makes it more portable, from Havard Eidnes.
2011-08-25 21:11:16 +00:00
Nicholas Marriott
4697b35d4f
-lm is no longer needed, from Tiago Cunha.
2011-08-25 10:52:23 +00:00
Nicholas Marriott
0588168a64
Support \ for line continuation in the configuration file, from Julius
...
Plenz.
2011-08-24 10:46:01 +00:00
Nicholas Marriott
f01b7191a3
Add pane-base-index option, from Ben Barbour.
2011-08-24 10:29:57 +00:00
Nicholas Marriott
029c34ce6b
Add a tty_bell wrapper function, from Dylan Alex Simon.
2011-08-24 09:58:44 +00:00
Nicholas Marriott
47d41d0203
There is no need to use sqrt()/INFINITY here which simplifies the code
...
and makes it more portable, from Havard Eidnes.
2011-08-22 10:14:15 +00:00
Tiago Cunha
2651c0d69c
Sync OpenBSD patchset 947:
...
Fix a couple of memory leaks, from marcel partap.
2011-08-21 12:39:34 +00:00
Tiago Cunha
87a2a13f68
Sync OpenBSD patchset 946:
...
Add a -r flag to switch-client to toggle the client read-only flag. From
Johan Commelin.
2011-08-21 12:38:55 +00:00
Tiago Cunha
5775074f73
Sync OpenBSD patchset 945:
...
Add up/down/left/right keys in vi edit mode. From "livibetter" SF bug
3385651.
2011-08-21 12:37:26 +00:00
Tiago Cunha
abb4af7a14
Sync OpenBSD patchset 944:
...
Use key_bindings_remove for unbind-key -a to allow it to work from key
bindings. From "miaout17" SF bug 3392063.
2011-08-21 12:36:43 +00:00
Tiago Cunha
b9bbe1d81c
Sync OpenBSD patchset 943:
...
Correctly skip existing numbers when generating the name for a new
session.
2011-08-21 12:35:47 +00:00
Nicholas Marriott
3657aa675e
Fix a couple of memory leaks, from marcel partap.
2011-08-20 20:37:30 +00:00
Nicholas Marriott
88e9079870
Add a -r flag to switch-client to toggle the client read-only flag. From
...
Johan Commelin.
2011-08-16 10:00:52 +00:00
Nicholas Marriott
cd62411d78
+.
2011-08-16 09:58:49 +00:00
Nicholas Marriott
f95f792ddf
Add up/down/left/right keys in vi edit mode. From "livibetter" SF bug
...
3385651.
2011-08-16 09:47:18 +00:00
Nicholas Marriott
2fc84c7c34
Use key_bindings_remove for unbind-key -a to allow it to work from key
...
bindings. From "miaout17" SF bug 3392063.
2011-08-16 09:37:48 +00:00
Nicholas Marriott
6b734d1074
Correctly skip existing numbers when generating the name for a new
...
session.
2011-08-16 09:36:23 +00:00
Nicholas Marriott
e39c5a9e14
+.
2011-08-15 09:01:23 +00:00
Nicholas Marriott
b2fe881307
+.
2011-08-14 15:36:15 +00:00
Tiago Cunha
b6659dc563
Sync OpenBSD patchset 942:
...
fix error in previous;
2011-08-04 17:06:10 +00:00
Tiago Cunha
3ce1b91b1b
Sync OpenBSD patchset 941:
...
Extend the mode-mouse option to add a third choice which means the mouse
does not enter copy mode. Patch from SF bug 3374493.
In future the mode-mouse option is likely to die and be broken into
several smaller options.
2011-08-04 17:05:35 +00:00
Tiago Cunha
2589d117b0
Sync OpenBSD patchset 940:
...
Do not require a client here, or pipe-pane will not work from the
command line.
2011-08-04 17:04:08 +00:00
Tiago Cunha
8aec4c93eb
$Id$ not $OpenBSD$.
2011-08-04 17:03:29 +00:00
Tiago Cunha
9960a06a67
Sync OpenBSD patchset 939:
...
Sort options alphabetically, from Tiago Cunha.
2011-08-04 17:01:55 +00:00
Jason McIntyre
cf90f2a29c
fix error in previous;
2011-07-30 18:27:57 +00:00
Nicholas Marriott
cc5bcbfb59
Extend the mode-mouse option to add a third choice which means the mouse
...
does not enter copy mode. Patch from SF bug 3374493.
In future the mode-mouse option is likely to die and be broken into
several smaller options.
2011-07-30 18:01:26 +00:00
Nicholas Marriott
be179f6d7e
Do not require a client here, or pipe-pane will not work from the
...
command line.
2011-07-30 17:52:32 +00:00
Nicholas Marriott
0ecb11fe4f
Add.
2011-07-30 17:47:21 +00:00
Nicholas Marriott
7d604ab717
Add.
2011-07-30 17:44:24 +00:00
Nicholas Marriott
ee5e97926d
Fix --enable-static and add a different check for b64_ntop that might work on
...
OS X.
2011-07-27 09:31:08 +00:00
Nicholas Marriott
0252796a57
Sort options alphabetically, from Tiago Cunha.
2011-07-25 09:57:28 +00:00
Nicholas Marriott
e9ebdac3dd
Can't use the same va_list twice, from Emanuele Giaquinta.
2011-07-25 09:56:43 +00:00
Nicholas Marriott
5339b8ce3a
Typo.
2011-07-22 15:10:24 +00:00
Nicholas Marriott
20134fa9f4
Compatibility for b64_ntop, missing from some alternative libc.
2011-07-22 10:49:33 +00:00
Nicholas Marriott
1f01dd8c0a
+.
2011-07-19 01:47:26 +00:00
Nicholas Marriott
25eb48aea3
Only get -lrt when needed, from Pietro Cerutti.
2011-07-19 01:35:33 +00:00
Nicholas Marriott
e5cee89727
Typo, from Si Feng.
2011-07-19 01:31:00 +00:00
Tiago Cunha
d86c6b2fff
Bump version and create a debug build by default.
2011-07-09 16:24:44 +00:00
Tiago Cunha
5175db270d
Changes for 1.5.
2011-07-09 16:01:55 +00:00
Tiago Cunha
8d63a99390
Releases don't have debugging enabled.
2011-07-09 16:00:16 +00:00
Tiago Cunha
f16b6aeabb
Use an empty CFLAGS by default to prevent autoconf from setting it when
...
debugging isn't enabled.
2011-07-09 15:57:56 +00:00
Tiago Cunha
df69ee07e2
Delete subversion directories before the actual tarball is created.
2011-07-09 13:45:24 +00:00
Tiago Cunha
31def00f59
Done.
2011-07-09 09:47:12 +00:00
Tiago Cunha
27bd09f075
HP-UX should work now.
2011-07-09 09:46:15 +00:00
Tiago Cunha
391f1f08c0
Expand the Id keyword.
2011-07-09 09:42:33 +00:00
Tiago Cunha
8357a55d76
Add missing $Id$.
2011-07-09 09:34:04 +00:00
Tiago Cunha
5f38f8cd64
Sync OpenBSD patchset 938:
...
Unused variable.
2011-07-09 09:05:05 +00:00
Nicholas Marriott
5ae4b4acc0
Pass the right size to calloc (* not **).
2011-07-09 01:38:01 +00:00
Nicholas Marriott
7e423ea491
Unused variable.
2011-07-09 01:37:00 +00:00
Nicholas Marriott
9dacc1700b
Pass the right size to calloc (* not **).
2011-07-09 01:36:42 +00:00
Tiago Cunha
67e70770c8
Sync OpenBSD patchset 936:
...
Do not continue to send data to suspended/locked clients or there will
be a huge rush of it after they are resumed/unlocked. The main output
path was fine but status line updates and the terminal state reset code
were missed.
2011-07-08 22:58:30 +00:00
Nicholas Marriott
d5269a2eed
Do not continue to send data to suspended/locked clients or there will
...
be a huge rush of it after they are resumed/unlocked. The main output
path was fine but status line updates and the terminal state reset code
were missed.
2011-07-08 21:51:40 +00:00
Tiago Cunha
bcacbb1a89
Sync OpenBSD patchset 935:
...
flags[] should be initialized. From Thomas Adam.
2011-07-08 16:44:06 +00:00
Nicholas Marriott
a8e9654b65
flags[] should be initialized. From Thomas Adam.
2011-07-08 15:18:20 +00:00
Tiago Cunha
bba822105b
Sync OpenBSD patchset 934:
...
Make confirm-before prompt customizable with -p option like
command-prompt. Also move responsibility for calling status_replace into
status_prompt_{set,update} and add #W and #P to the default kill-window
and kill-pane prompts. By Tiago Cunha.
2011-07-08 08:42:03 +00:00
Tiago Cunha
dc2c174496
Sync OpenBSD patchset 933:
...
Fix a couple of comments.
2011-07-08 08:40:35 +00:00
Nicholas Marriott
2de9b1e005
Make confirm-before prompt customizable with -p option like
...
command-prompt. Also move responsibility for calling status_replace into
status_prompt_{set,update} and add #W and #P to the default kill-window
and kill-pane prompts. By Tiago Cunha.
2011-07-08 06:37:57 +00:00
Nicholas Marriott
b4b3d9c936
Fix a couple of comments.
2011-07-08 06:28:05 +00:00
Tiago Cunha
6c4166ce20
Sync OpenBSD patchset 932:
...
Show full targets for lsp/lsw -a.
2011-07-05 10:43:59 +00:00
Tiago Cunha
5dad3166f9
Sync OpenBSD patchset 931:
...
Use screen_reinit for respawn-pane to keep history and call input_init
for respawn-window to break out of waiting for DCS/OSC to finish.
2011-07-05 10:42:09 +00:00
Nicholas Marriott
e80e7b38bb
Done too.
2011-07-04 14:04:55 +00:00
Nicholas Marriott
26aa0689a5
Show full targets for lsp/lsw -a.
2011-07-04 14:04:40 +00:00
Nicholas Marriott
6457052a93
Done too.
2011-07-04 13:54:43 +00:00
Nicholas Marriott
d91bf78e8a
These are done.
2011-07-04 13:36:12 +00:00
Nicholas Marriott
a70379d8f9
Use screen_reinit for respawn-pane to keep history and call input_init
...
for respawn-window to break out of waiting for DCS/OSC to finish.
2011-07-04 13:35:37 +00:00
Tiago Cunha
bc8d09ef84
Sync OpenBSD patchset 930:
...
Change the list-keys format so that it shows the keys using actual tmux
commands which should be able to be directly copied into the config
file. From Markus Schnalke, tweaked by me.
2011-07-04 08:26:41 +00:00
Tiago Cunha
8144e5cb7e
Sync OpenBSD patchset 929:
...
Add an option to trigger the terminal bell when there is an alert, from
Marco Beck.
2011-07-04 08:23:39 +00:00
Tiago Cunha
fce026eb32
Sync OpenBSD patchset 928:
...
Include the existing window and session name in the prompt when renaming
and add a new key binding ($) for rename session. From Tiago Cunha.
2011-07-04 08:22:37 +00:00
Nicholas Marriott
5e90476b25
Change the list-keys format so that it shows the keys using actual tmux
...
commands which should be able to be directly copied into the config
file. From Markus Schnalke, tweaked by me.
2011-07-04 00:31:57 +00:00
Tiago Cunha
e097f0b4ee
Sync OpenBSD patchset 927:
...
Allow the initial context on prompts to be set with the new -I option to
command-prompt. From Tiago Cunha.
2011-07-03 21:52:50 +00:00
Tiago Cunha
ff7343c203
Sync OpenBSD patchset 926:
...
PANE_FREEZE doesn't do anything anymore, so remove it.
2011-07-03 21:51:17 +00:00
Tiago Cunha
3d47b5cd07
Sync OpenBSD patchset 925:
...
Add a couple of extra xterm-style keys that gnome terminal provides,
from Dustin Kirkland.
2011-07-03 21:50:27 +00:00
Nicholas Marriott
f12158bc25
Add an option to trigger the terminal bell when there is an alert, from
...
Marco Beck.
2011-07-03 19:07:54 +00:00
Nicholas Marriott
94f86edfee
Include the existing window and session name in the prompt when renaming
...
and add a new key binding ($) for rename session. From Tiago Cunha.
2011-07-03 18:18:15 +00:00
Nicholas Marriott
ad60a2c952
Allow the initial context on prompts to be set with the new -I option to
...
command-prompt. From Tiago Cunha.
2011-07-02 21:05:44 +00:00
Nicholas Marriott
6ce5ed60a6
+.
2011-06-27 23:04:44 +00:00
Nicholas Marriott
1202284f37
PANE_FREEZE doesn't do anything anymore, so remove it.
2011-06-27 00:04:49 +00:00
Nicholas Marriott
c80f75f4f4
tparm requires 10 arguments on Solaris.
2011-06-26 23:59:23 +00:00
Nicholas Marriott
4564624f2c
+.
2011-06-26 23:18:05 +00:00
Nicholas Marriott
84aa9c34f8
trunk/tmux not tmux/tmux
2011-06-24 13:13:21 +00:00
Nicholas Marriott
db7d3a3966
Tweaks, one thing I have an uncommitted fix for.
2011-06-23 23:27:07 +00:00
Nicholas Marriott
f513898e92
PatchSet 924
...
Date: 2011/06/05 12:19:03
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Add a respawn-pane command, from Marcel Partap.
2011-06-23 19:23:12 +00:00
Nicholas Marriott
7407459ed1
Removed file.
2011-06-23 19:22:01 +00:00
Nicholas Marriott
fa0f10d77a
PatchSet 923
...
Date: 2011/06/05 11:53:05
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Get rid of the layout string code which tries to walk through the layout
hierarchy and instead just look at what panes are actually in the window.
2011-06-23 19:21:26 +00:00
Nicholas Marriott
ddade84e0a
PatchSet 922
...
Date: 2011/05/30 22:02:28
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Fix a typo, spotted by Michal Mazurek..
2011-06-23 19:19:08 +00:00
Nicholas Marriott
0503f83c64
Add a couple of extra xterm-style keys that gnome terminal provides,
...
from Dustin Kirkland.
2011-06-23 10:02:49 +00:00
Nicholas Marriott
65177b82be
Add a respawn-pane command, from Marcel Partap.
2011-06-05 11:19:03 +00:00
Nicholas Marriott
1cf916ca73
Add.
2011-06-05 11:03:10 +00:00
Nicholas Marriott
2b60c648c4
Get rid of the layout string code which tries to walk through the layout
...
hierarchy and instead just look at what panes are actually in the window.
2011-06-05 10:53:05 +00:00
Nicholas Marriott
12544ccd41
Add.
2011-06-05 10:29:33 +00:00
Nicholas Marriott
dac6e55e0a
Add.
2011-06-05 10:21:32 +00:00
Nicholas Marriott
f537870909
Fix a typo, spotted by Michal Mazurek..
2011-05-30 21:02:28 +00:00
Tiago Cunha
213544a30a
$Id$ not $OpenBSD$.
2011-05-29 15:13:36 +00:00
Tiago Cunha
159faa4ed7
Sync OpenBSD patchset 921:
...
Trim another useless if statement, from Ailin Nemui.
2011-05-26 20:18:06 +00:00
Tiago Cunha
f9cb06cf2c
Sync OpenBSD patchset 920:
...
Memory leak in error path, from Tiago Cunha.
2011-05-26 20:16:17 +00:00
Tiago Cunha
28427efbac
Sync OpenBSD patchset 819:
...
Nuke a redundant if statement, from Tiago Cunha.
2011-05-26 20:12:07 +00:00
Nicholas Marriott
e14bf9bb8f
One of these gives us b64_ntop.
2011-05-26 10:35:07 +00:00
Nicholas Marriott
34e5ec1807
Trim another useless if statement, from Ailin Nemui.
2011-05-26 07:08:48 +00:00
Nicholas Marriott
d0f362a503
Add.
2011-05-26 07:00:48 +00:00
Nicholas Marriott
480e48aa66
Memory leak in error path, from Tiago Cunha.
2011-05-25 17:51:31 +00:00
Nicholas Marriott
70d232289b
Nuke a redundant if statement, from Tiago Cunha.
2011-05-25 17:50:52 +00:00
Nicholas Marriott
ea6844b5b7
Bye bye stray tmux directory.
2011-05-23 17:58:45 +00:00
Nicholas Marriott
def72b2985
...
2011-05-22 20:58:40 +00:00
Nicholas Marriott
a0b271a8a0
...
2011-05-22 20:58:29 +00:00
Nicholas Marriott
7a529cc32a
...
2011-05-22 20:56:56 +00:00
Nicholas Marriott
f89d0c3c2c
...
2011-05-22 20:55:40 +00:00
Nicholas Marriott
4bf85ecbb0
...
2011-05-22 20:53:55 +00:00
Nicholas Marriott
cae34a8ce7
.
2011-05-22 20:48:57 +00:00
Nicholas Marriott
07377d5a97
Update links.
2011-05-22 20:30:21 +00:00
Tiago Cunha
b5b630229a
Sync OpenBSD patchset 918:
...
tweak the TERMINFO section; ok nicm
2011-05-22 16:26:58 +00:00
Tiago Cunha
d256660a78
Sync OpenBSD patchset 917:
...
Pass prompts through status_replace so that they can be more helpful
(such as showing the previous session name when renaming). From Tiago
Cunha.
2011-05-22 16:26:38 +00:00
Tiago Cunha
b2f301f4e2
Sync OpenBSD patchset 916:
...
Support DECSCUSR sequence to set the cursor style with two new
terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
2011-05-22 16:26:09 +00:00
Tiago Cunha
719755574d
Sync OpenBSD patchset 915:
...
Support xterm(1) cursor colour change sequences through terminfo(5) Cc
(set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked
by me and Ailin Nemui.
2011-05-22 16:25:02 +00:00
Tiago Cunha
89f35125b4
Sync OpenBSD patchset 914:
...
Support setting the xterm clipboard when copying from copy mode using
the xterm escape sequence for the purpose (if xterm is configured to
allow it).
Written by and much discussed Ailin Nemui, guidance on
xterm/termcap/terminfo from Thomas Dickey.
2011-05-22 16:23:07 +00:00
Nicholas Marriott
e7f3be9187
Someone mentioned this at LinuxTag as well.
2011-05-21 11:22:47 +00:00
Jason McIntyre
240cae4c92
tweak the TERMINFO section; ok nicm
2011-05-21 10:04:17 +00:00
Nicholas Marriott
1af2021de6
Pass prompts through status_replace so that they can be more helpful
...
(such as showing the previous session name when renaming). From Tiago
Cunha.
2011-05-20 19:29:13 +00:00
Nicholas Marriott
3ea5e06bfb
Support DECSCUSR sequence to set the cursor style with two new
...
terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
2011-05-20 19:17:39 +00:00
Nicholas Marriott
944b5e6fa0
Support xterm(1) cursor colour change sequences through terminfo(5) Cc
...
(set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked
by me and Ailin Nemui.
2011-05-20 19:03:58 +00:00
Nicholas Marriott
0cad8a5808
Add.
2011-05-18 20:39:24 +00:00
Tiago Cunha
69e0aabcdf
Sync OpenBSD patchset 913:
...
Add three new copy-mode commands - select-line, copy-line,
copy-end-of-line. From Dave Disser and Randy Stauner a while back.
2011-05-18 20:35:36 +00:00
Tiago Cunha
3cb428bc7e
Sync OpenBSD patchset 912:
...
Use xfree not free, from Tiago Cunha.
2011-05-18 20:33:55 +00:00
Tiago Cunha
e0fcd3b247
Sync OpenBSD patchset 911:
...
Use button mouse mode not any for copy mode, fixes issues with
putty. From Ailin Nemui.
2011-05-18 20:33:24 +00:00
Tiago Cunha
21140d426d
Sync OpenBSD patchset 910:
...
Reset last pane properly when using break-pane as well, fixes a problem
reported to Debian by Hannes von Haugwitz (bug 622677).
2011-05-18 20:32:47 +00:00
Tiago Cunha
13d5ac6f9e
Sync OpenBSD patchset 909:
...
Reset last pane on swap-pane across windows, fixes crash noticed by hsim
at gmx.li.
2011-05-18 20:32:04 +00:00
Tiago Cunha
1e7cea407d
Sync OpenBSD patchset 908:
...
Only select pane on click, not drag. From hsim at gmx.li.
2011-05-18 20:31:32 +00:00
Tiago Cunha
bb38112ec8
Sync OpenBSD patchset 907:
...
Fix a couple of memory leaks, from Tiago Cunha.
2011-05-18 20:31:00 +00:00
Tiago Cunha
1d2b487c84
Sync OpenBSD patchset 906:
...
Fix a memory leak if cmd_pane_session succeeds, from Tiago Cunha.
2011-05-18 20:30:36 +00:00
Tiago Cunha
4efd45628d
Sync OpenBSD patchset 905:
...
Add a new option, mouse-resize-pane. When on, panes may be resized by
dragging their borders. From hsim at gmx.li.
2011-05-18 20:30:14 +00:00
Tiago Cunha
4fcbf4b872
Sync OpenBSD patchset 904:
...
Use the tsl and fsl terminfo(5) capabilities to update terminal title
and automatically fill them in on terminals with the XT capability
(which means their title setting is xterm-compatible). From hsim at
gmx.li.
2011-05-18 20:28:43 +00:00
Nicholas Marriott
96e7f33da3
Support setting the xterm clipboard when copying from copy mode using
...
the xterm escape sequence for the purpose (if xterm is configured to
allow it).
Written by and much discussed Ailin Nemui, guidance on
xterm/termcap/terminfo from Thomas Dickey.
2011-05-18 20:24:29 +00:00
Nicholas Marriott
046e8363b4
+.
2011-05-18 19:52:33 +00:00
Nicholas Marriott
58908fd8c5
Add three new copy-mode commands - select-line, copy-line,
...
copy-end-of-line. From Dave Disser and Randy Stauner a while back.
2011-05-18 18:06:36 +00:00
Nicholas Marriott
992dbdedd8
+.
2011-05-18 17:57:59 +00:00
Nicholas Marriott
d344816d91
Update from Tiago Resende.
2011-05-18 17:47:33 +00:00
Nicholas Marriott
f702dbfea2
Use xfree not free, from Tiago Cunha.
2011-05-18 08:07:44 +00:00
Nicholas Marriott
fb527c1bad
Use button mouse mode not any for copy mode, fixes issues with
...
putty. From Ailin Nemui.
2011-05-18 08:04:47 +00:00
Nicholas Marriott
75e7c7eed5
Add some stuff mentioned to me at LinuxTag.
2011-05-17 18:20:04 +00:00
Nicholas Marriott
4b6babcfa2
+.
2011-05-10 22:05:04 +00:00
Nicholas Marriott
ec3efab01e
Reset last pane properly when using break-pane as well, fixes a problem
...
reported to Debian by Hannes von Haugwitz (bug 622677).
2011-05-08 21:30:00 +00:00
Nicholas Marriott
583c885d68
Reset last pane on swap-pane across windows, fixes crash noticed by hsim
...
at gmx.li.
2011-05-08 21:12:52 +00:00
Nicholas Marriott
acfabf3a50
Only select pane on click, not drag. From hsim at gmx.li.
2011-05-08 20:45:35 +00:00
Nicholas Marriott
538af37c35
Fix a couple of memory leaks, from Tiago Cunha.
2011-05-08 20:37:04 +00:00
Nicholas Marriott
6f08472049
Fix a memory leak if cmd_pane_session succeeds, from Tiago Cunha.
2011-05-08 20:35:58 +00:00
Nicholas Marriott
f3741f0653
Add a new option, mouse-resize-pane. When on, panes may be resized by
...
dragging their borders. From hsim at gmx.li.
2011-05-08 20:34:12 +00:00
Nicholas Marriott
295ace6820
Use the tsl and fsl terminfo(5) capabilities to update terminal title
...
and automatically fill them in on terminals with the XT capability
(which means their title setting is xterm-compatible). From hsim at
gmx.li.
2011-05-08 19:53:06 +00:00
Tiago Cunha
268a2efb16
Sync OpenBSD patchset 903:
...
Change window with mouse wheel over status line if mouse-select-window
is on, from marcel partap.
2011-05-05 10:12:33 +00:00
Tiago Cunha
b5812013ef
Sync OpenBSD patchset 901:
...
Don't use strnvis for the title as it breaks UTF-8. set-titles is now
off by default and we have to trust the terminal can understand what we
send it anyway so there isn't any harm.
2011-05-05 10:10:57 +00:00
Tiago Cunha
a734b41fda
Sync OpenBSD patchset 900:
...
Check if mouse-select-pane is ON not off when setting mouse flags,
reported by oga.
2011-05-05 10:03:05 +00:00
Tiago Cunha
4846af8f95
Sync OpenBSD patchset 899:
...
Only redraw the status line on command update, not the entire client
(big DOH).
2011-05-05 10:02:36 +00:00
Nicholas Marriott
b0a88ebead
Change window with mouse wheel over status line if mouse-select-window
...
is on, from marcel partap.
2011-05-04 18:10:28 +00:00
Nicholas Marriott
a70df70d20
Don't need vis.h anymore.
2011-05-04 17:43:35 +00:00
Nicholas Marriott
b1dfc740a3
Don't use strnvis for the title as it breaks UTF-8. set-titles is now
...
off by default and we have to trust the terminal can understand what we
send it anyway so there isn't any harm.
2011-05-04 17:43:11 +00:00
Nicholas Marriott
7dddf56c08
Check if mouse-select-pane is ON not off when setting mouse flags,
...
reported by oga.
2011-05-04 17:40:32 +00:00
Nicholas Marriott
075816eb72
Only redraw the status line on command update, not the entire client
...
(big DOH).
2011-04-29 07:07:31 +00:00
Tiago Cunha
341f67e827
Sync OpenBSD patchset 898:
...
Provide #h for short hostname (no domain) from Michal Mazurek.
2011-04-25 20:35:22 +00:00
Tiago Cunha
38611d3207
Sync OpenBSD patchset 897:
...
Tweak copy behaviour slightly in vi mode to be closer to real vi. From
Tiago Resende.
2011-04-25 20:34:26 +00:00
Tiago Cunha
215ee46106
Sync OpenBSD patchset 896:
...
When mode-mouse is on (it is off by default), automatically enter copy
mode when the mouse is dragged or the mouse wheel is used. Also exit
copy mode when the mouse wheel is scrolled off the bottom. Discussed
with and written by hsim at gmx dot li.
2011-04-25 20:33:42 +00:00
Tiago Cunha
d5150484d1
Sync OpenBSD patchset 895:
...
POSIX only guarantees uname() will return a non-negative value on
success.
ok nicm@
2011-04-25 20:32:03 +00:00
Nicholas Marriott
eb288aae32
Provide #h for short hostname (no domain) from Michal Mazurek.
2011-04-24 21:32:07 +00:00
Nicholas Marriott
dc8fb9fb23
Tweak copy behaviour slightly in vi mode to be closer to real vi. From
...
Tiago Resende.
2011-04-24 21:06:12 +00:00
Nicholas Marriott
8738141913
When mode-mouse is on (it is off by default), automatically enter copy
...
mode when the mouse is dragged or the mouse wheel is used. Also exit
copy mode when the mouse wheel is scrolled off the bottom. Discussed
with and written by hsim at gmx dot li.
2011-04-19 21:31:33 +00:00
Nicholas Marriott
656a668473
Add.
2011-04-19 20:21:42 +00:00
Matthew Dempsky
3970853feb
POSIX only guarantees uname() will return a non-negative value on
...
success.
ok nicm@
2011-04-19 20:12:47 +00:00
Nicholas Marriott
7aafee7e48
|PatchSet 894
...
|Date: 2011/04/18 21:57:16
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|The mouse should only work in copy mode if mode-mouse is set, not just
|mouse-select-pane.
2011-04-18 22:03:55 +00:00
Nicholas Marriott
dc6bd98425
|PatchSet 893
...
|Date: 2011/04/18 20:49:05
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Add an option (mouse-select-window) which allows the mouse to be used by
|clicking on the status line, written by hsim at gmx dot li.
2011-04-18 21:07:58 +00:00
Nicholas Marriott
34a331aa99
|PatchSet 891
...
|Date: 2011/04/17 20:28:09
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Add -t to list-clients, based on a diff from Zac Sprackett.
2011-04-18 21:07:12 +00:00
Nicholas Marriott
6351940744
|PatchSet 890
...
|Date: 2011/04/17 20:21:19
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Fix character position check, from Tiago Resende.
2011-04-18 21:06:49 +00:00
Nicholas Marriott
65fc8ef43a
|PatchSet 889
...
|Date: 2011/04/11 17:44:36
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|-s comes before -t and also add -s to command syntax. Prompted by jmc.
2011-04-18 21:06:25 +00:00
Nicholas Marriott
d5ab166307
Sync man page.
2011-04-18 21:05:24 +00:00
Nicholas Marriott
a6456f4db3
PatchSet 887
...
Date: 2011/04/10 04:20:59
Author: guenther
Branch: HEAD
Tag: (none)
Log:
Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now
that we've got name we want for the API we want
2011-04-18 21:03:42 +00:00
Nicholas Marriott
dd34cc012a
|PatchSet 886
...
|Date: 2011/04/09 21:00:29
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Since buffers are now global, bump the default buffer-limit a bit higher
|to 20 rather than 9.
2011-04-18 21:01:44 +00:00
Nicholas Marriott
0f97ac4221
The mouse should only work in copy mode if mode-mouse is set, not just
...
mouse-select-pane.
2011-04-18 20:57:16 +00:00
Nicholas Marriott
0bb2119781
Add an option (mouse-select-window) which allows the mouse to be used by
...
clicking on the status line, written by hsim at gmx dot li.
2011-04-18 19:49:05 +00:00
Jason McIntyre
4e75e82cc3
new sentence, new line;
2011-04-17 20:39:44 +00:00
Nicholas Marriott
2c0846569d
Window content backup script from Victor J Orlikowski.
2011-04-17 19:36:35 +00:00
Nicholas Marriott
f4432030ee
Add -t to list-clients, based on a diff from Zac Sprackett.
2011-04-17 19:28:09 +00:00
Nicholas Marriott
044c0f978f
Fix character position check, from Tiago Resende.
2011-04-17 19:21:19 +00:00
Nicholas Marriott
afbbdff581
Add tmuxinator.
2011-04-15 22:10:20 +00:00
Nicholas Marriott
cb60ea1bdb
Add some third party stuff.
2011-04-15 21:56:38 +00:00
Nicholas Marriott
3aee28c58b
+.
2011-04-15 19:01:51 +00:00
Nicholas Marriott
088232e0e0
Add.
2011-04-12 16:58:49 +00:00
Nicholas Marriott
5e5acbeccd
a independent -> an independent.
2011-04-11 22:59:57 +00:00
Nicholas Marriott
3dc7b805d3
-s comes before -t and also add -s to command syntax. Prompted by jmc.
2011-04-11 16:44:36 +00:00
Nicholas Marriott
f0843d2173
Entry on italics from Tiago Resende.
2011-04-11 07:14:54 +00:00
Nicholas Marriott
457147d59d
Add -s option to detach all clients attached to a session, from Zac
...
Sprackett.
2011-04-11 06:44:56 +00:00
Nicholas Marriott
735f87bc66
Add -s option to detach all clients attached to a session, from Zac
...
Sprackett.
2011-04-11 06:44:39 +00:00
Philip Guenther
98d450ac3a
Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now
...
that we've got name we want for the API we want
"ZAP!" deraadt@
2011-04-10 03:20:59 +00:00
Nicholas Marriott
48a1169f4e
Since buffers are now global, bump the default buffer-limit a bit higher
...
to 20 rather than 9.
2011-04-09 20:00:29 +00:00
Nicholas Marriott
75f218dc73
If the terminal supports sitm for italics, use it instead of standout
...
(smso). From Tiago Resende.
2011-04-09 07:48:58 +00:00
Nicholas Marriott
0a09d04e1b
If the terminal supports sitm for italics, use it instead of standout
...
(smso). From Tiago Resende.
2011-04-09 07:48:08 +00:00
Nicholas Marriott
1d00f88757
Manual date.
2011-04-06 22:31:23 +00:00
Nicholas Marriott
e5f4bf3f3e
|PatchSet 884
...
|Date: 2011/04/06 22:51:31
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Change so that an empty session name always means the current sessions
|even if given with, for example, -t '', and explicitly forbid empty
|session names and those containing a : when they are created.
2011-04-06 22:29:26 +00:00
Nicholas Marriott
13c54a04a0
|PatchSet 883
...
|Date: 2011/04/06 12:36:26
|Author: miod
|Branch: HEAD
|Tag: (none)
|Log:
|Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
|for chars.
2011-04-06 22:24:20 +00:00
Nicholas Marriott
4e452a2e11
|PatchSet 882
...
|Date: 2011/04/05 20:37:01
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Add a flag to cmd_find_session so that attach-session can prefer
|unattached sessions when choosing the most recently used (if -t is not
|given). Suggested by claudio@.
2011-04-06 22:24:01 +00:00
Nicholas Marriott
ae5954d30a
|PatchSet 881
...
|Date: 2011/04/05 19:55:38
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Bind C-u to delete-line in vi mode like ksh does, suggested by thib.
2011-04-06 22:23:30 +00:00
Nicholas Marriott
01f5f041d3
|PatchSet 880
...
|Date: 2011/04/01 17:59:11
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|"or" should be on a line on its own here so it is not emphasised as
|well.
2011-04-06 22:23:14 +00:00
Nicholas Marriott
d9cb059e34
|PatchSet 879
...
|Date: 2011/03/29 22:09:13
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|For convenience, work out what type of option is being set by name
|regardless of the -s or -w flags (these remain documented however).
2011-04-06 22:22:49 +00:00
Nicholas Marriott
ec3be580ec
|PatchSet 878
...
|Date: 2011/03/29 22:07:08
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Checking for particular options and redrawing is not necessary as we
|already redraw unconditionally.
2011-04-06 22:22:25 +00:00
Nicholas Marriott
02462e5e57
|PatchSet 877
...
|Date: 2011/03/29 21:31:22
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Update an out-of-date and inaccurate comment.
2011-04-06 22:21:24 +00:00
Nicholas Marriott
ffce6b34b2
|PatchSet 876
...
|Date: 2011/03/29 20:30:16
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Change -t on display-message to be target-pane for the #[A-Z]
|replacements and add -c as target-client.
2011-04-06 22:21:02 +00:00
Nicholas Marriott
108fb38cbc
|PatchSet 875
...
|Date: 2011/03/29 00:13:00
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Add -a and -s options to lsp to list all panes in the server or session
|respectively. Likewise add -s to lsw. From Ben Boeckel.
2011-04-06 22:20:16 +00:00
Nicholas Marriott
0a2b3492c3
|PatchSet 874
...
|Date: 2011/03/28 21:17:39
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Allow a start and end line to be specified for capture-pane which may be
|negative to capture part of the history. Prompted by request from Victor
|J Orlikowski.
2011-04-06 22:19:42 +00:00
Nicholas Marriott
8ab7fcf7eb
|PatchSet 873
...
|Date: 2011/03/28 20:44:31
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Style: uint -> u_int and a missing else.
2011-04-06 22:18:56 +00:00
Nicholas Marriott
129f0dc893
|PatchSet 872
...
|Date: 2011/03/27 21:36:19
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Set the terminal blocking again earlier, before sending the reset
|sequences.
2011-04-06 22:18:05 +00:00
Nicholas Marriott
2b508f7f6b
|PatchSet 871
...
|Date: 2011/03/27 21:31:25
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Don't include meta twice when working out the flags to output for
|xterm-style keys - bit 3 is accepted on input but not on output. Also a
|style nit in the header.
2011-04-06 22:17:33 +00:00
Nicholas Marriott
536fc24653
PatchSet 870
...
Date: 2011/03/27 21:27:26
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Give each pane created in a tmux server a unique id (starting from 0),
put it in the TMUX_PANE environment variable and accept it as a
target. Suggested by and with testing and tweaks from Ben Boeckel.
2011-04-06 22:16:33 +00:00
Nicholas Marriott
ec89eb9552
Change so that an empty session name always means the current sessions
...
even if given with, for example, -t '', and explicitly forbid empty
session names and those containing a : when they are created.
2011-04-06 21:51:31 +00:00
Nicholas Marriott
95832241aa
Add a couple of items.
2011-04-06 20:52:04 +00:00
Miod Vallat
c8a14def9f
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
...
for chars.
2011-04-06 11:36:26 +00:00
Nicholas Marriott
5d519ba526
Add a flag to cmd_find_session so that attach-session can prefer
...
unattached sessions when choosing the most recently used (if -t is not
given). Suggested by claudio@.
2011-04-05 19:37:01 +00:00
Nicholas Marriott
f16ea60cc0
Bind C-u to delete-line in vi mode like ksh does, suggested by thib.
2011-04-05 18:55:38 +00:00
Nicholas Marriott
f8a218882a
"or" should be on a line on its own here so it is not emphasised as
...
well.
2011-04-01 16:59:11 +00:00
Nicholas Marriott
f7e9aedf10
For convenience, work out what type of option is being set by name
...
regardless of the -s or -w flags (these remain documented however).
2011-03-29 21:09:13 +00:00
Nicholas Marriott
beb6db9b5f
Checking for particular options and redrawing is not necessary as we
...
already redraw unconditionally.
2011-03-29 21:07:08 +00:00
Nicholas Marriott
25d551e8b2
Update an out-of-date and inaccurate comment.
2011-03-29 20:31:22 +00:00
Nicholas Marriott
d88c20e718
Change -t on display-message to be target-pane for the #[A-Z]
...
replacements and add -c as target-client.
2011-03-29 19:30:16 +00:00
Nicholas Marriott
f19a4bf9d1
Add -a and -s options to lsp to list all panes in the server or session
...
respectively. Likewise add -s to lsw. From Ben Boeckel.
2011-03-28 23:13:00 +00:00
Nicholas Marriott
82e0165c49
Allow a start and end line to be specified for capture-pane which may be
...
negative to capture part of the history. Prompted by request from Victor
J Orlikowski.
2011-03-28 20:17:39 +00:00
Nicholas Marriott
8091dcdd97
Add.
2011-03-28 20:14:30 +00:00
Nicholas Marriott
fa6abac98d
Style: uint -> u_int and a missing else.
2011-03-28 19:44:31 +00:00
Nicholas Marriott
f8dbfb0aa7
Add.
2011-03-28 18:59:37 +00:00
Nicholas Marriott
b9216d9566
Done.
2011-03-27 21:02:27 +00:00
Nicholas Marriott
71e8e26ccc
Set the terminal blocking again earlier, before sending the reset
...
sequences.
2011-03-27 20:36:19 +00:00
Nicholas Marriott
7ce8fee4f3
Don't include meta twice when working out the flags to output for
...
xterm-style keys - bit 3 is accepted on input but not on output. Also a
style nit in the header.
2011-03-27 20:31:25 +00:00
Nicholas Marriott
808502ac3d
Give each pane created in a tmux server a unique id (starting from 0),
...
put it in the TMUX_PANE environment variable and accept it as a
target. Suggested by and with testing and tweaks from Ben Boeckel.
2011-03-27 20:27:26 +00:00
Nicholas Marriott
d74e5bffba
Fix to properly wrap wide characters, from Micah Cowan.
2011-03-26 19:07:33 +00:00
Micah Cowan
a9eb5e12ec
Fix to properly wrap wide characters.
2011-03-24 17:03:29 +00:00
Tiago Cunha
164c2cbcb0
Sync OpenBSD patchset 868:
...
Fix an incorrect test which was always true (oupper is always < olower),
from Yusuke ENDOH.
2011-03-19 23:32:01 +00:00
Tiago Cunha
20e17604b5
Sync OpenBSD patchset 867:
...
Prevent tiled producing a corrupt layout when only one column is needed,
from Karl Ferdinand Ebert.
2011-03-19 23:31:08 +00:00
Tiago Cunha
a0295b4c2f
Sync OpenBSD patchset 866:
...
Support passing through escape sequences to the underlying terminal by
using DCS with a "tmux;" prefix. Escape characters in the sequences must
be doubled. For example:
$ printf '\033Ptmux;\033\033]12;red\007\033\\'
Will pass \033]12;red\007 to the terminal (and change the cursor colour
in xterm). From Kevin Goodsell.
2011-03-19 23:30:37 +00:00
Tiago Cunha
9bc44043a4
Sync OpenBSD patchset 864:
...
Fix a typo that meant we did not reset the background colour when it was
omitted in a 256-colour SGR ([48;5m). From Yusuke ENDOH.
2011-03-19 23:28:30 +00:00
Tiago Cunha
d0cca3924e
Sync OpenBSD patchset 863:
...
Add a -P option to detach to HUP the client's parent process (usually
causing it to exit as well).
2011-03-19 23:27:35 +00:00
Nicholas Marriott
54456d5602
Fix an incorrect test which was always true (oupper is always < olower),
...
from Yusuke ENDOH.
2011-03-08 19:23:49 +00:00
Nicholas Marriott
0a404aabd3
Prevent tiled producing a corrupt layout when only one column is needed,
...
from Karl Ferdinand Ebert.
2011-03-07 23:55:16 +00:00
Nicholas Marriott
79e30daeae
Support passing through escape sequences to the underlying terminal by
...
using DCS with a "tmux;" prefix. Escape characters in the sequences must
be doubled. For example:
$ printf '\033Ptmux;\033\033]12;red\007\033\\'
Will pass \033]12;red\007 to the terminal (and change the cursor colour
in xterm). From Kevin Goodsell.
2011-03-07 23:46:27 +00:00
Nicholas Marriott
34bb013b92
Use the right asprintf since we don't support truly broken platforms right now.
2011-03-04 23:39:41 +00:00
Nicholas Marriott
d5ed5fb08f
Two fixes by Micah Cowan: make mouse work properly beyond >127 on signed
...
char architectures and properly parse $TMUX by stopping the socket path
at the first comma.
2011-03-04 23:26:44 +00:00
Micah Cowan
4cb976b408
Fix sscanf that was guaranteed to always fail.
2011-03-04 23:13:56 +00:00
Micah Cowan
c0888f3fd1
Make sure non-UTF8 mouse coordinates are kept to 8-bit values.
2011-03-04 20:36:59 +00:00
Nicholas Marriott
c36f67a288
Fix a typo that meant we did not reset the background colour when it was
...
omitted in a 256-colour SGR ([48;5m). From Yusuke ENDOH.
2011-03-03 08:53:14 +00:00
Nicholas Marriott
7954126dcd
Add a -P option to detach to HUP the client's parent process (usually
...
causing it to exit as well).
2011-03-03 08:51:47 +00:00
Nicholas Marriott
9def6baaba
+.
2011-02-28 21:10:33 +00:00
Tiago Cunha
c7624fd25d
Sync OpenBSD patchset 862:
...
Size on split-window is -l not -s. Doh.
2011-02-15 15:26:54 +00:00
Tiago Cunha
32de1d52ea
Sync OpenBSD patchset 861:
...
Don't require -d with -x or -y since it could be in the config file.
2011-02-15 15:25:48 +00:00
Tiago Cunha
677286bc0e
Sync OpenBSD patchset 860:
...
Redraw pane borders when switching to last pane.
2011-02-15 15:25:12 +00:00
Tiago Cunha
19e81ffda5
Sync OpenBSD patchset 859:
...
Free old argument even if setting to NULL.
2011-02-15 15:24:40 +00:00
Tiago Cunha
d718a14bd0
Sync OpenBSD patchset 858:
...
Accept tcgetattr/tcsetattr failure, fixes problems with fatal() if the
terminal disappears while locked.
2011-02-15 15:24:00 +00:00
Tiago Cunha
04ce5cc2d1
Sync OpenBSD patchset 857:
...
Use input_clear to reset the APC, DCS, OSC state or it could be reused
improperly by a later state. From Kevin Goodsell.
2011-02-15 15:21:14 +00:00
Tiago Cunha
065384056b
Sync OpenBSD patchset 856:
...
Unused declaration.
2011-02-15 15:20:38 +00:00
Tiago Cunha
3d7b8105e1
Sync OpenBSD patchset 855:
...
Simplify the way jobs work and drop the persist type, so all jobs are
fire-and-forget.
Status jobs now managed with two trees of output (new and old), rather
than storing the output in the jobs themselves. When the status line is
processed any jobs which don't appear in the new tree are started and
the output from the old tree displayed. When a job finishes it updates
the new tree with its output and that is used for any subsequent
redraws. When the status interval expires, the new tree is moved to the
old so that all jobs are run again.
This fixes the "#(echo %H:%M:%S)" problem which would lead to thousands
of identical persistent jobs and high memory use (this can still be
achieved by adding "sleep 30" but that is much less likely to happen by
accident).
2011-02-15 15:20:03 +00:00
Tiago Cunha
3b56ebce6d
Sync OpenBSD patchset 854:
...
Use LIST_* not SLIST_*.
2011-02-15 15:12:28 +00:00
Tiago Cunha
2ab568fa88
Sync OpenBSD patchset 853:
...
When clearing the entire screen, clear lines that are used into the
history like xterm does. Requested ages ago by someone I've forgotten.
2011-02-15 15:10:47 +00:00
Tiago Cunha
4e4568cade
Sync OpenBSD patchset 852:
...
Check if the index is in use and fail before creating the child process,
rather than leaving a stray child on failure.
2011-02-15 15:09:52 +00:00
Tiago Cunha
d0d1c0e486
Sync OpenBSD patchset 848:
...
Set $TMUX without the session when background jobs are run.
2011-02-14 23:11:33 +00:00
Nicholas Marriott
d37650dc4f
Spacing.
2011-02-14 20:39:40 +00:00
Nicholas Marriott
cf3b73167d
Expand an entry.
2011-02-12 15:51:11 +00:00
Nicholas Marriott
5532615bc0
Solaris is SunOS.
2011-02-11 23:31:15 +00:00
Nicholas Marriott
ce91520e12
Size on split-window is -l not -s. Doh.
2011-02-10 12:12:14 +00:00
Nicholas Marriott
8ec3e5725c
Don't require -d with -x or -y since it could be in the config file.
2011-02-03 20:50:03 +00:00
Nicholas Marriott
7462c03281
Redraw pane borders when switching to last pane.
2011-01-31 20:54:42 +00:00
Nicholas Marriott
567741caf5
Free old argument even if setting to NULL.
2011-01-30 12:09:30 +00:00
Nicholas Marriott
9fc2c34a3b
Accept tcgetattr/tcsetattr failure, fixes problems with fatal() if the
...
terminal disappears while locked.
2011-01-29 08:39:43 +00:00
Nicholas Marriott
b6bb350289
Use input_clear to reset the APC, DCS, OSC state or it could be reused
...
improperly by a later state. From Kevin Goodsell.
2011-01-28 20:39:22 +00:00
Nicholas Marriott
bcc7c689c1
Unused declaration.
2011-01-26 02:55:34 +00:00
Nicholas Marriott
0fa8d18775
Remove some that are done and some that are duplicates or no longer needed.
2011-01-26 02:05:02 +00:00
Nicholas Marriott
db7a89b1ee
Simplify the way jobs work and drop the persist type, so all jobs are
...
fire-and-forget.
Status jobs now managed with two trees of output (new and old), rather
than storing the output in the jobs themselves. When the status line is
processed any jobs which don't appear in the new tree are started and
the output from the old tree displayed. When a job finishes it updates
the new tree with its output and that is used for any subsequent
redraws. When the status interval expires, the new tree is moved to the
old so that all jobs are run again.
This fixes the "#(echo %H:%M:%S)" problem which would lead to thousands
of identical persistent jobs and high memory use (this can still be
achieved by adding "sleep 30" but that is much less likely to happen by
accident).
2011-01-26 01:54:56 +00:00
Nicholas Marriott
4dfb29fa38
Use LIST_* not SLIST_*.
2011-01-26 00:11:47 +00:00
Nicholas Marriott
ecc22c521d
When clearing the entire screen, clear lines that are used into the
...
history like xterm does. Requested ages ago by someone I've forgotten.
2011-01-25 23:40:26 +00:00
Nicholas Marriott
1270f8fed8
Check if the index is in use and fail before creating the child process,
...
rather than leaving a stray child on failure.
2011-01-25 22:31:50 +00:00
Nicholas Marriott
5cbdd84686
While here, maximum percentage is 100 not INT_MAX. Oops.
2011-01-23 15:49:32 +00:00
Nicholas Marriott
1df3355438
While here, maximum percentage is 100 not INT_MAX. Oops.
2011-01-23 15:49:10 +00:00
Nicholas Marriott
2be75a0129
Size is -l not -s.
2011-01-23 15:47:31 +00:00
Nicholas Marriott
8820aa9f65
Size is -l not -s.
2011-01-23 15:46:49 +00:00
Nicholas Marriott
3872e24847
Allow top-bit-set characters to be used for key bindings, from Tiago
...
Cunha.
2011-01-23 11:04:25 +00:00
Nicholas Marriott
b8023044c3
Set $TMUX without the session when background jobs are run.
2011-01-23 11:03:43 +00:00
Tiago Cunha
ec3a764c76
Make bind-key accept characters with the top-bit-set and print them as octal.
2011-01-22 22:31:09 +00:00
Tiago Cunha
e3defd9b25
Sync OpenBSD patchset 847:
...
Fix bind-key -t.
2011-01-22 00:00:23 +00:00
Tiago Cunha
1930181b18
Sync OpenBSD patchset 846:
...
Only set a mouse mode for mouse-select-pane if none already set by the
mode (any will do).
2011-01-21 23:56:53 +00:00
Tiago Cunha
332bfbf273
Sync OpenBSD patchset 845:
...
Mouse highlight mode (1001) requires a program to cooperate so
supporting it through tmux is not as easy as this, remove it for now.
2011-01-21 23:56:11 +00:00
Tiago Cunha
7a68cff1db
Sync OpenBSD patchset 844:
...
Support -x and -y for new-session to specify the initial size of the
window if created detached with -d.
2011-01-21 23:55:26 +00:00
Tiago Cunha
6d9fe6c3aa
Sync OpenBSD patchset 843:
...
The maximum history-limit was accidentally reduced, fix it back to INT_MAX.
2011-01-21 23:54:19 +00:00
Tiago Cunha
c2ed0186de
Sync OpenBSD patchset 842:
...
Clarify alternate-screen description a little.
2011-01-21 23:53:45 +00:00
Tiago Cunha
3866988f87
Sync OpenBSD patchset 841:
...
Er, fix next and previous session functions to actually work, part 2.
2011-01-21 23:53:01 +00:00
Tiago Cunha
43f8d62f6a
Sync OpenBSD patchset 840:
...
Fix next and previous session functions to actually work.
2011-01-21 23:52:36 +00:00
Tiago Cunha
a880639f48
Sync OpenBSD patchset 839:
...
Log termios backspace for each client since it is used to recognise
backspace input.
2011-01-21 23:51:36 +00:00
Tiago Cunha
57eb948c48
Sync OpenBSD patchset 838:
...
Use TMPDIR if set, from Han Boetes.
2011-01-21 23:46:50 +00:00
Tiago Cunha
6c3186a19a
Sync OpenBSD patchset 837:
...
unbind-key -a is allowed no arguments.
2011-01-21 23:46:09 +00:00
Tiago Cunha
10a5a2175e
Sync OpenBSD patchset 836:
...
Remove a bit of text that makes exit-unattached description unclear.
2011-01-21 23:45:34 +00:00
Tiago Cunha
be7cec5640
Sync OpenBSD patchset 835:
...
Add missing arguments to some options.
2011-01-21 23:45:04 +00:00
Tiago Cunha
492e3aa437
Sync OpenBSD patchset 834:
...
Move all calls to fcntl(...O_NONBLOCK) into a function and clear the
flag on the stdio file descriptors before closing them (fixes things
like "tmux ls && cat").
2011-01-21 23:44:13 +00:00
Tiago Cunha
6b19621112
Sync OpenBSD patchset 833:
...
Accept colours of the hex form #ffffff and translate to the nearest from
the xterm(1) 256-colour set.
2011-01-21 23:42:14 +00:00
Tiago Cunha
324ffe20e9
Link with libm due to the upcoming patchset.
2011-01-21 23:40:30 +00:00
Nicholas Marriott
38f169113e
Support for HP-UX.
2011-01-21 20:35:20 +00:00
Nicholas Marriott
e34c6fd187
Only have one asprintf implementation, that's likely to always work.
2011-01-21 20:03:18 +00:00
Nicholas Marriott
1377427e70
Fix bind-key -t.
2011-01-15 20:14:41 +00:00
Nicholas Marriott
3de1700f61
Only set a mouse mode for mouse-select-pane if none already set by the
...
mode (any will do).
2011-01-15 00:46:19 +00:00
Nicholas Marriott
8f8e81c0c9
Mouse highlight mode (1001) requires a program to cooperate so
...
supporting it through tmux is not as easy as this, remove it for now.
2011-01-15 00:16:00 +00:00
Nicholas Marriott
4f34e25dd8
Support -x and -y for new-session to specify the initial size of the
...
window if created detached with -d.
2011-01-14 23:49:23 +00:00
Nicholas Marriott
ac01c2025a
Whoops, did not mean to do this.
2011-01-13 19:59:48 +00:00
Nicholas Marriott
e08a40be56
osdep-linux.c
2011-01-13 19:58:47 +00:00
Nicholas Marriott
9ad9e8c5dd
The maximum history-limit was accidentally reduced, fix it back to INT_MAX.
2011-01-13 13:38:57 +00:00
Nicholas Marriott
fa4a75cdab
Clarify alternate-screen description a little.
2011-01-13 09:50:11 +00:00
Nicholas Marriott
2d82567070
Er, fix next and previous session functions to actually work, part 2.
2011-01-13 02:08:14 +00:00
Nicholas Marriott
588ebb5393
Fix next and previous session functions to actually work.
2011-01-13 02:07:06 +00:00
Nicholas Marriott
96ab50a701
Log termios backspace for each client since it is used to recognise
...
backspace input.
2011-01-13 00:54:32 +00:00
Nicholas Marriott
b3438c86bf
Use TMPDIR if set, from Han Boetes.
2011-01-12 22:23:58 +00:00
Nicholas Marriott
abd1f615b2
Trim spaces.
2011-01-10 22:45:10 +00:00
Nicholas Marriott
a7b6445cc3
Better __progname check.
2011-01-10 22:12:31 +00:00
Nicholas Marriott
96fe3b26c1
Copy osdep-unknown.c for AIX to make @PLATFORM@ work.
2011-01-10 22:00:47 +00:00
Nicholas Marriott
93fd9cc29d
Check for optarg, optind, optreset.
2011-01-10 21:51:56 +00:00
Nicholas Marriott
47e18f4cea
unbind-key -a is allowed no arguments.
2011-01-10 21:28:47 +00:00
Nicholas Marriott
87841b4f91
+.
2011-01-09 18:57:05 +00:00
Nicholas Marriott
17f1cd5be8
Remove a bit of text that makes exit-unattached description unclear.
2011-01-09 18:46:46 +00:00
Nicholas Marriott
c3041eb9f0
Add missing arguments to some options.
2011-01-09 18:42:19 +00:00
Nicholas Marriott
69cb1f830e
Move all calls to fcntl(...O_NONBLOCK) into a function and clear the
...
flag on the stdio file descriptors before closing them (fixes things
like "tmux ls && cat").
2011-01-08 01:52:36 +00:00
Nicholas Marriott
703160b5d6
Accept colours of the hex form #ffffff and translate to the nearest from
...
the xterm(1) 256-colour set.
2011-01-08 00:48:54 +00:00
Nicholas Marriott
676c62647c
+.
2011-01-07 19:01:19 +00:00
Tiago Cunha
30f6d9b167
Sync OpenBSD patchset 813:
...
Add a function to create window flags rather than doing the same thing
in two places. From Thomas Adam.
2011-01-07 16:55:40 +00:00
Tiago Cunha
1cb579d0fd
Bring the last remaining bits of dist.mk.
2011-01-07 15:09:04 +00:00
Tiago Cunha
3d4ebeb1b0
Sync OpenBSD patchset 832:
...
Whoops, command-prompt can take 0 or 1 argument.
2011-01-07 15:04:51 +00:00
Tiago Cunha
0fc4353fb3
Remove dead files entries.
2011-01-07 15:04:24 +00:00
Tiago Cunha
ca413cf270
Sync OpenBSD patchset 831:
...
Now that parsing is common, merge some of the small, related commands
together to use the same code.
Also add some arguments (such as -n and -p) to some commands to match
existing commands.
2011-01-07 15:02:38 +00:00
Tiago Cunha
b2b5d88f3f
Sync OpenBSD patchset 830:
...
argc will be 1 not 2 with no option value.
2011-01-07 14:51:54 +00:00
Tiago Cunha
ecec113b63
cmd-generic.c isn't needed anymore due to OpenBSD patchset 829.
2011-01-07 14:50:54 +00:00
Tiago Cunha
0740d3dbb8
Remove compat include.
2011-01-07 14:46:57 +00:00
Tiago Cunha
9301eeb4dd
More _SOURCES.
2011-01-07 14:46:13 +00:00
Tiago Cunha
1df427bc7b
Sync OpenBSD patchset 829:
...
Clean up and simplify tmux command argument parsing.
Originally, tmux commands were parsed in the client process into a
struct with the command data which was then serialised and sent to the
server to be executed. The parsing was later moved into the server (an
argv was sent from the client), but the parse step and intermediate
struct was kept.
This change removes that struct and the separate parse step. Argument
parsing and printing is now common to all commands (in arguments.c) with
each command left with just an optional check function (to validate the
arguments at parse time), the exec function and a function to set up any
key bindings (renamed from the old init function).
This is overall more simple and consistent.
There should be no changes to any commands behaviour or syntax although
as this touches every command please watch for any unexpected changes.
2011-01-07 14:45:34 +00:00
Tiago Cunha
219442cff7
Sync OpenBSD patchset 828:
...
Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262
and supports larger terminals than the older way.
If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all
UTF-8 terminals. The option defaults to on if LANG etc are set in the
same manner as the utf8 option.
With help and based on code from hsim at gmx.li.
2011-01-07 14:34:45 +00:00
Tiago Cunha
3aaf5b9b1e
Sync OpenBSD patchset 827:
...
Handle a # at the end of a replacement string (such as status-left)
correctly. Found by Thomas Adam.
2011-01-07 14:32:26 +00:00
Nicholas Marriott
b463d3de54
Missing HAVE_STDINT_H.
2011-01-07 00:35:13 +00:00
Nicholas Marriott
64f02dab7c
Whoops, command-prompt can take 0 or 1 argument.
2011-01-05 22:38:28 +00:00
Nicholas Marriott
f705c0e013
Whoops, bad copy and paste.
2011-01-04 09:48:10 +00:00
Nicholas Marriott
11dcbd7556
Support --enable-static.
2011-01-04 09:43:14 +00:00
Nicholas Marriott
96c37fa80a
Now that parsing is common, merge some of the small, related commands
...
together to use the same code.
Also add some arguments (such as -n and -p) to some commands to match
existing commands.
2011-01-04 02:03:41 +00:00
Nicholas Marriott
55346b0d10
argc will be 1 not 2 with no option value.
2011-01-04 01:58:12 +00:00
Nicholas Marriott
7502cb3adb
Clean up and simplify tmux command argument parsing.
...
Originally, tmux commands were parsed in the client process into a
struct with the command data which was then serialised and sent to the
server to be executed. The parsing was later moved into the server (an
argv was sent from the client), but the parse step and intermediate
struct was kept.
This change removes that struct and the separate parse step. Argument
parsing and printing is now common to all commands (in arguments.c) with
each command left with just an optional check function (to validate the
arguments at parse time), the exec function and a function to set up any
key bindings (renamed from the old init function).
This is overall more simple and consistent.
There should be no changes to any commands behaviour or syntax although
as this touches every command please watch for any unexpected changes.
2011-01-04 00:42:46 +00:00
Tiago Cunha
03ec2482c9
libevent-2 works now as well.
2011-01-03 23:58:10 +00:00
Tiago Cunha
a2387330ce
Zap paths.h include.
2011-01-03 23:55:30 +00:00
Tiago Cunha
3689640b4e
Update _SOURCES.
2011-01-03 23:54:51 +00:00
Tiago Cunha
36c7c7537a
Sync OpenBSD patchset 826:
...
Move the user-visible parts of all options (names, types, limit, default
values) together into one set of tables in options-table.c. Also clean
up and simplify cmd-set-options.c and move a common print function into
option-table.c.
2011-01-03 23:52:38 +00:00
Nicholas Marriott
2bdae526ad
More indentation tweaking.
2011-01-03 23:43:35 +00:00
Nicholas Marriott
69f6b23945
Include all osdep-*.c in dist.
2011-01-03 23:40:21 +00:00
Nicholas Marriott
ac3b78a841
Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262
...
and supports larger terminals than the older way.
If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all
UTF-8 terminals. The option defaults to on if LANG etc are set in the
same manner as the utf8 option.
With help and based on code from hsim at gmx.li.
2011-01-03 23:35:21 +00:00
Tiago Cunha
a0e7facee6
Sync OpenBSD patchset 825:
...
suspend-client has used -t for the client target (like everything else)
for ages, fix the usage string and man page and trim some leftover code.
2011-01-03 23:33:12 +00:00
Tiago Cunha
a24b67fc5a
Sync OpenBSD patchset 824:
...
Last few tables that should be const.
2011-01-03 23:32:04 +00:00
Tiago Cunha
521247bedb
Sync OpenBSD patchset 823:
...
Sprinkle a little more const.
2011-01-03 23:31:26 +00:00
Tiago Cunha
9ad028e8ee
Sync OpenBSD patchset 822:
...
Another table that should be const.
2011-01-03 23:30:43 +00:00
Tiago Cunha
d9c848d3a6
Sync OpenBSD patchset 821:
...
Key table should be const.
2011-01-03 23:29:49 +00:00
Tiago Cunha
66fb24c3a5
Sync OpenBSD patchset 820:
...
Add a -P option to new-window and split-window to print the new window
or pane index in target form (useful to pass it into other commands).
2011-01-03 23:29:09 +00:00
Tiago Cunha
d3c04b74ec
Sync OpenBSD patchset 819:
...
Don't reset the activity timer for unattached sessions every second,
this screws up the choice of most-recently-used. Instead, break the time
update into a little function and do it when the session is attached.
Pointed out by joshe@.
2011-01-03 23:27:54 +00:00
Tiago Cunha
09ef2c9f40
Sync OpenBSD patchset 818:
...
Remove unused variable.
2011-01-03 23:26:14 +00:00
Nicholas Marriott
5158dd9a8d
Handle a # at the end of a replacement string (such as status-left)
...
correctly. Found by Thomas Adam.
2011-01-03 21:30:49 +00:00
Nicholas Marriott
edc298d0a1
Wrap long line differently.
2011-01-02 15:49:31 +00:00
Nicholas Marriott
703baa8769
Fail if no libevent or curses, from Thomas Adam.
2011-01-02 15:45:43 +00:00
Nicholas Marriott
3e8124009f
Move the user-visible parts of all options (names, types, limit, default
...
values) together into one set of tables in options-table.c. Also clean
up and simplify cmd-set-options.c and move a common print function into
option-table.c.
2011-01-01 16:51:21 +00:00
Nicholas Marriott
0d77e5e959
Make version more prominent.
2011-01-01 13:39:19 +00:00
Nicholas Marriott
c120d09a5e
libevent 2 works now as well.
2011-01-01 13:34:57 +00:00
Nicholas Marriott
a4515ce138
suspend-client has used -t for the client target (like everything else)
...
for ages, fix the usage string and man page and trim some leftover code.
2011-01-01 11:24:45 +00:00
Nicholas Marriott
3a0d40b84d
Add.
2011-01-01 05:09:11 +00:00
Nicholas Marriott
234211a6f6
Add.
2011-01-01 05:01:54 +00:00
Nicholas Marriott
f833b885a1
Last few tables that should be const.
2011-01-01 03:43:20 +00:00
Nicholas Marriott
67ee86085c
Sprinkle a little more const.
2011-01-01 03:39:21 +00:00
Nicholas Marriott
5d0cfe079b
Another table that should be const.
2011-01-01 03:32:28 +00:00
Nicholas Marriott
1c86713afd
Key table should be const.
2011-01-01 02:16:25 +00:00
Nicholas Marriott
7ecbc18d5d
Also done.
2011-01-01 02:00:50 +00:00
Nicholas Marriott
dc7fb15251
Remove some done or duplicates, reorder.
2011-01-01 01:59:03 +00:00
Nicholas Marriott
b6950ed8aa
Add a -P option to new-window and split-window to print the new window
...
or pane index in target form (useful to pass it into other commands).
2011-01-01 01:33:07 +00:00
Nicholas Marriott
04b32fa734
Don't reset the activity timer for unattached sessions every second,
...
this screws up the choice of most-recently-used. Instead, break the time
update into a little function and do it when the session is attached.
Pointed out by joshe@.
2011-01-01 01:12:09 +00:00
Nicholas Marriott
91218f8714
Remove unused variable.
2011-01-01 00:44:24 +00:00
Nicholas Marriott
ce79d6081f
And moar.
2010-12-31 22:33:44 +00:00
Nicholas Marriott
d5a63c21b4
Make indentation better.
2010-12-31 22:31:45 +00:00
Nicholas Marriott
b066ad0fd8
Default enable-debug to on in CVS (can be changed for releases).
2010-12-31 22:18:35 +00:00
Nicholas Marriott
620b59e843
RCS $Id$.
2010-12-31 22:13:48 +00:00
Nicholas Marriott
f71b3054cd
Switch tmux to use autoconf and automake.
...
Although they suck, they suck less than the alternatives.
2010-12-31 22:12:33 +00:00
Tiago Cunha
60dd440082
Sync OpenBSD patchset 817:
...
fix trailing whitespace;
2010-12-31 02:00:30 +00:00
Tiago Cunha
f72f21951c
Sync OpenBSD patchset 816:
...
Remove some unused defines.
2010-12-31 01:59:47 +00:00
Tiago Cunha
67b333ec84
Sync OpenBSD patchset 815:
...
Fix BUFFERS section now they are global.
2010-12-31 01:58:27 +00:00
Nicholas Marriott
b9f36cc226
+.
2010-12-31 01:39:50 +00:00
Jason McIntyre
1a1efd5bc9
fix trailing whitespace;
2010-12-31 00:41:11 +00:00
Nicholas Marriott
4fb1045f5a
Remove some unused defines.
2010-12-30 23:20:13 +00:00
Nicholas Marriott
2b3c2fd852
Fix BUFFERS section now they are global.
2010-12-30 23:17:41 +00:00
Nicholas Marriott
cc42614fa9
Change from a per-session stack of buffers to one global stack which is
...
much more convenient and also simplifies lot of code. This renders
copy-buffer useless and makes buffer-limit now a server option.
By Tiago Cunha.
2010-12-30 23:16:18 +00:00
Tiago Cunha
bbf44d6ff3
Done.
2010-12-30 23:15:34 +00:00
Tiago Cunha
9ebee6aef8
Global paste buffers instead of per-session which renders copy-buffer useless.
...
As a consequence buffer-limit is now a server option.
2010-12-30 22:39:49 +00:00
Tiago Cunha
095e1b410a
Sync OpenBSD patchset 812:
...
Support all four of the xterm mouse modes. Based on a diff from hsim at
gmx.li.
2010-12-30 22:27:38 +00:00
Tiago Cunha
210b4553a5
Sync OpenBSD patchset 811:
...
Allow the config file parser and source-file to return "don't exit" to
the client to let attach work from configuration files.
2010-12-30 22:26:07 +00:00
Nicholas Marriott
2231e72968
Add a function to create window flags rather than doing the same thing
...
in two places. From Thomas Adam.
2010-12-30 21:35:17 +00:00
Nicholas Marriott
e0ad1e5706
Stray blank line.
2010-12-30 20:42:39 +00:00
Nicholas Marriott
436f3b357e
epoll on Linux is broken with /dev/null so it needs to be disabled.
...
Instead of adding another BROKEN_* define, move event_init into
osdep-*.c.
2010-12-30 20:41:08 +00:00
Nicholas Marriott
f7c42c21ba
Support all four of the xterm mouse modes. Based on a diff from hsim at
...
gmx.li.
2010-12-29 21:49:06 +00:00
Nicholas Marriott
230e39ec35
Allow the config file parser and source-file to return "don't exit" to
...
the client to let attach work from configuration files.
2010-12-29 21:28:32 +00:00
Tiago Cunha
ba89a048ed
Working on 1.5.
2010-12-27 22:13:35 +00:00
Tiago Cunha
dcef4f8084
Major changes since the previous version.
2010-12-27 21:37:42 +00:00
Tiago Cunha
030d284006
No point in talking about this here when it's already covered by other files.
2010-12-27 21:36:37 +00:00
Tiago Cunha
1b037f74f4
Bump VERSION and comment FDEBUG.
2010-12-27 21:32:16 +00:00
Tiago Cunha
750e6ad542
usage output should fit on a 80 column display.
2010-12-27 21:22:24 +00:00
Tiago Cunha
5f72510edf
Sync OpenBSD patchset 810:
...
tweak previous;
2010-12-27 21:17:25 +00:00
Tiago Cunha
5d86284a1a
Sync OpenBSD patchset 809:
...
Add a missing .Pp and sort options alphabetically, from Tiago Cunha.
2010-12-27 21:13:59 +00:00
Jason McIntyre
efa8c93664
tweak previous;
2010-12-27 19:57:31 +00:00
Nicholas Marriott
3e0bc052e1
Add a missing .Pp and sort options alphabetically, from Tiago Cunha.
2010-12-27 18:22:25 +00:00
Tiago Cunha
3cd9ea1789
Sync OpenBSD patchset 808:
...
server_kill_window can modify the RB tree so don't use RB_FOREACH, fixes
crash seen by Dan Harnett.
2010-12-25 23:44:37 +00:00
Tiago Cunha
3585feca54
Sync OpenBSD patchset 807:
...
Style tweaks.
2010-12-25 23:43:53 +00:00
Nicholas Marriott
d3d25365f1
server_kill_window can modify the RB tree so don't use RB_FOREACH, fixes
...
crash seen by Dan Harnett.
2010-12-23 21:56:38 +00:00
Nicholas Marriott
6fd2b5b87f
Style tweaks.
2010-12-23 20:18:39 +00:00
Tiago Cunha
a373235106
Sync OpenBSD patchset 806:
...
Store sessions in an RB tree by name rather than a list, this is tidier
and allows them to easily be shown sorted in various lists
(list-sessions/choose-sessions).
Keep a session index which is used in a couple of places internally but
make it an ever-increasing number rather than filling in gaps with new
sessions.
2010-12-22 15:36:44 +00:00
Tiago Cunha
9f3399da00
Sync OpenBSD patchset 805:
...
Fix another stray addition that was too early. Oops.
2010-12-22 15:33:14 +00:00
Tiago Cunha
c05a47ad0d
Sync OpenBSD patchset 804:
...
Undo a change to next/previous session that got mixed in prematurely.
2010-12-22 15:32:40 +00:00
Tiago Cunha
a932742a8a
Sync OpenBSD patchset 803:
...
Dead sessions are never on the active sessions list, so the SESSION_DEAD
flag is effectively unused. Remove it.
2010-12-22 15:31:56 +00:00
Tiago Cunha
bb728b89a7
Sync OpenBSD patchset 802:
...
Use pointer rather than index for the client's last session.
2010-12-22 15:31:00 +00:00
Tiago Cunha
64d16cf2d6
Sync OpenBSD patchset 801:
...
Unify the way sessions are used by callbacks - store the address and use
the reference count, then check it is still on the global sessions list
in the callback.
2010-12-22 15:28:51 +00:00
Tiago Cunha
b8eae3902b
Sync OpenBSD patchset 800:
...
Don't nuke the index counter when a session group comes up.
2010-12-22 15:25:07 +00:00
Tiago Cunha
d1bdc9a161
Sync OpenBSD patchset 799:
...
Add other-pane-height and other-pane-width options, allowing the width
or height of the smaller panes in the main-horizontal and main-vertical
layouts to be set. Mostly from David Goodlad.
2010-12-22 15:23:59 +00:00
Nicholas Marriott
acf13ce978
Store sessions in an RB tree by name rather than a list, this is tidier
...
and allows them to easily be shown sorted in various lists
(list-sessions/choose-sessions).
Keep a session index which is used in a couple of places internally but
make it an ever-increasing number rather than filling in gaps with new
sessions.
2010-12-21 22:37:59 +00:00
Nicholas Marriott
1b8488ee75
Fix another stray addition that was too early. Oops.
2010-12-20 01:28:18 +00:00
Nicholas Marriott
6fcdc714b6
Undo a change to next/previous session that got mixed in prematurely.
2010-12-20 00:43:24 +00:00
Nicholas Marriott
8705c6b435
Dead sessions are never on the active sessions list, so the SESSION_DEAD
...
flag is effectively unused. Remove it.
2010-12-20 00:19:20 +00:00
Nicholas Marriott
9358cfaf4a
Use pointer rather than index for the client's last session.
2010-12-20 00:17:22 +00:00
Nicholas Marriott
a51dcdc430
Unify the way sessions are used by callbacks - store the address and use
...
the reference count, then check it is still on the global sessions list
in the callback.
2010-12-20 00:03:55 +00:00
Nicholas Marriott
c65d4220f0
Don't nuke the index counter when a session group comes up.
2010-12-19 22:35:54 +00:00
Nicholas Marriott
c198664d15
Add other-pane-height and other-pane-width options, allowing the width
...
or height of the smaller panes in the main-horizontal and main-vertical
layouts to be set. Mostly from David Goodlad.
2010-12-19 18:35:08 +00:00
Nicholas Marriott
cd92f44686
"So you have screwed up your /dev/null?" From Mathias Gumz.
2010-12-15 23:31:30 +00:00
Nicholas Marriott
206ae727f9
Read ${X} environment variables in strings and $HOME from the global
...
environment rather than getenv, this allows them to be updated during
the configuration file.
2010-12-13 22:53:56 +00:00
Nicholas Marriott
8715247a43
Read ${X} environment variables in strings and $HOME from the global
...
environment rather than getenv, this allows them to be updated during
the configuration file.
2010-12-13 22:53:14 +00:00
Nicholas Marriott
5fcd6711e4
Track the last session for a client and add a flag to switch-client and
...
a key binding (L) to move a client back to its last session.
2010-12-11 18:42:20 +00:00
Nicholas Marriott
51487ed22f
Track the last session for a client and add a flag to switch-client and
...
a key binding (L) to move a client back to its last session.
2010-12-11 18:39:25 +00:00
Nicholas Marriott
d227a2e661
Remove a bunch of stuff that is done a few that aren't going to happen
...
and remove the priority list for now.
2010-12-11 18:06:42 +00:00
Nicholas Marriott
0b8ce56d73
Fix rectangle copy to behave like emacs - the cursor is not part of the
...
selection on the right edge but on the left it is.
2010-12-11 17:57:28 +00:00
Nicholas Marriott
20ed20ea1e
Fix rectangle copy to behave like emacs - the cursor is not part of the
...
selection on the right edge but on the left it is.
2010-12-11 17:56:01 +00:00
Nicholas Marriott
095ffe9cd1
Make the prompt history global for all clients which is much more useful
...
than per-client history.
2010-12-11 16:15:02 +00:00
Nicholas Marriott
9802fea615
Oops, these functions return a const char *, so make the local variable
...
const as well.
2010-12-11 16:13:15 +00:00
Nicholas Marriott
7ce77ffc9c
Make the prompt history global for all clients which is much more useful than per-client history.
2010-12-11 16:05:57 +00:00
Nicholas Marriott
1a4d78c7af
-V to report version, SF issue 3038862.
2010-12-10 21:19:13 +00:00
Nicholas Marriott
286fef9b4d
Rephrase a confusing sentence.
2010-12-10 21:05:22 +00:00
Nicholas Marriott
6be32c89c5
Rephrase a confusing sentence.
2010-12-10 21:01:38 +00:00
Nicholas Marriott
1f18523565
In the built-in layouts, distribute the panes more evenly. Set the
...
default value of main-pane-width to 80, rather than 81. By Micah Cowan.
2010-12-08 19:57:03 +00:00
Nicholas Marriott
1891f1ce99
Some do still need -lrt.
2010-12-08 19:55:31 +00:00
Micah Cowan
3ab25ac5b5
In the built-in layouts, distribute the panes more evenly.
...
Set the default value of main-pane-width to 80, rather than 81.
2010-12-07 20:23:21 +00:00
Nicholas Marriott
3a4f765a51
Add an option to alert (monitor) for silence (lack of activity) in a
...
window. From Thomas Adam.
2010-12-06 22:52:21 +00:00
Nicholas Marriott
e26a351865
Add an option to alert (monitor) for silence (lack of activity) in a
...
window. From Thomas Adam.
2010-12-06 22:51:02 +00:00
Nicholas Marriott
d0adcbc98a
PatchSet 790
...
Date: 2010/11/29 19:45:58
Author: nicm
Branch: HEAD
Tag: (none)
Log:
If VISUAL or EDITOR contains "vi", configure mode-keys and status-keys
to vi.
Based on a diff from martynas@, previously requested by a couple of
other people.
Members:
tmux.1:1.190->1.191
tmux.c:1.93->1.94
2010-12-06 21:59:42 +00:00
Nicholas Marriott
e75187310d
PatchSet 789
...
Date: 2010/11/22 21:13:13
Author: nicm
Branch: HEAD
Tag: (none)
Log:
There is somewhere that WINDOW_HIDDEN is getting set when it shouldn't
be and I can't find it, but the flag itself is a useless optimisation
that only applies to automatic-resize windows, so just dispose of it
entirely.
Fixes problems reported by Nicholas Riley.
Members:
resize.c:1.5->1.6
tmux.h:1.246->1.247
tty.c:1.92->1.93
2010-12-06 21:57:56 +00:00
Nicholas Marriott
7a0468c95c
PatchSet 788
...
Date: 2010/11/15 06:52:11
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Show more window and pane flags in list-* output, and put layout on the
same line.
Members:
cmd-list-panes.c:1.5->1.6
cmd-list-windows.c:1.9->1.10
2010-12-06 21:56:32 +00:00
Nicholas Marriott
1b0d235e3a
PatchSet 787
...
Date: 2010/11/14 09:04:22
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Update man page for update-environment.
Members:
tmux.1:1.189->1.190
2010-12-06 21:55:42 +00:00
Nicholas Marriott
36e537bcef
PatchSet 786
...
Date: 2010/11/14 08:58:25
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Don't allow last and active window to become the same - a very bad move
when the active window is closed and freed. Reported by sthen@.
Members:
window.c:1.58->1.59
2010-12-06 21:53:50 +00:00
Nicholas Marriott
fd51bf61c9
Add XAUTHORITY to update-environment, requested by Andreas Kloeckner.
2010-12-06 21:53:00 +00:00
Nicholas Marriott
fe4f760eba
PatchSet 784
...
Date: 2010/11/11 20:54:06
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Flag to flush all key bindings from Rob Paisley.
Members:
cmd-unbind-key.c:1.7->1.8
tmux.1:1.188->1.189
2010-12-06 21:51:02 +00:00
Nicholas Marriott
3a4b82d27a
PatchSet 783
...
Date: 2010/11/11 20:51:30
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Declaration in header should be extern.
Members:
tmux.h:1.245->1.246
2010-12-06 21:50:24 +00:00
Nicholas Marriott
ccdafdabca
PatchSet 782
...
Date: 2010/11/01 20:59:45
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Typo, from Rob Paisley.
Members:
tmux.1:1.187->1.188
2010-12-06 21:49:57 +00:00
Nicholas Marriott
39e277be3c
|---------------------
...
|PatchSet 781
|Date: 2010/10/29 21:11:57
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|We now send argv to the server after parsing it in the client to get the
|command, so the client should not modify it. Instead, take a copy. Fixes
|parsing command lists, reported by mcbride@.
|
|Members:
| cmd-list.c:1.5->1.6
| cmd.c:1.45->1.46
| tmux.h:1.244->1.245
2010-12-06 21:48:56 +00:00
Nicholas Marriott
1650155589
Another.
2010-12-06 17:10:42 +00:00
Nicholas Marriott
42327f06df
And moar.
2010-12-06 17:09:00 +00:00
Nicholas Marriott
1585b1e928
Moar.
2010-12-06 17:05:31 +00:00
Nicholas Marriott
9ab191b053
+ SF requests.
2010-12-06 17:03:22 +00:00
Nicholas Marriott
13032d1d88
Using working directory always, from Vivien Mallet.
2010-12-06 17:00:34 +00:00
Nicholas Marriott
64387d18dd
+.
2010-12-04 15:28:14 +00:00
Nicholas Marriott
ebd0eb4fb4
If VISUAL or EDITOR contains "vi", configure mode-keys and status-keys
...
to vi.
Based on a diff from martynas@, previously requested by a couple of
other people.
2010-11-29 19:45:58 +00:00
Nicholas Marriott
25bf0faf21
+.
2010-11-22 22:29:30 +00:00
Nicholas Marriott
ef9b2eb566
There is somewhere that WINDOW_HIDDEN is getting set when it shouldn't
...
be and I can't find it, but the flag itself is a useless optimisation
that only applies to automatic-resize windows, so just dispose of it
entirely.
Fixes problems reported by Nicholas Riley.
2010-11-22 21:13:13 +00:00
Nicholas Marriott
112fc58e6e
+.
2010-11-15 20:34:38 +00:00
Nicholas Marriott
9a1b4f9ed3
Show more window and pane flags in list-* output, and put layout on the
...
same line.
2010-11-15 06:52:11 +00:00
Nicholas Marriott
7e542d119b
Update man page for update-environment.
2010-11-14 09:04:22 +00:00
Nicholas Marriott
503edae26f
Don't allow last and active window to become the same - a very bad move
...
when the active window is closed and freed. Reported by sthen@.
2010-11-14 08:58:25 +00:00
Nicholas Marriott
ba68bed10e
+.
2010-11-13 16:55:30 +00:00
Nicholas Marriott
30e8ed393e
Whoops, get the logic the right way round.
2010-11-13 16:29:05 +00:00
Nicholas Marriott
e4e728664b
Add XAUTHORITY to update-environment, requested by Andreas Kloeckner.
2010-11-11 21:06:09 +00:00
Nicholas Marriott
17b56562c4
Flag to flush all key bindings from Rob Paisley.
2010-11-11 20:54:06 +00:00
Nicholas Marriott
c7fccfa299
Declaration in header should be extern.
2010-11-11 20:51:30 +00:00
Nicholas Marriott
a6fc49ae08
Fix AIX warnings.
2010-11-11 20:45:49 +00:00
Nicholas Marriott
94c2adf499
malloc(0) may return NULL, so only assume that is an error if allocating
...
more than zero.
2010-11-11 20:41:08 +00:00
Nicholas Marriott
9c541e42f0
AIX doesn't have daemon().
2010-11-11 20:37:53 +00:00
Nicholas Marriott
96601ce9fe
Bring back fuzz.c.
2010-11-02 20:55:13 +00:00
Nicholas Marriott
1cec111af3
>4 now.
2010-11-01 21:42:20 +00:00
Nicholas Marriott
023137a891
Typo, from Rob Paisley.
2010-11-01 20:59:45 +00:00
Nicholas Marriott
34d05ea7cd
We now send argv to the server after parsing it in the client to get the
...
command, so the client should not modify it. Instead, take a copy. Fixes
parsing command lists, reported by mcbride@.
2010-10-29 20:11:57 +00:00
Nicholas Marriott
ae7a7be819
I am almost certain we don't need crypt or rt now, and it builds fine on
...
Linux without.
2010-10-27 21:40:03 +00:00
Nicholas Marriott
58684ea998
And more.
2010-10-27 21:34:59 +00:00
Nicholas Marriott
914f8584ef
Style tweaks.
2010-10-27 21:33:15 +00:00
Nicholas Marriott
2287ec7b3e
Compat for closefrom().
2010-10-27 20:21:01 +00:00
Nicholas Marriott
8f84217023
Put setproctitle back under HAVE_SETPROCTITLE.
2010-10-24 19:54:41 +00:00
Tiago Cunha
83447580b1
Remove redundant preprocessor check (it's already taken care of by tmux.h).
2010-10-24 01:55:21 +00:00
Tiago Cunha
1cd9ff4460
Ugh. Don't know how this happened, but make it compile by removing duplicate
...
code.
2010-10-24 01:51:34 +00:00
Tiago Cunha
cd079e8fbf
Sync OpenBSD patchset 780:
...
Add a last-pane command (bound to ; by default). Requested ages ago by
somebody whose name I have forgotten.
2010-10-24 01:34:30 +00:00
Tiago Cunha
8703e9f2f9
Sync OpenBSD patchset 779:
...
When removing a pane, don't change the active pane unless the active
pane is actually the one being removed.
2010-10-24 01:32:35 +00:00
Tiago Cunha
2da0730f78
Sync OpenBSD patchset 778:
...
Mark repeating keys with "(repeat)" in the key list.
2010-10-24 01:31:57 +00:00
Tiago Cunha
bdbd4e28c2
Sync OpenBSD patchset 777:
...
Merge the before and after attach client code into one in client.c
(instead of two in tmux.c and client.c).
2010-10-24 01:31:08 +00:00
Tiago Cunha
1276ea3653
Zap paths.h compat include.
2010-10-24 00:50:11 +00:00
Tiago Cunha
f79b467dce
Sync OpenBSD patchset 776:
...
Make stdio blocking again before calling shell command with -c.
2010-10-24 00:47:46 +00:00
Tiago Cunha
d4b58c71a2
Sync OpenBSD patchset 775:
...
Trying to set FD_CLOEXEC on every fd is a lost cause, just use
closefrom() before exec.
2010-10-24 00:45:57 +00:00
Tiago Cunha
5fb4f8c1fa
Helper script which greps for compat includes that shouldn't be present in all files but compat.h.
2010-10-24 00:42:04 +00:00
Tiago Cunha
5a0ecc5931
Sync OpenBSD patchset 774:
...
Fall back on normal session choice method if $TMUX exists but is invalid
rather than rejecting.
2010-10-24 00:32:35 +00:00
Tiago Cunha
e7a4b68f73
Sync OpenBSD patchset 773:
...
Use an explicit event rather than event_once for the main event so it
can be removed when the client becomes ready.
2010-10-24 00:31:57 +00:00
Tiago Cunha
a7e5092bd4
Sync OpenBSD patchset 772:
...
Treat the meta bit in the xterm extended modifier key set as the same as
escape (tmux's meta). From Emanuele Giaquinta.
2010-10-24 00:30:51 +00:00
Tiago Cunha
b73ac822fb
Sync OpenBSD patchset 771:
...
Put "or" on new line from command with .Ic.
2010-10-24 00:29:57 +00:00
Nicholas Marriott
0ad532d9c2
Rewrite the screen vs tmux bit to be more accurate and complete and less
...
subjective.
2010-10-23 14:09:29 +00:00
Nicholas Marriott
5de84eca3d
Add a last-pane command (bound to ; by default). Requested ages ago by
...
somebody whose name I have forgotten.
2010-10-23 13:04:34 +00:00
Nicholas Marriott
a3efd2ab5a
When removing a pane, don't change the active pane unless the active
...
pane is actually the one being removed.
2010-10-23 12:51:51 +00:00
Nicholas Marriott
139754b9fe
Mark repeating keys with "(repeat)" in the key list.
2010-10-20 18:20:36 +00:00
Nicholas Marriott
248fb14f08
Merge the before and after attach client code into one in client.c
...
(instead of two in tmux.c and client.c).
2010-10-18 20:00:02 +00:00
Nicholas Marriott
b0ad6e94bb
+ttyfast.
2010-10-18 19:01:07 +00:00
Nicholas Marriott
31954339d1
Make stdio blocking again before calling shell command with -c.
2010-10-16 08:42:35 +00:00
Nicholas Marriott
f56b4ec2ff
Trying to set FD_CLOEXEC on every fd is a lost cause, just use
...
closefrom() before exec.
2010-10-16 08:31:55 +00:00
Nicholas Marriott
6c42f1a89e
Fall back on normal session choice method if $TMUX exists but is invalid
...
rather than rejecting.
2010-10-16 07:57:42 +00:00
Nicholas Marriott
65ff5b00bd
Use an explicit event rather than event_once for the main event so it
...
can be removed when the client becomes ready.
2010-10-14 17:38:39 +00:00
Nicholas Marriott
f6cd0342f6
Treat the meta bit in the xterm extended modifier key set as the same as
...
escape (tmux's meta). From Emanuele Giaquinta.
2010-10-14 00:37:51 +00:00
Nicholas Marriott
1580afdfdf
Put "or" on new line from command with .Ic.
2010-10-14 00:30:03 +00:00
Tiago Cunha
b2ae7c6261
Sync OpenBSD patchset 770:
...
Set cause when failing due to linking a window to itself, from Martin
Pieuchot.
2010-10-09 14:31:50 +00:00
Tiago Cunha
6c9269baa7
Sync OpenBSD patchset 769:
...
Skip NULL entries in the sessions list when choosing the next session,
from Simon Olofsson.
2010-10-09 14:31:14 +00:00
Tiago Cunha
45784bd5d6
Sync OpenBSD patchset 767:
...
Nuke a leftover RB tree declaration spotted by blambert.
2010-10-09 14:30:26 +00:00
Tiago Cunha
b5349ab5d9
Sync OpenBSD patchset 766:
...
Two new options:
- server option "exit-unattached" makes the server exit when no clients
are attached, even if sessions are present;
- session option "destroy-unattached" destroys a session once no clients
are attached to it.
These are useful for preventing tmux remaining in the background where
it is undesirable and when using tmux as a login shell to keep a limit
on new sessions.
2010-10-09 14:29:32 +00:00
Tiago Cunha
7874b00d4c
Sync OpenBSD patchset 765:
...
Modify the permissions on the socket when adding or removing +x to show
attached sessions, rather than replacing them.
2010-10-09 14:26:29 +00:00
Tiago Cunha
6139fac10d
Sync OpenBSD patchset 764:
...
detach-on-destroy is a session option, not server.
2010-10-09 14:25:40 +00:00
Nicholas Marriott
7aef2994e4
Set cause when failing due to linking a window to itself, from Martin
...
Pieuchot.
2010-10-09 12:58:00 +00:00
Nicholas Marriott
08bcd6978c
Skip NULL entries in the sessions list when choosing the next session,
...
from Simon Olofsson.
2010-10-05 17:15:21 +00:00
Nicholas Marriott
4789a4ee1f
Nuke a leftover RB tree declaration spotted by blambert.
2010-09-28 07:15:45 +00:00
Nicholas Marriott
9a7cde0c9b
Two new options:
...
- server option "exit-unattached" makes the server exit when no clients
are attached, even if sessions are present;
- session option "destroy-unattached" destroys a session once no clients
are attached to it.
These are useful for preventing tmux remaining in the background where
it is undesirable and when using tmux as a login shell to keep a limit
on new sessions.
2010-09-26 20:43:30 +00:00
Nicholas Marriott
66152010a7
Modify the permissions on the socket when adding or removing +x to show
...
attached sessions, rather than replacing them.
2010-09-26 18:51:48 +00:00
Nicholas Marriott
2772557d15
detach-on-destroy is a session option, not server.
2010-09-25 20:35:52 +00:00
Nicholas Marriott
d0d98d4ec0
done
2010-09-25 20:21:51 +00:00
Tiago Cunha
29f04400b5
Sync OpenBSD patchset 763:
...
Ugh. Pass the right type into tty_term_has. Teaches me to make last
minute changes :-/.
2010-09-18 15:45:03 +00:00
Tiago Cunha
5126037ea0
Sync OpenBSD patchset 762:
...
Use UTF-8 line drawing characters on UTF-8 terminals. Fixes some stupid
terminals (I'm looking at you, putty) which disable the vt100 ACS mode
switching sequences in UTF-8 mode.
Also on terminals without ACS at all, use ASCII equivalents where
obvious.
2010-09-18 15:43:53 +00:00
Tiago Cunha
d7a3fc3df4
Sync OpenBSD patchset 761:
...
Ignore terminal overrides settings without a value.
2010-09-18 15:41:50 +00:00
Tiago Cunha
59dc08a7a0
Sync OpenBSD patchset 760:
...
When resizing the copy mode screen, don't allow it to end up with the
viewable position beyond the size of the history.
2010-09-18 15:41:18 +00:00
Nicholas Marriott
fe3621cbc5
Update, from Daniel Thau.
2010-09-18 09:36:15 +00:00
Nicholas Marriott
ea4487c6da
Ugh. Pass the right type into tty_term_has. Teaches me to make last
...
minute changes :-/.
2010-09-11 16:20:58 +00:00
Nicholas Marriott
cb564bb427
Use UTF-8 line drawing characters on UTF-8 terminals. Fixes some stupid
...
terminals (I'm looking at you, putty) which disable the vt100 ACS mode
switching sequences in UTF-8 mode.
Also on terminals without ACS at all, use ASCII equivalents where
obvious.
2010-09-11 16:19:22 +00:00
Nicholas Marriott
3696cce4ae
Ignore terminal overrides settings without a value.
2010-09-11 15:43:11 +00:00
Nicholas Marriott
c1c5f43a01
When resizing the copy mode screen, don't allow it to end up with the
...
viewable position beyond the size of the history.
2010-09-11 15:39:55 +00:00
Tiago Cunha
89c07dedd9
Sync OpenBSD patchset 759:
...
Add -n and -p flags to switch-client to move to the next and previous
session (yes, it doesn't match window/pane, but so what, nor does
switch-client).
Based on a diff long ago from "edsouza".
2010-09-10 13:36:17 +00:00
Tiago Cunha
28a0b6fd20
Sync OpenBSD patchset 758:
...
Do not crash if the screen size is too small for the indicator in copy mode.
2010-09-10 13:34:12 +00:00
Nicholas Marriott
a22a6deda5
Add -n and -p flags to switch-client to move to the next and previous
...
session (yes, it doesn't match window/pane, but so what, nor does
switch-client).
Based on a diff long ago from "edsouza".
2010-09-08 22:02:28 +00:00
Nicholas Marriott
bbf743769b
Do not crash if the screen size is too small for the indicator in copy mode.
2010-09-08 20:36:42 +00:00
Nicholas Marriott
f54482a461
Solaris 9 has no stdint.h, ugh. Reported by a couple of people most
...
recently Timothy Larson.
2010-09-07 19:32:58 +00:00
Tiago Cunha
afcc29a51d
Sync OpenBSD patchset 757:
...
Simplify xterm modifier detection by treating as a bitmask + 1. Spotted
by and diff from Emanuele Giaquinta.
2010-09-07 13:21:18 +00:00
Tiago Cunha
33df467d40
Sync OpenBSD patchset 756:
...
Reset running jobs when the status line is enabled or disabled as well,
some people have it bound to a key.
2010-09-07 13:20:28 +00:00
Tiago Cunha
510b43569f
Sync OpenBSD patchset 755:
...
Add missing prototype.
2010-09-07 13:19:53 +00:00
Nicholas Marriott
de68c2a7da
Simplify xterm modifier detection by treating as a bitmask + 1. Spotted
...
by and diff from Emanuele Giaquinta.
2010-09-01 21:11:14 +00:00
Nicholas Marriott
5309252053
Reset running jobs when the status line is enabled or disabled as well,
...
some people have it bound to a key.
2010-09-01 21:06:51 +00:00
Nicholas Marriott
a8b22d3673
+.
2010-09-01 20:39:32 +00:00
Nicholas Marriott
19923625d4
+.
2010-09-01 20:37:20 +00:00
Nicholas Marriott
8e8e0f1d53
Add missing prototype.
2010-08-31 22:46:59 +00:00
Nicholas Marriott
3b4d26d16b
+.
2010-08-31 22:44:01 +00:00
Tiago Cunha
01052ca38e
Sync OpenBSD patchset 754:
...
When destroying a pane, reset any mode (which reenables pane
bufferevent) before freeing the bufferevent.
2010-08-29 14:46:13 +00:00
Tiago Cunha
ee44a8dca9
Sync OpenBSD patchset 753:
...
Can't call event_del() without event_set() first - so call event_set()
when setting up the client.
2010-08-29 14:44:55 +00:00
Tiago Cunha
89acd757d0
Sync OpenBSD patchset 752:
...
MSG_EXIT can now have a return code in the message, so check for that
size as well. Stops the client fatal()ing on exit.
2010-08-29 14:43:45 +00:00
Tiago Cunha
56040be346
Sync OpenBSD patchset 751:
...
Do not call event_del() for signals after fork(), just use sigaction()
directly instead - calling libevent functions after fork() w/o
event_reinit() is a bad idea, even if in this case it was harmless.
2010-08-29 14:42:11 +00:00
Tiago Cunha
e6bb3d6942
Sync OpenBSD patchset 750:
...
Do not need to dup() the tty fd sent from the client because it is
already dup()d again later. Fixes a leak seen by espie@.
2010-08-29 14:39:45 +00:00
Nicholas Marriott
f69ce39a6c
When destroying a pane, reset any mode (which reenables pane
...
bufferevent) before freeing the bufferevent.
2010-08-25 19:19:43 +00:00
Nicholas Marriott
fc9f08235b
Can't call event_del() without event_set() first - so call event_set()
...
when setting up the client.
2010-08-23 17:36:32 +00:00
Nicholas Marriott
5f5104e782
MSG_EXIT can now have a return code in the message, so check for that
...
size as well. Stops the client fatal()ing on exit.
2010-08-22 16:09:49 +00:00
Nicholas Marriott
e3be9b1951
Do not call event_del() for signals after fork(), just use sigaction()
...
directly instead - calling libevent functions after fork() w/o
event_reinit() is a bad idea, even if in this case it was harmless.
2010-08-19 18:29:01 +00:00
Nicholas Marriott
aba555509e
+-.
2010-08-19 18:04:56 +00:00
Nicholas Marriott
c2822ca119
Do not need to dup() the tty fd sent from the client because it is
...
already dup()d again later. Fixes a leak seen by espie@.
2010-08-19 17:20:26 +00:00
Tiago Cunha
c50c4ec834
Sync OpenBSD patchset 749:
...
Do not allow duplicate session names to be created, reported by Dominik
Honnef, patch from Thomas Adam.
2010-08-11 22:19:03 +00:00
Tiago Cunha
9858071dd0
Sync OpenBSD patchset 748:
...
Handle failure to change mode, to avoid dying when switching into copy
mode when already in a different mode. Reported by "Florian".
2010-08-11 22:18:28 +00:00
Tiago Cunha
b0169d9b84
Sync OpenBSD patchset 747:
...
Usage string fixes from Ben Boeckel.
2010-08-11 22:17:32 +00:00
Tiago Cunha
e34c6e2305
Sync OpenBSD patchset 746:
...
Treat trying to link or move to the same window as an error to avoid
removing it accidentally.
2010-08-11 22:16:43 +00:00
Tiago Cunha
761bd3c9e3
Sync OpenBSD patchset 745:
...
Change the way backoff works. Instead of stopping reading from the pty
when the client tty backs up too much, just stop updating the tty and
only update the internal screen. Then when the tty recovers, force a
redraw.
This prevents a dodgy client from causing other clients to go into
backoff while still allowing tmux to be responsive (locally) when seeing
lots of output.
2010-08-11 22:16:04 +00:00
Tiago Cunha
5e9429e2d6
Sync OpenBSD patchset 744:
...
Show which pane is active in the list-panes output, suggested by Dominik
Honnef.
2010-08-11 22:14:23 +00:00
Nicholas Marriott
828f12b748
Do not allow duplicate session names to be created, reported by Dominik
...
Honnef, patch from Thomas Adam.
2010-08-11 07:45:06 +00:00
Nicholas Marriott
ae70071494
Handle failure to change mode, to avoid dying when switching into copy
...
mode when already in a different mode. Reported by "Florian".
2010-08-11 07:41:05 +00:00
Nicholas Marriott
3999886901
Usage string fixes from Ben Boeckel.
2010-08-11 07:38:00 +00:00
Nicholas Marriott
cc474b4ede
Treat trying to link or move to the same window as an error to avoid
...
removing it accidentally.
2010-08-11 07:36:23 +00:00
Nicholas Marriott
8363e31953
Change the way backoff works. Instead of stopping reading from the pty
...
when the client tty backs up too much, just stop updating the tty and
only update the internal screen. Then when the tty recovers, force a
redraw.
This prevents a dodgy client from causing other clients to go into
backoff while still allowing tmux to be responsive (locally) when seeing
lots of output.
2010-08-11 07:34:43 +00:00
Nicholas Marriott
933dc48de3
Show which pane is active in the list-panes output, suggested by Dominik
...
Honnef.
2010-08-11 07:27:50 +00:00
Tiago Cunha
4387db506f
Sync OpenBSD patchset 742:
...
dup() the stdin fd so it isn't closed twice (once for stdin, once for tty).
2010-08-09 21:45:37 +00:00
Tiago Cunha
d7bae0edce
Sync OpenBSD patchset 741:
...
When changing so that the client passes its stdout and stderr as well as
stdin up to the server, I forgot one essential point - the tmux server
could now be both the producer and consumer. This happens when tmux is
run inside tmux, as well as when piping tmux commands together.
So, using stdio(3) was a bad idea - if sufficient data was written, this
could block in write(2). When that happened and the server was both
producer and consumer, it deadlocks.
Change to use libevent bufferevents for the client stdin, stdout and
stderr instead. This is trivial enough for output but requires a
callback mechanism to trigger when stdin is finished.
This relies on the underlying polling mechanism for libevent to work
with whatever devices to which the user could redirect stdin, stdout or
stderr, hence the change to use poll(2) over kqueue(2) for tmux.
2010-08-09 21:44:25 +00:00
Nicholas Marriott
482bd7b65e
Basic GNU bash completion from Frank Barknecht.
2010-08-09 18:22:33 +00:00
Theo Deraadt
4274a7ec89
switch back to kqueue for now, since (a) kqueue has been fixed to deal
...
with strange devices and (b) since there appears to be a bull in the
poll code in libevent as well...
requested by nicm who is away
2010-08-04 19:46:13 +00:00
Nicholas Marriott
f42364b4b5
How to blank on lock, from Thomas Adam, slightly tweaked by me.
2010-07-31 11:46:28 +00:00
Nicholas Marriott
5be8175b0b
No more up-pane/down-pane.
2010-07-31 11:39:13 +00:00
Nicholas Marriott
77f9c49829
dup() the stdin fd so it isn't closed twice (once for stdin, once for tty).
2010-07-28 22:15:15 +00:00
Tiago Cunha
5576fe42b2
Sync with reality, per SF bug #3035214 .
2010-07-27 18:29:07 +00:00
Nicholas Marriott
c87187f913
When changing so that the client passes its stdout and stderr as well as
...
stdin up to the server, I forgot one essential point - the tmux server
could now be both the producer and consumer. This happens when tmux is
run inside tmux, as well as when piping tmux commands together.
So, using stdio(3) was a bad idea - if sufficient data was written, this
could block in write(2). When that happened and the server was both
producer and consumer, it deadlocks.
Change to use libevent bufferevents for the client stdin, stdout and
stderr instead. This is trivial enough for output but requires a
callback mechanism to trigger when stdin is finished.
This relies on the underlying polling mechanism for libevent to work
with whatever devices to which the user could redirect stdin, stdout or
stderr, hence the change to use poll(2) over kqueue(2) for tmux.
2010-07-24 20:11:59 +00:00
Nicholas Marriott
bf09b00fe9
kqueue(2) is currently broken when used with /dev/null and a few other
...
devices.
An upcoming fix for some problems with the client stdout/stderr handling
relies on it working, so make tmux force libevent to use poll(2) via
EVENT_NOKQUEUE, until we have fixed kqueue.
2010-07-24 19:25:31 +00:00
Nicholas Marriott
a97b7ad11c
Fix a crash: if remain-on-exit is set and the pane has exited, the
...
buffers may not be valid, so do not try to disable/enable them when
switching to copy mode.
2010-07-22 21:10:51 +00:00
Micah Cowan
1944747759
Don't enable/disable invalid event pointers. Fixes SF #3033119 .
2010-07-22 19:51:48 +00:00
Tiago Cunha
28c4c86589
Sync OpenBSD patchset 738:
...
Don't return if in the current window since we may want to report a bell
(if bell-action any/current), just clear the flag so the status line
doesn't show the bell.
2010-07-20 17:36:41 +00:00
Tiago Cunha
7ed9b0f8fb
Sync OpenBSD patchset 737:
...
Send the \n to stdout with the message, not stderr... doh.
2010-07-20 17:36:03 +00:00
Nicholas Marriott
2b80ede963
Don't return if in the current window since we may want to report a bell
...
(if bell-action any/current), just clear the flag so the status line
doesn't show the bell.
2010-07-19 21:13:03 +00:00
Nicholas Marriott
11497af4dd
Solaris has MAXHOSTNAMELEN in netdb.h.
2010-07-19 18:31:42 +00:00
Nicholas Marriott
2a0f3f0d79
Send the \n to stdout with the message, not stderr... doh.
2010-07-19 18:27:38 +00:00
Tiago Cunha
b0878774e0
Don't hard-code the username.
2010-07-19 13:57:22 +00:00
Tiago Cunha
e71f0842ce
Working on 1.4.
2010-07-18 14:53:27 +00:00
Tiago Cunha
9b47a48393
Changes for 1.3.
2010-07-18 13:40:59 +00:00
Tiago Cunha
0482983d53
Done.
2010-07-18 13:39:02 +00:00
Tiago Cunha
2b512dc49d
Bump VERSION, and comment FDEBUG.
2010-07-18 13:36:52 +00:00
Tiago Cunha
ae45c2ea45
Sync OpenBSD patchset 736:
...
some escapes i missed;
2010-07-17 14:39:01 +00:00
Tiago Cunha
11f81e8134
Sync OpenBSD patchset 735:
...
Make pane/window wrapping more logical (so with 10 windows, +10 from
window 5 stays in the same place), and tidy the code. From Tiago Cunha.
2010-07-17 14:38:13 +00:00
Tiago Cunha
ad6a528f61
Sync OpenBSD patchset 734:
...
Return the command client return code with MSG_EXIT now that MSG_ERROR and
MSG_PRINT are unused.
New clients should be compatible with old tmux servers but vice versa may print
an error.
2010-07-17 14:36:41 +00:00
Jason McIntyre
a471b5de9c
some escapes i missed;
2010-07-15 21:54:20 +00:00
Nicholas Marriott
43355fa75c
Make pane/window wrapping more logical (so with 10 windows, +10 from
...
window 5 stays in the same place), and tidy the code. From Tiago Cunha.
2010-07-14 18:37:49 +00:00
Nicholas Marriott
b9c873cdaa
Return the command client return code with MSG_EXIT now that MSG_ERROR and
...
MSG_PRINT are unused.
New clients should be compatible with old tmux servers but vice versa may print
an error.
2010-07-11 17:06:45 +00:00
Tiago Cunha
46f27eab22
Sync OpenBSD patchset 733:
...
replace some magic mouse constants with defines for clarity. ok nicm
2010-07-02 02:56:07 +00:00
Tiago Cunha
e4703bacb5
Sync OpenBSD patchset 732:
...
Custom layouts. list-windows command displays the layout as a string (such as
"bb62,159x48,0,0{79x48,0,0,79x48,80,0}") and it can be applied to another
window (with the same number of panes or fewer) using select-layout.
2010-07-02 02:54:52 +00:00
Tiago Cunha
e4573de97b
Sync OpenBSD patchset 731:
...
Send all three of stdin, stdout, stderr from the client to the server, so that
commands can directly make use of them. This means that load-buffer and
save-buffer can have "-" as the file to read from stdin or write to stdout.
This is a protocol version bump so the tmux server will need to be restarted
after upgrade (or an older client used).
2010-07-02 02:52:13 +00:00
Tiago Cunha
63e76b555d
Sync OpenBSD patchset 730:
...
Store the current working directory in the session, change the default-path
option to default to empty and make that mean that the stored session CWD is
used.
2010-07-02 02:49:19 +00:00
Tiago Cunha
13e7f060b1
Update.
2010-07-02 02:46:39 +00:00
Tiago Cunha
fa34c76275
Sync OpenBSD patchset 729:
...
New option, detach-on-destroy, to set what happens to a client when the session
it is attached to is destroyed. If on (the default), it is detached; if off, it
is switched to the most recently active session.
2010-07-02 02:45:52 +00:00
Tiago Cunha
985cd3a4de
Sync OpenBSD patchset 728:
...
Use server_destroy_session() for kill-session.
2010-07-02 02:43:50 +00:00
Tiago Cunha
03c1c1cd9f
Sync OpenBSD patchset 727:
...
Setting the cmdlist pointer in the bind-key to NULL to prevent it being freed
after the command is executing is bogus because it may still be needed if the
same command is going to be executed again (for example if you "bind-key a
bind-key b ..."). Making a copy is hard, so instead add a reference count to
the cmd_list.
While here, also print bind-key -n and the rest of the flags properly.
Fixes problem reported by mcbride@.
2010-07-02 02:43:01 +00:00
Ted Unangst
b4b9b831ee
replace some magic mouse constants with defines for clarity. ok nicm
2010-06-29 05:24:49 +00:00
Nicholas Marriott
552c9cd83f
Custom layouts. list-windows command displays the layout as a string (such as
...
"bb62,159x48,0,0{79x48,0,0,79x48,80,0}") and it can be applied to another
window (with the same number of panes or fewer) using select-layout.
2010-06-29 03:30:13 +00:00
Nicholas Marriott
76bbdeb586
Send all three of stdin, stdout, stderr from the client to the server, so that
...
commands can directly make use of them. This means that load-buffer and
save-buffer can have "-" as the file to read from stdin or write to stdout.
This is a protocol version bump so the tmux server will need to be restarted
after upgrade (or an older client used).
2010-06-28 22:10:42 +00:00
Nicholas Marriott
07a71fd432
Store the current working directory in the session, change the default-path
...
option to default to empty and make that mean that the stored session CWD is
used.
2010-06-27 02:56:59 +00:00
Nicholas Marriott
26524c99f6
New option, detach-on-destroy, to set what happens to a client when the session
...
it is attached to is destroyed. If on (the default), it is detached; if off, it
is switched to the most recently active session.
2010-06-27 00:22:22 +00:00
Nicholas Marriott
34464da8d3
Use server_destroy_session() for kill-session.
2010-06-26 23:55:50 +00:00
Nicholas Marriott
42e2413978
Setting the cmdlist pointer in the bind-key to NULL to prevent it being freed
...
after the command is executing is bogus because it may still be needed if the
same command is going to be executed again (for example if you "bind-key a
bind-key b ..."). Making a copy is hard, so instead add a reference count to
the cmd_list.
While here, also print bind-key -n and the rest of the flags properly.
Fixes problem reported by mcbride@.
2010-06-26 18:20:53 +00:00
Tiago Cunha
0e70c8801c
Update.
2010-06-22 23:37:28 +00:00
Tiago Cunha
617386370b
Nuke vis.h.
2010-06-22 23:36:54 +00:00
Tiago Cunha
bf1e237410
Sync OpenBSD patchset 726:
...
Add a choose-buffer command for easier use of the paste buffer stack.
2010-06-22 23:35:20 +00:00
Tiago Cunha
8d3b726396
Sync OpenBSD patchset 725:
...
Extend the -t:+ and -t:- window targets for next and previous window to
accept an offset such as -t:+2. From Tiago Cunha.
2010-06-22 23:29:05 +00:00
Tiago Cunha
47b335dee7
Sync OpenBSD patchset 724:
...
Having a list of winlinks->alerts for each session is stupid, just store
the alert flags directly in the winlink itself.
2010-06-22 23:26:18 +00:00
Tiago Cunha
6c76724201
Sync OpenBSD patchset 723:
...
Rename activity->alert in a couple of functions for consistency.
2010-06-22 23:22:31 +00:00
Tiago Cunha
29434cb043
Sync OpenBSD patchset 722:
...
Give tmux sockets (but not the containing folder) group
permissions. This allows hardlinks to the sockets to be used more
easily.
2010-06-22 23:21:39 +00:00
Nicholas Marriott
ef7293379f
Add a choose-buffer command for easier use of the paste buffer stack.
2010-06-21 21:44:09 +00:00
Nicholas Marriott
386849edc1
Extend the -t:+ and -t:- window targets for next and previous window to
...
accept an offset such as -t:+2. From Tiago Cunha.
2010-06-21 01:46:36 +00:00
Nicholas Marriott
e63f0546a1
Having a list of winlinks->alerts for each session is stupid, just store
...
the alert flags directly in the winlink itself.
2010-06-21 01:27:46 +00:00
Nicholas Marriott
447a07e9f8
Rename activity->alert in a couple of functions for consistency.
2010-06-21 00:25:32 +00:00
Nicholas Marriott
b7454e37cb
Done.
2010-06-21 00:19:44 +00:00
Nicholas Marriott
ad466a69aa
Give tmux sockets (but not the containing folder) group
...
permissions. This allows hardlinks to the sockets to be used more
easily.
2010-06-21 00:18:57 +00:00
Nicholas Marriott
e2a5e02022
+.
2010-06-21 00:13:13 +00:00
Nicholas Marriott
5afb820d23
Ensure we overwrite UTF-8 wide characters properly, and never overwrite
...
characters we weren't overlapping. Fixes "disappearing wide characters"
glitch. From Micah Cowan.
2010-06-21 00:11:12 +00:00
Micah Cowan
cac532c3d1
Ensure we overwrite wide characters properly, and never overwrite characters we weren't overlapping.
...
Fixes "disappearing wide characters" glitch.
2010-06-16 18:09:23 +00:00
Tiago Cunha
e186450788
Sync OpenBSD patchset 720:
...
Last change erroneously used the target argument for looking up the
client which caused pipe-pane to fail when used from the command
line. Instead pass NULL which should use the current client.
Spotted by Tiago Cunha.
2010-06-15 20:25:40 +00:00
Tiago Cunha
3e8092709c
Sync OpenBSD patchset 719:
...
Add a missing command and some missing Ic, from Tiago Cunha.
2010-06-15 20:24:52 +00:00
Nicholas Marriott
278d9bc721
Last change erroneously used the target argument for looking up the
...
client which caused pipe-pane to fail when used from the command
line. Instead pass NULL which should use the current client.
Spotted by Tiago Cunha.
2010-06-14 23:06:13 +00:00
Nicholas Marriott
1484eb8a51
Add a missing command and some missing Ic, from Tiago Cunha.
2010-06-14 23:04:44 +00:00
Nicholas Marriott
1b77ae2684
+.
2010-06-13 11:28:26 +00:00
Nicholas Marriott
dcc100f165
Use a macro-based mask for obtaining a key or modifier-set from the
...
combination. Display C-@, etc, as C-Space, in list-keys. By Micah Cowan.
2010-06-06 19:00:13 +00:00
Tiago Cunha
60134cebda
imsg was moved into libutil on OpenBSD.
2010-06-06 13:00:47 +00:00
Tiago Cunha
f34861bad4
Sync OpenBSD patchset 717:
...
Couple of missing command aliases/flags, from Tiago Cunha.
2010-06-06 00:31:32 +00:00
Tiago Cunha
6503207185
Sync OpenBSD patchset 716:
...
Fix problems with window sizing seen by Raghavendra D Prabhu when
starting tmux from .xinitrc.
One of the very few things the server relies on the client for now is to
pass through a message on SIGWINCH, but there is a condition where
potentially a SIGWINCH may be lost during the transition from unattached
(main.c) to attached (client.c). So trigger a size change immediately
after the client installs its SIGWINCH handler.
Also, when the terminal is resized, reset the scroll region and cursor
position. Previously, we were clearing our saved idea of these, but in
fact some terminals do not reset them on resize, so this caused problems
during redraw.
While here make a resize to the same size not cause a redraw and rename
the tmux.out output log file to include the tmux PID.
2010-06-06 00:30:34 +00:00
Tiago Cunha
3bba401609
Sync OpenBSD patchset 715:
...
Support the status_replace # replacement sequences in the pipe-pane
command, thanks to Andrea Barisani.
2010-06-06 00:28:00 +00:00
Tiago Cunha
31657820bc
Sync OpenBSD patchset 714:
...
Shut up gcc4 warnings.
2010-06-06 00:27:08 +00:00
Tiago Cunha
be3643fba0
Sync OpenBSD patchset 713:
...
This ioctl(TIOCGWINSZ) call is no longer necessary, the result is never
used and the server now does it later on the tty fd directly.
2010-06-06 00:25:47 +00:00
Tiago Cunha
f62d3d22bb
Sync OpenBSD patchset 710:
...
When the mode-mouse option is on, support dragging to make a selection
in copy mode.
Also support the scroll wheel, although xterm strangely does not ignore
it in application mouse mode, causing redraw artifacts when scrolling up
(other terminals appear to be better behaved).
2010-06-06 00:23:44 +00:00
Tiago Cunha
67dc249d0e
Sync OpenBSD patchset 709:
...
Better to say "command key bindings" since we've just called them
command keys.
2010-06-06 00:21:36 +00:00
Tiago Cunha
0778ef230b
Sync OpenBSD patchset 708:
...
There is no real reason not to list all the key bindings here rather
than just a selection.
2010-06-06 00:20:53 +00:00
Tiago Cunha
bebfd7c2c8
Sync OpenBSD patchset 706:
...
Rename some imsg bits to make namespace collisions less likely buf to
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE.
2010-06-06 00:08:28 +00:00
Tiago Cunha
348c3e69de
Sync OpenBSD patchset 705:
...
Don't die if the client has been detached when the job finishes, just
don't display the output.
2010-06-06 00:04:59 +00:00
Tiago Cunha
0d6a64070c
Sync OpenBSD patchset 704:
...
Fix an out-of-date comment.
2010-06-06 00:04:18 +00:00
Tiago Cunha
bb4d770e45
No vis.h in here.
2010-06-06 00:03:02 +00:00
Tiago Cunha
e55a59eebc
Sync OpenBSD patchset 702:
...
Enhance paste-buffer to allow lines to be separated by any string, from
Andrea Barisani.
2010-06-06 00:01:36 +00:00
Tiago Cunha
11cd05db27
Sync OpenBSD patchset 701:
...
Colour+attribute options for status line alerts, from Alex Alexander.
2010-06-05 23:56:29 +00:00
Tiago Cunha
6c6255f2d7
Sync OpenBSD patchset 700:
...
Accept (and document) "none" instead of "default" for attributes as it
is clearer and avoids confusion with default colours.
2010-06-05 23:54:51 +00:00
Micah Cowan
227e458ebb
Use a macro-based mask for obtaining a key or modifier-set from the combination.
...
Display C-@, etc, as C-Space, in list-keys.
2010-06-05 20:29:11 +00:00
Nicholas Marriott
89eb95265a
Must allocate for putenv.
2010-06-05 18:20:48 +00:00
Nicholas Marriott
d98efa5378
Only need to build setenv.c once.
2010-06-05 18:14:29 +00:00
Nicholas Marriott
4e3bed2035
Couple of missing command aliases/flags, from Tiago Cunha.
2010-06-05 16:54:24 +00:00
Nicholas Marriott
510ec3fb9e
Fix problems with window sizing seen by Raghavendra D Prabhu when
...
starting tmux from .xinitrc.
One of the very few things the server relies on the client for now is to
pass through a message on SIGWINCH, but there is a condition where
potentially a SIGWINCH may be lost during the transition from unattached
(main.c) to attached (client.c). So trigger a size change immediately
after the client installs its SIGWINCH handler.
Also, when the terminal is resized, reset the scroll region and cursor
position. Previously, we were clearing our saved idea of these, but in
fact some terminals do not reset them on resize, so this caused problems
during redraw.
While here make a resize to the same size not cause a redraw and rename
the tmux.out output log file to include the tmux PID.
2010-06-05 16:47:11 +00:00
Nicholas Marriott
ceed5cc9a9
Support the status_replace # replacement sequences in the pipe-pane
...
command, thanks to Andrea Barisani.
2010-06-05 16:34:30 +00:00
Nicholas Marriott
0440d325d9
Shut up gcc4 warnings.
2010-06-05 16:32:22 +00:00
Nicholas Marriott
36c0871c23
This ioctl(TIOCGWINSZ) call is no longer necessary, the result is never
...
used and the server now does it later on the tty fd directly.
2010-06-05 16:29:45 +00:00
Nicholas Marriott
a9c6976268
Should be const char *.
2010-06-05 16:29:40 +00:00
Nicholas Marriott
b88ec14f0e
Fix binding of C-Space/C-@, from Micah Cowan.
2010-06-05 15:51:53 +00:00
Nicholas Marriott
cc724f327a
Make start-of-line work the same as end-of-line on wrapped lines (jump
...
to real start if at edge of screen). By Micah Cowan.
2010-06-05 15:49:48 +00:00
Micah Cowan
d9c99b83c7
Make double start-of-line do what double end-of-line does, on wrapped lines.
2010-06-05 07:48:35 +00:00
Micah Cowan
d27956f160
Allow C-Space to work correctly once again, and forbid nonsensical combinations such as C-Enter or C-Escape.
2010-06-05 06:27:19 +00:00
Nicholas Marriott
43fa9a9ba6
When the mode-mouse option is on, support dragging to make a selection
...
in copy mode.
Also support the scroll wheel, although xterm strangely does not ignore
it in application mouse mode, causing redraw artifacts when scrolling up
(other terminals appear to be better behaved).
2010-05-31 19:51:29 +00:00
Nicholas Marriott
e1e120de1c
Better to say "command key bindings" since we've just called them
...
command keys.
2010-05-30 19:19:42 +00:00
Nicholas Marriott
7b7397241f
There is no real reason not to list all the key bindings here rather
...
than just a selection.
2010-05-30 19:09:50 +00:00
Nicholas Marriott
e334deb872
+.
2010-05-27 08:29:17 +00:00
Nicholas Marriott
1618f3eae6
Move imsg into libutil and add a man page.
...
Minor bump for libutil.
Previous versions of this diff and man page looked at by various people.
"you should just commit" deraadt
2010-05-26 16:44:32 +00:00
Nicholas Marriott
c47d66f49b
Rename some imsg bits to make namespace collisions less likely buf to
...
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE.
ok henning gilles claudio jacekm deraadt
2010-05-26 13:56:07 +00:00
Nicholas Marriott
1e8faaa217
Don't die if the client has been detached when the job finishes, just
...
don't display the output.
2010-05-25 20:05:25 +00:00
Nicholas Marriott
608eef731a
Fix an out-of-date comment.
2010-05-25 19:47:30 +00:00
Nicholas Marriott
e50dc0745f
+.
2010-05-24 18:21:07 +00:00
Nicholas Marriott
4f5c5b37b8
Pass in the session, rather than the client, to window modes' key()
...
function. We were only ever using the client to find the session anyway.
This allows send-key to work properly for manipulating copy mode from
outside tmux.
From Micah Cowan.
2010-05-23 19:42:19 +00:00
Micah Cowan
f11f71752a
Pass in the session, rather than the client, to window modes' key() function.
...
We were only ever using the client to find the session anyway.
2010-05-22 21:56:04 +00:00
Nicholas Marriott
0ed727a012
Enhance paste-buffer to allow lines to be separated by any string, from
...
Andrea Barisani.
2010-05-19 22:28:14 +00:00
Nicholas Marriott
9e7a5fa5ef
Spacing nits.
2010-05-19 21:49:57 +00:00
Nicholas Marriott
9c01a3d0db
Solaris 9 is missing CMSG_ALIGN and some of the RFC2292 CMSG_*. From
...
Dagobert Michelsen.
2010-05-19 21:40:49 +00:00
Nicholas Marriott
278effd7ea
Solaris 9 doesn't have setenv and unsetenv so add compat versions, based
...
on code from Dagobert Michelsen.
2010-05-19 21:31:39 +00:00
Nicholas Marriott
59c13133de
Fix bad merge, from Romain Francoise.
2010-05-16 17:50:31 +00:00
Nicholas Marriott
41afc38dcc
+.
2010-05-14 19:05:06 +00:00
Nicholas Marriott
d91127958d
Colour+attribute options for status line alerts, from Alex Alexander.
2010-05-14 19:03:09 +00:00
Nicholas Marriott
4af4d12475
Accept (and document) "none" instead of "default" for attributes as it
...
is clearer and avoids confusion with default colours.
2010-05-14 18:56:21 +00:00
Nicholas Marriott
e5f01febd7
Use $OpenBSD$.
2010-05-14 14:41:06 +00:00
Tiago Cunha
0beb31c261
Update.
2010-05-14 14:38:50 +00:00
Tiago Cunha
6694a01861
Sync OpenBSD patchset 698:
...
Catch SIGHUP and terminate if running as a client. This prevents clients
from being left hanging around when, for example, a SSH session is
disconnected.
ok nicm@
2010-05-14 14:35:26 +00:00
Tiago Cunha
9900e28ba8
Sync OpenBSD patchset 697:
...
Identical behaviour to select-prompt can now be obtained with
command-prompt, so remove select-prompt and change ' to be bound to
command-prompt -p index "select-window -t :%%".
2010-05-14 14:33:39 +00:00
Tiago Cunha
fc69b9ccb7
Sync OpenBSD patchset 696:
...
Make signal handler setup/teardown two common functions instead of six,
and reset SIGCHLD after fork to fix problems with some shells. From
Romain Francoise.
2010-05-14 14:30:01 +00:00
Tiago Cunha
d3dd6709bc
Sync OpenBSD patchset 693:
...
Make C-] and other punctuation-based control key combinations work again.
ok nicm
2010-05-14 14:21:07 +00:00
Tiago Cunha
3cded44623
Sync OpenBSD patchset 692:
...
sort options.
2010-05-14 14:19:41 +00:00
Tiago Cunha
50cad52ae6
Sync OpenBSD patchset 691:
...
Make the active pane border have a green foreground instead of
background by default.
2010-05-14 14:18:54 +00:00
Tiago Cunha
701b5bdf61
Sync OpenBSD patchset 688:
...
Add a tiled layout, originally from Liam Bedford a while ago, fixed up
by me.
2010-05-14 14:16:37 +00:00
Nicholas Marriott
4e120c00f7
Use LC_ALL for sed too since apparently some platforms play silly games
...
in other locales.
2010-05-12 19:47:25 +00:00
Nicholas Marriott
7d4588f470
+.
2010-05-12 19:21:15 +00:00
Joel Sing
72d1afa169
Catch SIGHUP and terminate if running as a client. This prevents clients
...
from being left hanging around when, for example, a SSH session is
disconnected.
ok nicm@
2010-05-12 15:05:39 +00:00
Nicholas Marriott
e0f4697e7c
Identical behaviour to select-prompt can now be obtained with
...
command-prompt, so remove select-prompt and change ' to be bound to
command-prompt -p index "select-window -t :%%".
2010-05-05 23:24:23 +00:00
Nicholas Marriott
c4a2fdf15b
Put this back in with the initialisation in the right order.
2010-05-04 17:28:16 +00:00
Nicholas Marriott
af5e0bd15a
Revert last change, it appears to be broken somehow.
2010-05-04 08:48:06 +00:00
Nicholas Marriott
ec1d37b1b2
Make signal handler setup/teardown two common functions instead of six,
...
and reset SIGCHLD after fork to fix problems with some shells. From
Romain Francois.
2010-05-03 16:06:32 +00:00
Ryan McBride
c919139433
Make C-] and other punctuation-based control key combinations work again.
...
ok nicm
2010-05-03 09:38:03 +00:00
Igor Sobrado
fc09ec3025
sort options.
2010-05-02 15:19:35 +00:00
Nicholas Marriott
893be14cf8
+.
2010-04-28 19:08:40 +00:00
Nicholas Marriott
99e54f46c7
Make the active pane border have a green foreground instead of
...
background by default.
2010-04-28 18:22:32 +00:00
Nicholas Marriott
2240199dbf
Fix crash when resizing in copy mode, when cursor can end up outside screen.
...
Reported by Romain Francois, fixed by Micah Cowan.
2010-04-28 18:19:16 +00:00
Micah Cowan
342a47bc77
Avoid crashing in copy-mode during resize, when our history-viewing offset is larger than the new total number of history lines.
2010-04-28 14:29:27 +00:00
Nicholas Marriott
83e1a33ff5
imsg.h does not need sys/tree.h.
...
ok eric
2010-04-27 21:04:04 +00:00
Nicholas Marriott
d529e7e14e
Add a tiled layout, originally from Liam Bedford a while ago, fixed up
...
by me.
2010-04-25 20:28:13 +00:00
Nicholas Marriott
18ed37622e
When converting A-Z into a control character, want to subtract 64 not
...
65... whoops.
2010-04-23 20:33:08 +00:00
Nicholas Marriott
6769115df2
When converting A-Z into a control character, want to subtract 64 not
...
65... whoops.
2010-04-23 14:27:04 +00:00
Nicholas Marriott
ec56ec7920
Use INSTALL so people on Solaris can set it to ginstall.
2010-04-23 07:38:36 +00:00
Nicholas Marriott
0c5a964e63
Support NetBSD 6 which will now have its own terminfo (yay).
2010-04-23 07:29:39 +00:00
Tiago Cunha
c4c542efb9
Sync OpenBSD patchset 686:
...
Mark zombie windows as dead in choose-window list, from Romain Francoise.
2010-04-22 21:51:27 +00:00
Tiago Cunha
2bc150d16d
Sync OpenBSD patchset 685:
...
Rewrite key string conversions to be readable and to work properly for
multiple modifiers.
2010-04-22 21:50:30 +00:00
Tiago Cunha
7163907ab6
Sync OpenBSD patchset 684:
...
Catch SIGCHLD to avoid a zombie, from patrick keshishian.
2010-04-22 21:48:49 +00:00
Nicholas Marriott
261b6b8615
Mark zombie windows as dead in choose-window list, from Romain Francoise.
2010-04-21 21:41:21 +00:00
Nicholas Marriott
02fc1fe0da
Done.
2010-04-21 21:35:07 +00:00
Nicholas Marriott
8e67b07489
Don't set user and group with install, from Nicolas Pinto.
2010-04-21 21:22:06 +00:00
Nicholas Marriott
3ae1b82695
Rewrite key string conversions to be readable and to work properly for
...
multiple modifiers.
2010-04-21 21:17:33 +00:00
Tiago Cunha
0ed80637e7
Sync OpenBSD patchset 683:
...
Fix typo in escape state table leading to fatal() when \033} or \033~
was entered, from Chris Johnsen.
2010-04-18 15:11:47 +00:00
Tiago Cunha
b03418fc6b
Sync OpenBSD patchset 682:
...
If remain-on-exit is set, both the error callback and a SIGCHLD could
destroy the same pane (because the first one doesn't remove it from the
list of panes), causing the pane bufferevent to be freed twice. So don't
free it if the fd has already been set to -1, from Romain Francoise.
2010-04-18 15:10:55 +00:00
Nicholas Marriott
67dd5df876
Catch SIGCHLD to avoid a zombie, from patrick keshishian.
2010-04-18 13:41:29 +00:00
Nicholas Marriott
c0f03afbac
+.
2010-04-18 07:37:09 +00:00
Nicholas Marriott
622593a77f
Fix typo in escape state table leading to fatal() when \033} or \033~
...
was entered, from Chris Johnsen.
2010-04-17 23:31:09 +00:00
Nicholas Marriott
a6d52405a8
If remain-on-exit is set, both the error callback and a SIGCHLD could
...
destroy the same pane (because the first one doesn't remove it from the
list of panes), causing the pane bufferevent to be freed twice. So don't
free it if the fd has already been set to -1, from Romain Francoise.
2010-04-17 23:25:16 +00:00
Nicholas Marriott
842bc2b855
Fix use-after-free of the window link when it is part of a grouped
...
session (and hence could have been recreated), from Micah Cowan.
2010-04-17 23:14:17 +00:00
Tiago Cunha
0646b3caf2
Sync OpenBSD patchset 680:
...
Remove XXX comment and just close received fd if calloc() fails.
If this happens the imsg may no longer be usable as there may be queued
messages, but this is a) already the case with the code now, and b)
would be the case if recvmsg() fails anyway, so we can document that -1
from imsg_read() invalidates the struct imsgbuf.
discussed with and ok eric
2010-04-12 21:45:18 +00:00
Micah Cowan
b2e752b384
Don't try to use a window-link that may have been freed.
...
In the case where a join-pane is performed from within a grouped session,
and the source pane had no siblings in the window (causing the window to
be destroyed), there was an invalid access of the destination window
link (which had been destroyed as part of the group session's
resynchronization with the original session, due to killing the
now-empty source window).
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: cmd-join-pane.c
CVS: ----------------------------------------------------------------------
2010-04-09 07:09:37 +00:00
Nicholas Marriott
08632b4f0a
there can be only one rpathbuf
2010-04-08 07:54:43 +00:00
Nicholas Marriott
a2c86dcbf6
Remove XXX comment and just close received fd if calloc() fails.
...
If this happens the imsg may no longer be usable as there may be queued
messages, but this is a) already the case with the code now, and b)
would be the case if recvmsg() fails anyway, so we can document that -1
from imsg_read() invalidates the struct imsgbuf.
discussed with and ok eric
2010-04-07 18:09:39 +00:00
Nicholas Marriott
10b73b7a11
Sync nit.
2010-04-06 22:08:10 +00:00
Nicholas Marriott
cd0f22b96e
Unbreak. Whoops.
2010-04-06 22:02:52 +00:00
Nicholas Marriott
610056abbe
Man page sync.
2010-04-06 22:02:03 +00:00
Nicholas Marriott
3743238a86
From Bob Beck:
...
rather than using an empty "" as the default window title, put the hostname
of the machine we are running on in there.
makes my many green lines easier to deal with without using fiddly options to
set it.
2010-04-06 22:01:32 +00:00
Nicholas Marriott
531db321e3
-s src-pane.
2010-04-06 21:59:59 +00:00
Nicholas Marriott
642f549e4d
Dead assignment.
2010-04-06 21:59:37 +00:00
Nicholas Marriott
0fc65537a3
Run job commands explicitly in the global enviroment (which can be
...
modified with setenv -g) rather than with the environment tmux started
with.
2010-04-06 21:59:19 +00:00
Nicholas Marriott
091db41bc9
Squash a function that is only called in a callback into the
...
callback function.
2010-04-06 21:58:33 +00:00
Nicholas Marriott
67300e9524
Stupid style nits.
2010-04-06 21:45:36 +00:00
Nicholas Marriott
ac9daf92d7
Merge copy mode and output mode, dropping the latter. Idea and code from
...
Micah Cowan.
2010-04-06 21:35:44 +00:00
Nicholas Marriott
f2a4ef5260
window-more.c is now defunct.
2010-04-06 10:53:41 +00:00
Nicholas Marriott
7dc1720522
+.
2010-04-05 22:28:56 +00:00
Nicholas Marriott
07dcf8610f
FreeBSD kqueue is broken before 8.
2010-04-05 22:28:25 +00:00
Nicholas Marriott
f81190a793
Mention title setting, and the new default.
2010-04-05 17:46:05 +00:00
Micah Cowan
2d74ce1d3a
Merge output (more) and copy modes into one single mode (called copy).
2010-04-05 05:11:44 +00:00
Bob Beck
6704c86301
rather than using an empty "" as the default window title, put the hostname
...
of the machine we are running on in there.
makes my many green lines easier to deal with without using fiddly options to
set it.
ok nicm@
2010-04-04 23:05:15 +00:00
Jason McIntyre
680f920b55
tweak;
2010-04-04 21:23:20 +00:00
Nicholas Marriott
089c33f5be
Should be -s for src pane.
2010-04-04 19:12:20 +00:00
Nicholas Marriott
46d5c14b17
Dead assignment, found with clang.
2010-04-04 19:04:09 +00:00
Nicholas Marriott
b02cd35354
Run job commands explicitly in the global enviroment (which can be
...
modified with setenv -g) rather than with the environment tmux started
with.
2010-04-04 19:02:09 +00:00
Nicholas Marriott
7425122c1c
Squash a function that is only called in a callback into the callback
...
function.
2010-04-04 18:48:37 +00:00
Nicholas Marriott
5879e2a32b
libevent needs librt on Linux, from Aaron Isotton.
2010-04-02 21:26:40 +00:00
Nicholas Marriott
1392fba63d
Don't accept keys with modifiers as input. Fixes crash reported by Brian
...
R Landy.
2010-03-31 18:24:08 +00:00
Nicholas Marriott
56481a46bf
Don't accept keys with modifiers as input. Fixes crash reported by Brian
...
R Landy.
2010-03-31 18:05:14 +00:00
Nicholas Marriott
1c6ab725f5
+.
2010-03-29 18:54:07 +00:00
Nicholas Marriott
4012917302
Nuke unused functions.
2010-03-27 15:12:56 +00:00
Nicholas Marriott
dd7abd9b4c
-a flag to insert a window after an existing one, moving other windows
...
up as necessary.
2010-03-27 15:12:11 +00:00
Nicholas Marriott
41f90bd08f
Don't leak job command in #().
2010-03-27 15:06:40 +00:00
Nicholas Marriott
51c776fe93
+.
2010-03-27 13:43:13 +00:00
Nicholas Marriott
d3d85c3df9
-a flag to insert a window after an existing one, moving other windows
...
up necessary.
2010-03-27 11:46:58 +00:00
Jason McIntyre
d267845cfc
dispense with some wacky escape sequences;
2010-03-26 19:30:40 +00:00
Nicholas Marriott
c550e66e85
Dead functions, lint.
2010-03-22 19:18:46 +00:00
Nicholas Marriott
e16b7b8399
Reset output functions too when changing client after attaching, to
...
avoid crash if a command in a sequence after new/attach causes output.
2010-03-22 19:14:55 +00:00
Nicholas Marriott
9abbe349af
paste-buffer should be per pane, from C. Coutinho.
2010-03-22 19:13:28 +00:00
Nicholas Marriott
509ce7f766
Nuke unused variable.
2010-03-22 19:11:54 +00:00
Nicholas Marriott
0ac6efa6d5
Add vi-style "jump" commands for copy mode, from Micah Cowan.
2010-03-22 19:10:42 +00:00
Nicholas Marriott
6f04866044
Support up, down, left, right movement through panes with -UDLR flags to
...
select-pane.
Also REMOVE the up- and down-pane commands: equivalent behaviour is now
available using -t :.+ and -t :.-.
2010-03-22 19:07:52 +00:00
Nicholas Marriott
021037c419
Accept a full key match (not a partial) even if there is data left in
...
the buffer.
2010-03-22 19:03:52 +00:00
Nicholas Marriott
4baafd8126
New input parser based on http://vt100.net/emu/dec_ansi_parser .
2010-03-22 19:02:54 +00:00
Nicholas Marriott
9382e546df
+.
2010-03-18 21:10:11 +00:00
Nicholas Marriott
659d15786a
Reset output functions too when changing client after attaching.
2010-03-18 21:06:40 +00:00
Nicholas Marriott
2307b91ecb
paste-buffer should be per pane, from C. Coutinho.
2010-03-18 21:02:41 +00:00
Nicholas Marriott
a2c87eb899
Unused variable.
2010-03-16 23:40:14 +00:00
Nicholas Marriott
33a90efc93
Minor Nazi style tweaks to previous, and man page rephrasery.
2010-03-16 17:51:32 +00:00
Micah Cowan
009d8d2ea7
Jump-forward, jump-backward in copy mode, based on vi's F and f commands.
2010-03-16 17:30:58 +00:00
Nicholas Marriott
aa8f9018ea
Support up, down, left, right movement through panes with -UDLR flags to
...
select-pane.
Also remove up- and down-pane: equivalent behaviour is now available
using -t :.+ and -t :.-.
2010-03-15 22:03:38 +00:00
Nicholas Marriott
4de04fac2c
Accept a full key match (not a partial) even if there is data left in
...
the buffer.
2010-03-15 20:44:51 +00:00
Nicholas Marriott
593bcbdd49
+.
2010-03-15 16:09:49 +00:00
Nicholas Marriott
9f5b9ba0d6
New input parser based on http://vt100.net/emu/dec_ansi_parser .
2010-03-15 12:51:23 +00:00
Nicholas Marriott
b1a3090877
+ an item.
2010-03-14 23:46:52 +00:00
Nicholas Marriott
4271320bb7
Quick prioritise for 1.3.
2010-03-14 23:46:09 +00:00
Nicholas Marriott
48dd72005e
Fix a use-after-free when cancelling copy mode, or trying to repeat cancel.
...
ok kettenis
2010-03-14 23:31:23 +00:00
Nicholas Marriott
51eab54102
Avoid use-after-free when cancelling copy mode.
2010-03-14 23:17:59 +00:00
Nicholas Marriott
51c135ed73
+.
2010-03-10 23:32:49 +00:00
Nicholas Marriott
f6d36e60cf
Mention dependencies.
2010-03-10 22:13:17 +00:00
Tiago Cunha
38bc7e87c5
Working on 1.3.
2010-03-10 15:44:13 +00:00
Tiago Cunha
95c6d9d31d
Done.
2010-03-10 15:18:49 +00:00
Tiago Cunha
3d85d2be6a
Update CHANGES, and NOTES for the 1.2 release.
2010-03-10 15:18:11 +00:00
Tiago Cunha
6681db7af0
Bump VERSION.
2010-03-10 15:16:19 +00:00
Tiago Cunha
b90e869b8b
Prepare the tree for the 1.2 release.
2010-03-10 15:15:33 +00:00
Nicholas Marriott
de64913786
Plug memory leak, from Gregory Thiemonge.
2010-03-10 13:41:13 +00:00
Tiago Cunha
b34c8f5f39
Sync OpenBSD patchset 658:
...
Permit keys in copy mode to be prefixed by a repeat count, entered with
[1-9] in vi mode, or M-[1-9] in emacs mode.
From Micah Cowan, tweaked a little by me.
2010-03-08 15:02:07 +00:00
Tiago Cunha
70f5384d8f
Sync OpenBSD patchset 657:
...
Extend the end-of-line key so that in normal mode a second press moves
the cursor to the end of a wrapped line (if present) and in rectangle
mode it toggles between the end of the text and the last cell on the
line.
From Micah Cowan.
2010-03-08 14:56:17 +00:00
Tiago Cunha
a2cd71ff03
Sync OpenBSD patchset 656:
...
Check for colour and attribute modifications early so the translated
values can be stored in the cached terminal attributes rather than the
requested (untranslated) values. Prevents tmux clearing and setting the
attributes for every character when using aixterm colours.
2010-03-08 14:53:49 +00:00
Nicholas Marriott
990971f486
+.
2010-03-06 13:24:35 +00:00
Nicholas Marriott
7bc3f5dd8a
Permit keys in copy mode to be prefixed by a repeat count, entered with
...
[1-9] in vi mode, or M-[1-9] in emacs mode.
From Micah Cowan, tweaked a little by me.
2010-03-02 00:32:41 +00:00
Nicholas Marriott
ce3fff4dbb
+.
2010-03-01 23:56:46 +00:00
Nicholas Marriott
56a33b157b
Extend the end-of-line key so that in normal mode a second press moves
...
the cursor to the end of a wrapped line (if present) and in rectangle
mode it toggles between the end of the text and the last cell on the
line.
From Micah Cowan.
2010-03-01 23:53:27 +00:00
Nicholas Marriott
1533930c11
Some done, some tidying, some added.
2010-03-01 22:56:36 +00:00
Nicholas Marriott
c7046b9a0c
Check for colour and attribute modifications early so the translated
...
values can be stored in the cached terminal attributes rather than the
requested (untranslated) values. Prevents tmux clearing and setting the
attributes for every character when using aixterm colours.
2010-03-01 22:44:31 +00:00
Nicholas Marriott
14a5071ce0
+ and -.
2010-03-01 22:16:07 +00:00
Tiago Cunha
c5fefd51af
Sync OpenBSD patchset 655:
...
Typo fix from Tim van der Molen.
2010-02-26 13:35:04 +00:00
Tiago Cunha
862b89b78b
Sync OpenBSD patchset 654:
...
Don't set the terminal to nonblocking on detach until we have finished with it
entirely.
2010-02-26 13:34:15 +00:00
Tiago Cunha
5920a55a87
Update.
2010-02-26 13:33:22 +00:00
Tiago Cunha
b7d5b911ac
Sync OpenBSD patchset 653:
...
Option to set the characters considered word separators in copy mode, from
Micah Cowan.
2010-02-26 13:31:39 +00:00
Tiago Cunha
8da8bc477f
Sync OpenBSD patchset 652:
...
In load-buffer, read until EOF rather than using stat() and reading a fixed
size. Allows use of FIFOs and whatnot. From Tiago Cunha, idea from Fulvio
Ciriaco.
2010-02-26 13:30:07 +00:00
Tiago Cunha
a0e7539743
Sync OpenBSD patchset 651:
...
Another copy mode fix from Micah Cowan: in rectangle copy mode, the cursor
should not wrap at the end of the text on the line but should be allowed to
move freely.
2010-02-26 13:29:25 +00:00
Tiago Cunha
f7ae833b6d
Sync OpenBSD patchset 650:
...
Display -t argument to new-session, from Tiago Cunha.
2010-02-26 13:28:15 +00:00
Tiago Cunha
8dcb62cd87
Sync OpenBSD patchset 649:
...
have_arg matches buf so it is no longer necessary, spotted by Tim van der
Molen.
2010-02-26 13:27:38 +00:00
Tiago Cunha
ecac081a55
Sync OpenBSD patchset 648:
...
copy mode uses the real screen as backing and if it is updated while copying,
strange things can happen. So, freeze reading from the pty while in copy mode.
2010-02-26 13:26:44 +00:00
Nicholas Marriott
6ac3343617
Typo fix from Tim van der Molen.
2010-02-24 19:13:38 +00:00
Nicholas Marriott
f1dd95650b
Don't set the terminal to nonblocking on detach until we have finished with it
...
entirely.
2010-02-24 19:08:39 +00:00
Nicholas Marriott
b4c2710bf7
+.
2010-02-24 19:03:36 +00:00
Nicholas Marriott
7da60e78c6
+
2010-02-24 00:55:20 +00:00
Nicholas Marriott
6767072c9d
Option to set the characters considered word separators in copy mode, from
...
Micah Cowan.
2010-02-22 20:41:16 +00:00
Nicholas Marriott
efbcf8747d
In load-buffer, read until EOF rather than using stat() and reading a fixed
...
size. Allows use of FIFOs and whatnot. From Tiago Cunha, idea from Fulvio
Ciriaco.
2010-02-22 20:33:12 +00:00
Nicholas Marriott
73b8c3ebf3
Another copy mode fix from Micah Cowan: in rectangle copy mode, the cursor
...
should not wrap at the end of the text on the line but should be allowed to
move freely.
2010-02-22 20:28:21 +00:00
Nicholas Marriott
25211020bf
Display -t argument to new-session, from Tiago Cunha.
2010-02-22 20:19:16 +00:00
Nicholas Marriott
24634b6281
have_arg matches buf so it is no longer necessary, spotted by Tim van der
...
Molen.
2010-02-19 17:14:23 +00:00
Nicholas Marriott
3a89d1ef7f
copy mode uses the real screen as backing and if it is updated while copying,
...
strange things can happen. So, freeze reading from the pty while in copy mode.
2010-02-19 00:03:21 +00:00
Tiago Cunha
f7646d2738
Sync OpenBSD patchset 647:
...
Make next-word stop at beginning of word even if it is at the start of the
line, from Micah Cowan.
2010-02-18 12:38:24 +00:00
Tiago Cunha
3f44ab2f0f
Sync OpenBSD patchset 646:
...
Man page additions/improvements, thanks to Robin Lee Powell.
2010-02-18 12:37:30 +00:00
Tiago Cunha
a9dacf10ce
Sync OpenBSD patchset 645:
...
Don't strip add newline if only copying part of wrapped line. Problem spotted
by and fix from Micah Cowan.
2010-02-18 12:36:18 +00:00
Tiago Cunha
66c38d8c5d
Sync OpenBSD patchset 644:
...
Add "N" key to search the opposite way from the last search (reverse of "n"),
from Micah Cowan.
2010-02-18 12:35:16 +00:00
Tiago Cunha
736764b560
Sync OpenBSD patchset 643:
...
Clarify default status-right, from Seth Wright.
2010-02-18 12:33:52 +00:00
Nicholas Marriott
a61b8a2033
Make next-word stop at beginning of word even if it is at the start of the
...
line, from Micah Cowan.
2010-02-17 21:27:18 +00:00
Nicholas Marriott
a00a0cd0c1
+.
2010-02-17 21:17:24 +00:00
Nicholas Marriott
c164f5886f
Man page additions/improvements, thanks to Robin Lee Powell.
2010-02-17 21:12:06 +00:00
Nicholas Marriott
d285f7fd4d
Don't strip add newline if only copying part of wrapped line. Problem spotted
...
by and fix from Micah Cowan.
2010-02-17 20:58:24 +00:00
Nicholas Marriott
3d99e261a1
+.
2010-02-11 21:16:11 +00:00
Nicholas Marriott
44ded35d5d
Add "N" key to search the opposite way from the last search (reverse of "n"),
...
from Micah Cowan.
2010-02-11 20:39:40 +00:00
Nicholas Marriott
f429057072
Clarify default status-right, from Seth Wright.
2010-02-10 19:17:27 +00:00
Tiago Cunha
2e6142ab84
Update.
2010-02-08 18:33:21 +00:00
Tiago Cunha
10abdd97cf
Sync OpenBSD patchset 642:
...
Add an option to disable the smcup/rmcup alternate screen behaviour inside
tmux. From clemens fischer.
2010-02-08 18:32:34 +00:00
Tiago Cunha
c3c65c32a5
Sync OpenBSD patchset 641:
...
next-layout is bound to Space not C-Space.
2010-02-08 18:31:07 +00:00
Tiago Cunha
36a80b2cd6
Sync OpenBSD patchset 640:
...
Use the array.h code for the causes list.
2010-02-08 18:29:32 +00:00
Tiago Cunha
c6ba781379
Sync OpenBSD patchset 639:
...
Support attaching a client read-only with a new -r flag to the attach-session
command.
2010-02-08 18:27:34 +00:00
Tiago Cunha
9b57743cca
Sync OpenBSD patchset 638:
...
Change nested check to compare server socket path rather than just assuming
that if $TMUX is set it is nested. From Micah Cowan.
2010-02-08 18:25:04 +00:00
Tiago Cunha
ac8aa0bc0f
Sync OpenBSD patchset 637:
...
Clean up $TMUX parsing, from Micah Cowan, tweaked by me.
2010-02-08 18:23:48 +00:00
Tiago Cunha
3c37b09272
Sync OpenBSD patchset 636:
...
Rectangle copy support, from Robin Lee Powell.
2010-02-08 18:13:17 +00:00
Tiago Cunha
a32d095c97
Sync OpenBSD patchset 635:
...
Instead of bailing out on the first configuration file error, carry on,
collecting all the errors, then start with the active window in more mode
displaying them.
2010-02-08 18:10:07 +00:00
Nicholas Marriott
11dedde511
Add an option to disable the smcup/rmcup alternate screen behaviour inside
...
tmux. From clemens fischer.
2010-02-08 00:14:38 +00:00
Nicholas Marriott
2dc74f2e4d
next-layout is bound to Space not C-Space.
2010-02-07 20:33:27 +00:00
Nicholas Marriott
4651180503
Use the array.h code for the causes list.
2010-02-06 23:22:27 +00:00
Nicholas Marriott
bb53c20c18
Support attaching a client read-only with a new -r flag to the attach-session
...
command.
2010-02-06 22:55:31 +00:00
Nicholas Marriott
0a86d3579e
Change nested check to compare server socket path rather than just assuming
...
that if $TMUX is set it is nested. From Micah Cowan.
2010-02-06 18:47:41 +00:00
Nicholas Marriott
4a5017d1d8
Clean up $TMUX parsing, from Micah Cowan, tweaked by me.
2010-02-06 18:29:15 +00:00
Nicholas Marriott
3ef3802629
Rectangle copy support, from Robin Lee Powell.
2010-02-06 17:35:01 +00:00
Nicholas Marriott
8aba77b7be
Instead of bailing out on the first configuration file error, carry on,
...
collecting all the errors, then start with the active window in more mode
displaying them.
2010-02-06 17:15:33 +00:00
Tiago Cunha
676d0809d2
Update.
2010-02-05 02:09:27 +00:00
Tiago Cunha
fa5be75396
Sync OpenBSD patchset 634:
...
vi-style B, W and E keys in copy mode to navigate between words treating only
spaces as word separators. Also add . to the list of word separators for
standard word navigation.
From Micah Cowan, tweaked slightly by me.
2010-02-05 01:34:08 +00:00
Tiago Cunha
d398bbc53b
Sync OpenBSD patchset 633:
...
Read the path from $TMUX if it is present and -L and -S are not given. Based on
a diff from Micah Cowan.
2010-02-05 01:32:10 +00:00
Tiago Cunha
82ba7e69ec
Sync OpenBSD patchset 632:
...
Option to display the active pane in a different colour with the display-panes
command. From Paul Hoffman, thanks.
2010-02-05 01:31:06 +00:00
Tiago Cunha
23fb261b85
Sync OpenBSD patchset 631:
...
Fix divide by zero on small windows with main-* layouts.
2010-02-05 01:29:04 +00:00
Nicholas Marriott
0d5542e65e
+.
2010-02-04 21:01:59 +00:00
Nicholas Marriott
5e6a7c85cc
vi-style B, W and E keys in copy mode to navigate between words treating only
...
spaces as word separators. Also add . to the list of word separators for
standard word navigation.
From Micah Cowan, tweaked slightly by me.
2010-02-04 20:00:26 +00:00
Nicholas Marriott
e7c6f81016
Read the path from $TMUX if it is present and -L and -S are not given. Based on
...
a diff from Micah Cowan.
2010-02-04 18:27:06 +00:00
Nicholas Marriott
604b02cfaa
Option to display the active pane in a different colour with the display-panes
...
command. From Paul Hoffman, thanks.
2010-02-04 18:20:16 +00:00
Nicholas Marriott
d6b5b644b8
+.
2010-02-03 23:47:22 +00:00
Nicholas Marriott
d6bd9c0e7f
Fix divide by zero on small windows with main-* layouts.
2010-02-03 22:24:34 +00:00
Tiago Cunha
b7758a9932
Make it detect multiple options with a single leading `-' (eg set -gw).
2010-02-03 00:21:48 +00:00
Tiago Cunha
ebcc0ebd2d
Sync OpenBSD patchset 630:
...
If redrawing line 0 of the screen onto the tty, there can't be a wrap flag on
the previous line, so move the cursor. Fixes status line redraw issues when
resizing in choose mode and hopefully at other times as well.
2010-02-02 23:56:25 +00:00
Tiago Cunha
c4724c7861
Sync OpenBSD patchset 629:
...
Add scroll-up/scroll-down for choose/more mode, from Micah Cowan.
2010-02-02 23:55:21 +00:00
Tiago Cunha
998d76c6b4
Sync OpenBSD patchset 628:
...
Remove unnecessary comparison, pointed out by Tiago Cunha.
2010-02-02 23:53:36 +00:00
Tiago Cunha
495a3056e9
Sync OpenBSD patchset 626:
...
Don't stop parsing command sequences when a command requests the client to
stick around (attach-session/new-session).
2010-02-02 23:51:04 +00:00
Tiago Cunha
3116e3ce21
Sync OpenBSD patchset 625:
...
Ignore SIGHUP as well.
2010-02-02 23:50:01 +00:00
Nicholas Marriott
4e28426c0d
Old comment.
2010-02-02 21:34:16 +00:00
Nicholas Marriott
9ffe549ab1
If redrawing line 0 of the screen onto the tty, there can't be a wrap flag on
...
the previous line, so move the cursor. Fixes status line redraw issues when
resizing in choose mode and hopefully at other times as well.
2010-02-01 23:06:24 +00:00
Nicholas Marriott
06ce9da32a
Add scroll-up/scroll-down for choose/more mode, from Micah Cowan.
2010-02-01 22:15:51 +00:00
Nicholas Marriott
c29bfd2ff3
Remove unnecessary comparison, pointed out by Tiago Cunha.
2010-01-31 18:47:03 +00:00
Nicholas Marriott
383c682563
Fix DPADD, from Brad.
2010-01-31 11:11:28 +00:00
Nicholas Marriott
9ea05dc2ba
+.
2010-01-30 23:53:07 +00:00
Nicholas Marriott
8a37a1cc2d
Don't stop parsing command sequences when a command requests the client to
...
stick around (attach-session/new-session).
2010-01-30 19:08:47 +00:00
Nicholas Marriott
65c9004550
Ignore SIGHUP as well.
2010-01-30 19:05:18 +00:00
Tiago Cunha
72dd70b0c0
Sync OpenBSD patchset 624:
...
Typo, from Micah Cowan.
2010-01-28 22:48:04 +00:00
Tiago Cunha
5ef8689328
Sync OpenBSD patchset 623:
...
Actually bind the new key to e.
2010-01-28 22:47:21 +00:00
Tiago Cunha
95dfa950b8
Sync OpenBSD patchset 622:
...
Calculate offset correctly, fixes incorrect offset and prevents crash when
status-left is empty. From Micah Cowan.
2010-01-28 22:46:44 +00:00
Tiago Cunha
735cfaf09a
Sync OpenBSD patchset 621:
...
Alter next-word to have vi-like movement behaviour, and add next-word-end with
the existing emacs behaviour. From Micah Cowan.
2010-01-28 22:45:57 +00:00
Tiago Cunha
0e320881d5
Sync OpenBSD patchset 620:
...
Actually use the copy made when no newline is found, from martynas@.
2010-01-28 22:44:16 +00:00
Tiago Cunha
1a6cb5fd54
Sync OpenBSD patchset 619:
...
Hugely simplify window_copy_cursor_next_word, which was way overcomplicated.
2010-01-28 22:43:24 +00:00
Tiago Cunha
22dd0beaa0
Sync OpenBSD patchset 618:
...
Update the selection properly after goto line or searching.
2010-01-28 22:42:36 +00:00
Tiago Cunha
c153a43299
Sync OpenBSD patchset 617:
...
Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me.
2010-01-28 22:41:45 +00:00
Nicholas Marriott
6abd984608
Typo, from Micah Cowan.
2010-01-28 19:09:12 +00:00
Nicholas Marriott
f941879c15
Actually bind the new key to e.
2010-01-27 23:26:14 +00:00
Nicholas Marriott
05213e4c8c
Calculate offset correctly, fixes incorrect offset and prevents crash when
...
status-left is empty. From Micah Cowan.
2010-01-27 20:26:42 +00:00
Nicholas Marriott
3e2cc2d2c4
Alter next-word to have vi-like movement behaviour, and add next-word-end with
...
the existing emacs behaviour. From Micah Cowan.
2010-01-27 20:18:52 +00:00
Nicholas Marriott
ba6dedbbbd
Actually use the copy made when no newline is found, from martynas@.
2010-01-26 21:36:53 +00:00
Nicholas Marriott
f26312ffbf
Hugely simplify window_copy_cursor_next_word, which was way overcomplicated.
2010-01-25 22:34:11 +00:00
Nicholas Marriott
e31480cf44
Update the selection properly after goto line or searching.
2010-01-25 21:37:40 +00:00
Nicholas Marriott
1e5a94fdb5
Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me.
2010-01-25 21:33:39 +00:00
Nicholas Marriott
0b05e6d8cb
+.
2010-01-25 20:38:50 +00:00
Tiago Cunha
2305a27308
Sync OpenBSD patchset 616:
...
Redraw properly when scrolling backward and the cursor is on the last
line. Based on a fix from Micah Cowan.
2010-01-25 17:14:42 +00:00
Tiago Cunha
391b209008
Sync OpenBSD patchset 615:
...
When a window is destroyed, remove all links to it from each session rather
than just the first. Reported by Robin Lee Powell.
2010-01-25 17:13:43 +00:00
Tiago Cunha
c744964cd9
Sync OpenBSD patchset 614:
...
Don't leak if arguments appear multiple times, from Tiago Cunha.
2010-01-25 17:12:44 +00:00
Tiago Cunha
05e5bc7882
Sync OpenBSD patchset 613:
...
Use C-e and C-y for scrolling in vi mode, from Micah Cowan.
2010-01-25 17:11:42 +00:00
Nicholas Marriott
75e13c8977
Redraw properly when scrolling backward and the cursor is on the last
...
line. Based on a fix from Micah Cowan.
2010-01-24 21:05:12 +00:00
Nicholas Marriott
62822cc78d
+.
2010-01-24 20:45:26 +00:00
Nicholas Marriott
b9ade6e6bb
When a window is destroyed, remove all links to it from each session rather
...
than just the first. Reported by Robin Lee Powell.
2010-01-23 21:07:31 +00:00
Nicholas Marriott
c0d3e4315c
Don't leak if arguments appear multiple times, from Tiago Cunha.
2010-01-23 17:50:56 +00:00
Nicholas Marriott
8865eb2866
Use C-e and C-y for scrolling in vi mode, from Micah Cowan.
2010-01-23 17:49:21 +00:00
Nicholas Marriott
9a0571ff32
+.
2010-01-23 11:07:25 +00:00
Tiago Cunha
4d477aaeef
Sync OpenBSD patchset 612:
...
Don't leak line, from Tiago Cunha.
2010-01-22 17:29:19 +00:00
Tiago Cunha
64c26cf8ce
Sync OpenBSD patchset 611:
...
Permit !, + and - to be used for window targets to specify last window (!), or
next and previous window by number (+ and -).
Also tidy an if in cmd-new-window.c.
2010-01-22 17:28:34 +00:00
Nicholas Marriott
097a501414
Don't leak line, from Tiago Cunha.
2010-01-20 18:30:20 +00:00
Nicholas Marriott
7d75dbbdda
Permit !, + and - to be used for window targets to specify last window (!), or
...
next and previous window by number (+ and -).
Also tidy an if in cmd-new-window.c.
2010-01-19 21:27:47 +00:00
Nicholas Marriott
dcfa183cfe
XHTML validation issues, from Mike Putnam.
2010-01-19 18:17:23 +00:00
Tiago Cunha
21dc792395
As of release 1.0, the server automatically sets the status-utf8, and utf8
...
options if started with -u.
2010-01-19 00:55:56 +00:00
Tiago Cunha
f7cb814613
Done.
2010-01-19 00:51:03 +00:00
Tiago Cunha
04b4ce8117
Sync OpenBSD patchset 610:
...
Missing Pp, from Tiago Cunha.
2010-01-19 00:46:30 +00:00
Nicholas Marriott
d5fb69b904
+.
2010-01-18 19:44:01 +00:00
Nicholas Marriott
f569950664
Missing Pp, from Tiago Cunha.
2010-01-18 19:16:04 +00:00
Tiago Cunha
f772e1d362
Sync OpenBSD patchset 609:
...
Document swap-pane -d.
2010-01-17 19:02:47 +00:00
Tiago Cunha
2a2e24a177
Sync OpenBSD patchset 608:
...
Permit S- prefix on keys for shift. Relatively few terminals support this
(basically xterm only) and even fewer have them in terminfo (kLFT2 and kRIT2).
2010-01-17 19:01:27 +00:00
Tiago Cunha
dfc2ad1e5f
Sync OpenBSD patchset 607:
...
key should be an int not a char.
2010-01-17 19:00:05 +00:00
Nicholas Marriott
38ee1e66aa
Add vim-style key bindings file from Daniel Thau.
2010-01-17 16:24:09 +00:00
Nicholas Marriott
796ae34f2f
++.
2010-01-14 22:13:00 +00:00
Nicholas Marriott
a4ebd9af33
Document swap-pane -d.
2010-01-14 22:10:47 +00:00
Nicholas Marriott
5483a460fd
+.
2010-01-14 22:10:23 +00:00
Nicholas Marriott
d5d0a36f66
Permit S- prefix on keys for shift. Relatively few terminals support this
...
(basically xterm only) and even fewer have them in terminfo (kLFT2 and kRIT2).
2010-01-14 21:53:40 +00:00
Nicholas Marriott
8f301ed62d
key should be an int not a char.
2010-01-11 23:46:22 +00:00
Nicholas Marriott
3abd4ca9a7
+OpenBSD FAQ.
2010-01-11 19:30:24 +00:00
Nicholas Marriott
b4e50303ab
New screenshot.
2010-01-11 19:21:27 +00:00
Nicholas Marriott
4aa8284b39
s/new-window/new-session/
2010-01-10 00:14:34 +00:00
Nicholas Marriott
3211bc5f23
$OpenBSD$ not $Id$
2010-01-08 17:44:27 +00:00
Tiago Cunha
22101e3fe3
Sync OpenBSD patchset 605:
...
mouse-select-pane has to redraw the borders now too.
2010-01-08 16:35:38 +00:00
Tiago Cunha
a339427e45
Update.
2010-01-08 16:34:49 +00:00
Tiago Cunha
7fdb647e19
Do not include paths.h, since it's OS-dependent.
2010-01-08 16:34:17 +00:00
Tiago Cunha
da194cc435
Sync OpenBSD patchset 604:
...
New command, join-pane, to split and move an existing pane into the space (like
splitw then movep, or the reverse of breakp).
2010-01-08 16:31:35 +00:00
Tiago Cunha
f5dd79a01a
Sync OpenBSD patchset 603:
...
Fix this properly.
2010-01-08 16:28:04 +00:00
Tiago Cunha
4a6191c5d1
Sync OpenBSD patchset 602:
...
Don't return the root cell if the string doesn't match.
2010-01-08 16:25:50 +00:00
Tiago Cunha
8212e76291
Sync OpenBSD patchset 601:
...
Use the specified pane for size calculations. Doh.
2010-01-08 16:24:21 +00:00
Tiago Cunha
91b7db766c
Sync OpenBSD patchset 600:
...
Change split-window to accept a pane target (it should be split-pane but
renaming the command would be annoying).
2010-01-08 16:23:38 +00:00
Tiago Cunha
7c3d4e35d7
Sync OpenBSD patchset 599:
...
Correctly clear 256-colour flag for aixterm colours.
2010-01-08 16:22:02 +00:00
Nicholas Marriott
6789088dce
mouse-select-pane has to redraw the borders now too.
2010-01-08 09:14:15 +00:00
Nicholas Marriott
6a45fab608
New command, join-pane, to split and move an existing pane into the space (like
...
splitw then movep, or the reverse of breakp).
2010-01-07 20:52:18 +00:00
Nicholas Marriott
519c6fc7e7
Fix this properly.
2010-01-07 20:30:02 +00:00
Nicholas Marriott
ac46e87685
Don't return the root cell if the string doesn't match.
2010-01-07 20:28:01 +00:00
Nicholas Marriott
526bb6f3e9
Use the specified pane for size calculations. Doh.
2010-01-07 20:02:01 +00:00
Nicholas Marriott
462a11301a
Change split-window to accept a pane target (it should be split-pane but
...
renaming the command would be annoying).
2010-01-07 19:47:10 +00:00
Nicholas Marriott
ad8509f361
Correctly clear 256-colour flag for aixterm colours.
2010-01-06 23:13:52 +00:00
Tiago Cunha
4d8d70a846
Sync OpenBSD patchset 598:
...
Fix selection behaviour when the cursor is moved backwards (ie so the selection
start is after the end).
2010-01-05 23:54:53 +00:00
Tiago Cunha
b8bc525afe
Update.
2010-01-05 23:54:00 +00:00
Tiago Cunha
106011aa53
Sync OpenBSD patchset 597:
...
Options to set the colour of the pane borders, with different colours for the
active pane.
2010-01-05 23:52:37 +00:00
Tiago Cunha
97c40b1f37
Sync OpenBSD patchset 596:
...
Use the target print function for copy-mode, spotted by Tiago Cunha.
2010-01-05 23:50:22 +00:00
Tiago Cunha
027f5310b4
Sync OpenBSD patchset 595:
...
Use tcflush(3) instead of TIOCFLUSH, from Ed Schouten.
2010-01-05 23:49:24 +00:00
Nicholas Marriott
4b2e459062
+.
2010-01-03 17:15:57 +00:00
Nicholas Marriott
739b937b74
Fix selection behaviour when the cursor is moved backwards (ie so the selection
...
start is after the end).
2010-01-03 17:12:04 +00:00
Nicholas Marriott
7e4f8b45b6
Options to set the colour of the pane borders, with different colours for the
...
active pane.
2010-01-03 12:51:05 +00:00
Nicholas Marriott
121ba57b55
Use the target print function for copy-mode, spotted by Tiago Cunha.
2010-01-02 22:50:02 +00:00
Nicholas Marriott
13fbec2586
+.
2010-01-02 17:32:35 +00:00
Nicholas Marriott
9ee979167a
Use tcflush(3) instead of TIOCFLUSH, from Ed Schouten.
2010-01-01 14:29:18 +00:00
Tiago Cunha
71e6b4d617
Sync OpenBSD patchset 594:
...
Fix the logic so that transition from a 256 colour to default works properly.
2009-12-26 23:50:15 +00:00
Tiago Cunha
51a284e056
Sync OpenBSD patchset 593:
...
Nuke some stray debugging.
2009-12-26 23:49:27 +00:00
Tiago Cunha
3cc7f2e191
Sync OpenBSD patchset 592:
...
Use sysctl() KERN_PROC2 instead of KERN_PROC, as the latter's ABI
is sensitive to changes in struct proc.
fixes for warnings and ok nicm@
2009-12-26 23:48:37 +00:00
Tiago Cunha
f81b3ddf94
Sync OpenBSD patchset 591:
...
Fix a couple of problems with grouped sessions reported by danh: redraw
properly and choose the correct last window after a window is killed.
2009-12-26 23:45:21 +00:00
Nicholas Marriott
a775107f5f
Fix the logic so that transition from a 256 colour to default works properly.
2009-12-26 11:02:32 +00:00
Nicholas Marriott
cd9b1b1fd3
Nuke some stray debugging.
2009-12-26 10:39:02 +00:00
Nicholas Marriott
e447088a8a
+.
2009-12-26 10:21:34 +00:00
Philip Guenther
a3715e7867
Use sysctl() KERN_PROC2 instead of KERN_PROC, as the latter's ABI
...
is sensitive to changes in struct proc.
fixes for warnings and ok nicm@
2009-12-24 22:29:15 +00:00
Nicholas Marriott
ad2767c7fb
+.
2009-12-22 20:59:53 +00:00
Nicholas Marriott
4feee126b8
Fix a couple of problems with grouped sessions reported by danh: redraw
...
properly and choose the correct last window after a window is killed.
2009-12-22 10:20:08 +00:00
Tiago Cunha
9fea75149a
Sync OpenBSD patchset 590:
...
Allow keys to be replaced and reorder the table so that terminfo-defined keys
(or terminal-overrides) take precedence over internally defined.
2009-12-18 18:57:00 +00:00
Nicholas Marriott
f4b9b84190
FreeBSD 6.x has a bug and crashes in del_curterm, so ifdef it out on that
...
platform.
2009-12-18 07:42:30 +00:00
Nicholas Marriott
19ea306606
Allow keys to be replaced and reorder the table so that terminfo-defined keys
...
(or terminal-overrides) take precedence over internally defined.
2009-12-17 17:39:56 +00:00
Nicholas Marriott
f9e513895c
Add note about TERM, add putty Ctrl entry.
2009-12-17 10:00:15 +00:00
Tiago Cunha
99075aaa72
Sync OpenBSD patchset 589:
...
Pass through the aixterm bright colours if the terminal supports them (>= 16
colours).
2009-12-16 01:13:09 +00:00
Tiago Cunha
de15f2b567
Update.
2009-12-16 01:11:09 +00:00
Tiago Cunha
6f578a434b
Sync OpenBSD patchset 588:
...
Add server options to completion as well.
2009-12-16 01:10:36 +00:00
Tiago Cunha
90d40e27da
Sync OpenBSD patchset 587:
...
New server option, escape-time, to set the timeout used to detect if escapes
are alone or part of a function key or meta sequence.
2009-12-16 01:09:01 +00:00
Nicholas Marriott
0dda866679
Pass through the aixterm bright colours if the terminal supports them (>= 16
...
colours).
2009-12-14 21:33:38 +00:00
Nicholas Marriott
84d2e6c8a0
Add server options to completion as well.
2009-12-14 10:47:11 +00:00
Nicholas Marriott
30962cb200
New server option, escape-time, to set the timeout used to detect if escapes
...
are alone or part of a function key or meta sequence.
2009-12-14 10:43:41 +00:00
Nicholas Marriott
ef3e483a0d
+.
2009-12-13 15:47:16 +00:00
Nicholas Marriott
fcbf4ea2c0
Tweak text slightly.
2009-12-12 09:54:42 +00:00
Nicholas Marriott
243c63f867
FAQ about grouped sessions.
2009-12-12 09:54:02 +00:00
Tiago Cunha
7459be544e
Sync OpenBSD patchset 586:
...
Use quiet variable, and add missing sentinel to options array.
2009-12-12 01:01:11 +00:00
Nicholas Marriott
b70be285b7
Look in /opt/blah on OS X, from simmel.
2009-12-11 20:08:18 +00:00
Nicholas Marriott
3f58cbaae9
Use quiet variable, and add missing sentinel to options array.
2009-12-11 13:58:48 +00:00
Tiago Cunha
dac1d365c0
Update.
2009-12-10 17:16:31 +00:00
Tiago Cunha
dcdd2fb094
Sync OpenBSD patchset 585:
...
Add "server options" which are server-wide and not bound to a session or
window. Set and displayed with "set -s" and "show -s".
Currently the only option is "quiet" (like command-line -q, allowing it to be
set from .tmux.conf), but others will come along.
2009-12-10 16:59:02 +00:00
Tiago Cunha
328861e330
Sync OpenBSD patchset 584:
...
Permit panes to be referred to as "top", "bottom", "top-left" etc, if the right
pane can be identified.
2009-12-10 16:52:58 +00:00
Nicholas Marriott
a4c9a80dac
Add "server options" which are server-wide and not bound to a session or
...
window. Set and displayed with "set -s" and "show -s".
Currently the only option is "quiet" (like command-line -q, allowing it to be
set from .tmux.conf), but others will come along.
2009-12-10 09:16:52 +00:00
Nicholas Marriott
6311bd119e
Permit panes to be referred to as "top", "bottom", "top-left" etc, if the right
...
pane can be identified.
2009-12-08 07:49:31 +00:00
Tiago Cunha
39b1cdbdb9
Sync OpenBSD patchset 583:
...
vte is buggy and doesn't home the cursor after changing the scroll
region. Several people are hitting this, so add a workaround.
2009-12-04 22:17:26 +00:00
Tiago Cunha
3db559cf5a
Sync OpenBSD patchset 582:
...
Wrap at 80 columns.
2009-12-04 22:16:15 +00:00
Tiago Cunha
cc094fdfe6
Sync OpenBSD patchset 581:
...
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying
colours...
2009-12-04 22:14:47 +00:00
Tiago Cunha
1caa73afb4
Sync OpenBSD patchset 580:
...
Eliminate duplicate code and ease the passage for server-wide options by adding
a -w flag to set-option and show-options and making setw and showw aliases to
set -w and show -w.
Note: setw and showw are still there, but now aliases for set -w and show -w.
2009-12-04 22:11:23 +00:00
Tiago Cunha
ddb5bb80fa
Sync OpenBSD patchset 579:
...
Reflect the keypad mode of the application so that numlock works.
2009-12-04 22:05:52 +00:00
Tiago Cunha
4ba8fce7ea
Sync OpenBSD patchset 578:
...
Close the pane if the process died due to a signal, not just if it exited
normally.
2009-12-04 22:04:55 +00:00
Nicholas Marriott
796eb522ac
vte is buggy and doesn't home the cursor after changing the scroll
...
region. Several people are hitting this, so add a workaround.
2009-12-04 11:01:29 +00:00
Nicholas Marriott
e755475475
Wrap at 80 columns.
2009-12-03 22:54:34 +00:00
Nicholas Marriott
15a64b805e
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
...
time now I've configured emacs to make them displayed in really annoying
colours...
2009-12-03 22:50:09 +00:00
Nicholas Marriott
6c9862662f
Eliminate duplicate code and ease the passage for server-wide options by adding
...
a -w flag to set-option and show-options and making setw and showw aliases to
set -w and show -w.
Note: setw and showw are still there, but now aliases for set -w and show -w.
2009-12-03 17:44:02 +00:00
Nicholas Marriott
1f7ac1e0cb
Solaris requires this header ordering.
2009-12-03 14:33:27 +00:00
Nicholas Marriott
6bbc92a6f5
Reflect the keypad mode of the application so that numlock works.
2009-12-02 22:13:15 +00:00
Nicholas Marriott
8fffdd28fb
Quick way to turn UTF-8 on in putty.
2009-12-02 16:57:38 +00:00
Tiago Cunha
59eaef6107
Update.
2009-12-02 15:11:20 +00:00
Tiago Cunha
55f51c4949
Sync OpenBSD patchset 577:
...
New command, capture-pane, which copies the entire pane contents to a paste
buffer. From Jonathan Alvarado.
2009-12-02 15:10:44 +00:00
Tiago Cunha
c87379b04d
Sync OpenBSD patchset 576:
...
Look for mice and xterm keys before standard function keys as they are less
likely to be partial versions.
2009-12-02 15:07:28 +00:00
Tiago Cunha
97350cd883
Sync OpenBSD patchset 575:
...
Handle partial xterm function key sequences.
2009-12-02 15:06:35 +00:00
Nicholas Marriott
459e9de81a
Close the pane if the process died due to a signal, not just if it exited
...
normally.
2009-12-02 15:06:14 +00:00
Nicholas Marriott
0926a23014
New command, capture-pane, which copies the entire pane contents to a paste
...
buffer. From Jonathan Alvarado.
2009-12-01 18:42:38 +00:00
Nicholas Marriott
f27fefd7b8
Look for mice and xterm keys before standard function keys as they are less
...
likely to be partial versions.
2009-12-01 07:59:40 +00:00
Nicholas Marriott
29a5931c6a
Handle partial xterm function key sequences.
2009-11-30 16:44:03 +00:00
Nicholas Marriott
5081d73330
+.
2009-11-28 23:55:41 +00:00
Tiago Cunha
b42f231027
Sync OpenBSD patchset 574:
...
Add a couple of comments.
2009-11-28 14:59:26 +00:00
Tiago Cunha
dc57c5bb50
Sync OpenBSD patchset 573:
...
This doesn't need to be u_int.
2009-11-28 14:57:59 +00:00
Tiago Cunha
575510045a
Sync OpenBSD patchset 572:
...
Make types clearer and lint happier.
2009-11-28 14:57:04 +00:00
Tiago Cunha
4c7b3a5906
Sync OpenBSD patchset 571:
...
Fix type - attributes should be u_char not int.
2009-11-28 14:56:11 +00:00
Tiago Cunha
91cf94b34b
Sync OpenBSD patchset 570:
...
Change paranoia check to check for <= 0 and to avoid warning.
2009-11-28 14:55:22 +00:00
Tiago Cunha
fabf40b3b3
Sync OpenBSD patchset 569:
...
Tidy up various bits of the paste code, make the data buffer char * and add
comments.
2009-11-28 14:54:12 +00:00
Tiago Cunha
66bf2e2f04
Sync OpenBSD patchset 568:
...
Continue rather than returning if not a mouse key, to avoid hanging on any
function key...
2009-11-28 14:51:37 +00:00
Tiago Cunha
c12e0b0708
Sync OpenBSD patchset 567:
...
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to
the rest to reduce lint output.
2009-11-28 14:50:37 +00:00
Tiago Cunha
bbd9652d32
Sync OpenBSD patchset 566:
...
Rename a variable to something more helpful.
2009-11-28 14:46:23 +00:00
Tiago Cunha
d9001ead7d
Sync OpenBSD patchset 565:
...
Get a u_char from the string, otherwise it isn't possible to enter \0377 as it
is mistaken for EOF (doh).
Also drop an unused argument.
2009-11-28 14:45:30 +00:00
Tiago Cunha
d517ffe7c9
Sync OpenBSD patchset 564:
...
Handle the possibility of partial mouse reads, and fix a comment while here.
2009-11-28 14:44:00 +00:00
Tiago Cunha
8ba590b473
Sync OpenBSD patchset 563:
...
Emulate il1, dl1, ich1 to run (albeit slowly) with vt100 feature set.
2009-11-28 14:42:21 +00:00
Tiago Cunha
635d36f928
Sync OpenBSD patchset 562:
...
Output the right keys for application and number keypad modes (they were the
wrong way round).
2009-11-28 14:41:17 +00:00
Tiago Cunha
5f366e6d54
Sync OpenBSD patchset 561:
...
Add a -p flag to display-message to print the output rather than displaying in
the status line, this allows things like "display -p '#W'" to find the current
window index.
2009-11-28 14:39:53 +00:00
Tiago Cunha
a3024f3d2a
Sync OpenBSD patchset 560:
...
Add cursor keys to the key names list.
2009-11-28 14:38:30 +00:00
Nicholas Marriott
2182e1badc
Add a couple of comments.
2009-11-27 09:41:03 +00:00
Nicholas Marriott
106ee8f30a
This doesn't need to be u_int.
2009-11-26 23:13:47 +00:00
Nicholas Marriott
1acf066fb9
Make types clearer and lint happier.
2009-11-26 22:56:59 +00:00
Nicholas Marriott
e7f4319ac6
Fix type - attributes should be u_char not int.
2009-11-26 22:47:14 +00:00
Nicholas Marriott
c2eb869f72
Change paranoia check to check for <= 0 and to avoid warning.
2009-11-26 22:32:00 +00:00
Nicholas Marriott
8cb410c63c
Tidy up various bits of the paste code, make the data buffer char * and add
...
comments.
2009-11-26 22:28:24 +00:00
Nicholas Marriott
ba5404d93e
Continue rather than returning if not a mouse key, to avoid hanging on any
...
function key...
2009-11-26 22:26:51 +00:00
Nicholas Marriott
4ca857e0e9
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to
...
the rest to reduce lint output.
2009-11-26 21:37:13 +00:00
Nicholas Marriott
621dabd44e
Rename a variable to something more helpful.
2009-11-26 21:22:31 +00:00
Nicholas Marriott
3e147967e2
Get a u_char from the string, otherwise it isn't possible to enter \0377 as it
...
is mistaken for EOF (doh).
Also drop an unused argument.
2009-11-26 21:14:30 +00:00
Nicholas Marriott
9c0147915e
Handle the possibility of partial mouse reads, and fix a comment while here.
2009-11-26 15:14:03 +00:00
Nicholas Marriott
d31d4c05cf
Emulate il1, dl1, ich1 to run (albeit slowly) with vt100 feature set.
2009-11-26 14:46:08 +00:00
Nicholas Marriott
399002baa4
Despite terminfo being in use for around 20 years, NetBSD still haven't got
...
their act together, so add an ifdef to use ncurses.h instead of curses.h.
Untested.
2009-11-26 09:19:05 +00:00
Nicholas Marriott
094bca5ac3
Output the right keys for application and number keypad modes (they were the
...
wrong way round).
2009-11-25 12:24:31 +00:00
Nicholas Marriott
87821fce0e
Add a -p flag to display-message to print the output rather than displaying in
...
the status line, this allows things like "display -p '#W'" to find the current
window index.
2009-11-24 19:16:11 +00:00
Nicholas Marriott
809902226e
Sync.
2009-11-24 19:03:59 +00:00
Nicholas Marriott
45ac2cc4e7
+.
2009-11-23 20:29:04 +00:00
Nicholas Marriott
727fdb44a0
+load average.
2009-11-23 09:53:24 +00:00
Tiago Cunha
3cb0c8e650
Done.
2009-11-22 23:29:09 +00:00
Nicholas Marriott
fce47e2e63
Add cursor keys to the key names list.
2009-11-22 22:52:39 +00:00
Tiago Cunha
1a41a3b48f
Sync OpenBSD patchset 559:
...
Use home from struct passwd if HOME is empty as well as if it is NULL, and fix
a style nit. Both from Tiago Cunha.
2009-11-22 00:13:34 +00:00
Tiago Cunha
1527ed0ff8
Sync OpenBSD patchset 558:
...
When -h and -p are given to split-window, calculate the percentage size using
the width instead of the height.
2009-11-22 00:12:33 +00:00
Tiago Cunha
bce5aedc64
Sync OpenBSD patchset 557:
...
Display UTF-8 properly in status line messages and prompt. Cursor handling is
still way off though.
2009-11-22 00:11:33 +00:00
Tiago Cunha
1d58ca61a7
Sync OpenBSD patchset 556:
...
Remove oldest messages from log when limit is hit, not newest.
2009-11-22 00:10:39 +00:00
Tiago Cunha
074780fea4
Sync OpenBSD patchset 555:
...
Get some brackets in the right place so ## works. Also fix a space in a
comment.
2009-11-22 00:09:42 +00:00
Nicholas Marriott
9b9d26f80e
Use home from struct passwd if HOME is empty as well as if it is NULL, and fix
...
a style nit. Both from Tiago Cunha.
2009-11-21 17:52:18 +00:00
Nicholas Marriott
58688c48aa
When -h and -p are given to split-window, calculate the percentage size using
...
the width instead of the height.
2009-11-20 19:12:39 +00:00
Nicholas Marriott
ec68dae252
+.
2009-11-20 14:59:45 +00:00
Nicholas Marriott
5d56225d95
Display UTF-8 properly in status line messages and prompt. Cursor handling is
...
still way off though.
2009-11-20 07:01:12 +00:00
Nicholas Marriott
070e3b4178
Remove oldest messages from log when limit is hit, not newest.
2009-11-20 06:33:26 +00:00
Tiago Cunha
7a9bfabf7a
Sync OpenBSD patchset 554:
...
Change status line drawing to create the window list in a separate screen and
then copy it into the status line screen. This allows UTF-8 in window names and
fixes some problems with #[] in window-status-format.
2009-11-19 22:37:04 +00:00
Tiago Cunha
cbc7a23e33
Update.
2009-11-19 22:35:51 +00:00
Tiago Cunha
f9451028c0
Sync OpenBSD patchset 553:
...
Two new options, window-status-format and window-status-current-format, which
allow the format of each window in the status line window list to be controlled
using similar # sequences as status-left/right.
This diff also moves part of the way towards UTF-8 support in window names but
it isn't quite there yet.
2009-11-19 22:35:10 +00:00
Tiago Cunha
1feea926ed
Sync OpenBSD patchset 552:
...
tweak previous;
2009-11-19 22:32:12 +00:00
Tiago Cunha
8512811535
Sync OpenBSD patchset 551:
...
Revert to xterm-keys off by default. It was on as an experiment to see if the
option could be removed, but it affects vi, so we have to keep the option, and
a conservative default is better.
2009-11-19 22:31:27 +00:00
Tiago Cunha
224ae13ab0
Sync OpenBSD patchset 550:
...
Tidy up by breaking the # replacement code into a separate function, also add a
few comments.
2009-11-19 22:30:39 +00:00
Tiago Cunha
5fd1cf743e
Update.
2009-11-19 22:28:59 +00:00
Tiago Cunha
563f34477a
Sync OpenBSD patchset 549:
...
Don't interpret #() for display-message, it usually doesn't make sense and may
leak commands.
2009-11-19 22:25:52 +00:00
Tiago Cunha
a5ae0dc216
Sync OpenBSD patchset 548:
...
Missed an unused variable :-/.
2009-11-19 22:24:17 +00:00
Tiago Cunha
a0b2b8e875
Sync OpenBSD patchset 547:
...
Cleanup by moving various (mostly horrible) little bits handling UTF-8 grid
data into functions in a new file, grid-utf8.c, and use sizeof intead of
UTF8_DATA.
Also nuke trailing whitespace from tmux.1, reminded by jmc.
2009-11-19 22:23:27 +00:00
Tiago Cunha
acc331c787
Sync OpenBSD patchset 546:
...
Add a per-client log of status line messages displayed while that client
exists. A new message-limit session option sets the maximum number of entries
and a command, show-messages, shows the log (bound to ~ by default).
This (and prompt history) might be better as a single global log but until
there are global options it is easier for them to be per client.
2009-11-19 22:20:04 +00:00
Tiago Cunha
8777a809dc
Sync OpenBSD patchset 545:
...
Mark -n keys with (no prefix) rather than [].
2009-11-19 22:15:58 +00:00
Nicholas Marriott
2cea9433c2
Get some brackets in the right place so ## works. Also fix a space in a
...
comment.
2009-11-19 21:30:53 +00:00
Nicholas Marriott
33b337f618
Change status line drawing to create the window list in a separate screen and
...
then copy it into the status line screen. This allows UTF-8 in window names and
fixes some problems with #[] in window-status-format.
2009-11-19 19:47:28 +00:00
Nicholas Marriott
543fb99bc6
Two new options, window-status-format and window-status-current-format, which
...
allow the format of each window in the status line window list to be controlled
using similar # sequences as status-left/right.
This diff also moves part of the way towards UTF-8 support in window names but
it isn't quite there yet.
2009-11-19 16:22:10 +00:00
Jason McIntyre
8b8a211185
tweak previous;
2009-11-19 15:00:32 +00:00
Nicholas Marriott
4a38189349
Revert to xterm-keys off by default. It was on as an experiment to see if the
...
option could be removed, but it affects vi, so we have to keep the option, and
a conservative default is better.
2009-11-19 14:06:33 +00:00
Nicholas Marriott
ed781e84ee
Tidy up by breaking the # replacement code into a separate function, also add a
...
few comments.
2009-11-19 11:38:54 +00:00
Nicholas Marriott
ac5b7d518e
Don't interpret #() for display-message, it usually doesn't make sense and may
...
leak commands.
2009-11-19 10:22:06 +00:00
Nicholas Marriott
8d4eae5662
Missed an unused variable :-/.
2009-11-18 17:03:16 +00:00
Nicholas Marriott
a78cc98c8b
Cleanup by moving various (mostly horrible) little bits handling UTF-8 grid
...
data into functions in a new file, grid-utf8.c, and use sizeof intead of
UTF8_DATA.
Also nuke trailing whitespace from tmux.1, reminded by jmc.
2009-11-18 17:02:17 +00:00
Nicholas Marriott
ec48709dc2
+.
2009-11-18 13:56:06 +00:00
Nicholas Marriott
8db145da1e
Add a per-client log of status line messages displayed while that client
...
exists. A new message-limit session option sets the maximum number of entries
and a command, show-messages, shows the log (bound to ~ by default).
This (and prompt history) might be better as a single global log but until
there are global options it is easier for them to be per client.
2009-11-18 13:16:33 +00:00
Nicholas Marriott
68f5c9c72d
Mark -n keys with (no prefix) rather than [].
2009-11-18 10:18:25 +00:00
Tiago Cunha
9829cfc8d2
Sync OpenBSD patchset 544:
...
Permit top-bit-set characters to be entered in the status line. They could
already be set from the shell and are just passed through when printing (so
invisible characters or displaying on terminals with different character sets
may cause problems).
Note that entering UTF-8 may not work and in any case currently the status line
cannot display it correctly (outside of status-left/status-right).
2009-11-18 01:28:43 +00:00
Tiago Cunha
4c2e037046
Sync OpenBSD patchset 543:
...
In choose mode, assign each item a number or lowercase letter from those
available and accept that as a shortcut key for the item.
2009-11-18 01:27:33 +00:00
Tiago Cunha
1c97866a5f
Sync OpenBSD patchset 542:
...
A screen can be one cell wide; don't crash if that is the case.
2009-11-18 01:25:35 +00:00
Tiago Cunha
063a474fe0
Sync OpenBSD patchset 541:
...
I made a complete horlicks of the last change, fix it so it doesn't either lead
to a double free or free the item after the end of the array.
2009-11-18 01:24:33 +00:00
Nicholas Marriott
a9ca8df8e3
Permit top-bit-set characters to be entered in the status line. They could
...
already be set from the shell and are just passed through when printing (so
invisible characters or displaying on terminals with different character sets
may cause problems).
Note that entering UTF-8 may not work and in any case currently the status line
cannot display it correctly (outside of status-left/status-right).
2009-11-17 13:30:07 +00:00
Nicholas Marriott
67bf0933e2
In choose mode, assign each item a number or lowercase letter from those
...
available and accept that as a shortcut key for the item.
2009-11-17 13:06:11 +00:00
Nicholas Marriott
5d7bff4051
A screen can be one cell wide; don't crash if that is the case.
2009-11-16 13:40:45 +00:00
Nicholas Marriott
9f6d685c05
I made a complete horlicks of the last change, fix it so it doesn't either lead
...
to a double free or free the item after the end of the array.
2009-11-16 11:15:44 +00:00
Tiago Cunha
a7158784f2
Sync OpenBSD patchset 540:
...
Tweak a comment and add some spacing.
2009-11-14 17:57:41 +00:00
Tiago Cunha
e35f5b35bd
Sync OpenBSD patchset 539:
...
Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the
command entry structs and a couple of functions to check/set the flags.
2009-11-14 17:56:39 +00:00
Tiago Cunha
fc6a835be8
Sync OpenBSD patchset 538:
...
Unreachable statement, found by lint.
2009-11-14 17:52:04 +00:00
Tiago Cunha
ee9be88946
Sync OpenBSD patchset 537:
...
Tidy up and fix some types, prompted by lint via deraadt.
2009-11-14 17:51:06 +00:00
Tiago Cunha
0bb00a0df3
Sync OpenBSD patchset 536:
...
imsg_read returns ssize_t not int, pointed out by lint via deraadt.
2009-11-14 17:49:37 +00:00
Tiago Cunha
72bc03ac4c
Sync OpenBSD patchset 535:
...
Destroy panes immediately rather than checking them all every loop.
2009-11-14 17:48:39 +00:00
Nicholas Marriott
10e05f9867
Tweak a comment and add some spacing.
2009-11-13 19:58:32 +00:00
Nicholas Marriott
76ef8770cd
Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the
...
command entry structs and a couple of functions to check/set the flags.
2009-11-13 19:53:28 +00:00
Nicholas Marriott
dafa0f022c
Unreachable statement, found by lint.
2009-11-13 18:59:14 +00:00
Nicholas Marriott
390472566c
Tidy up and fix some types, prompted by lint via deraadt.
2009-11-13 18:13:18 +00:00
Nicholas Marriott
a18a374d51
imsg_read returns ssize_t not int, pointed out by lint via deraadt.
2009-11-13 18:07:52 +00:00
Nicholas Marriott
8e47966225
Destroy panes immediately rather than checking them all every loop.
2009-11-13 17:33:07 +00:00
Tiago Cunha
56447d73c1
Sync OpenBSD patchset 534:
...
Use winlink_remove() to remove old winlinks when synchronizing grouped sessions
rather than doing it manually and not adjusted the reference count. Fixes
crash seen by Dan Harnett.
2009-11-13 16:59:19 +00:00
Tiago Cunha
0986001908
Sync OpenBSD patchset 533:
...
Zap unused functions, prompted by deraadt.
2009-11-13 16:58:24 +00:00
Tiago Cunha
2bd39071d3
Sync OpenBSD patchset 532:
...
Emulate the ri (reverse index) capability: this allows tmux to at least start
on Sun consoles (TERM=sun or sun-color), even if there appear to still be
problems on some boxes (my Blade 100 is fine but edd's Blade 1000 shows odd
screen corruption).
2009-11-13 16:57:21 +00:00
Tiago Cunha
ac6b1a817b
Sync OpenBSD patchset 531:
...
Support rxvt-style keys again, but this time: support all the variations, put
them in as raw escape sequences rather than fiddling with the values from
terminfo, put them /after/ the terminfo values so the latter take precedence.
2009-11-13 16:56:15 +00:00
Tiago Cunha
ba832ff2c3
Sync OpenBSD patchset 530:
...
Rewrite a confusing loop when freeing the arg array on exit and move the check
for argv being NULL, prompted by parfait via deraadt.
Also fix some definite brokenness when assigning multiple environment variables
in arguments (such as "X=1 Y=2").
2009-11-13 16:55:10 +00:00
Tiago Cunha
2ec5aca064
Sync OpenBSD patchset 529:
...
Add an explicit zero-length check for UTF-8 input data, prompted by a report
from parfait via deraadt.
While here, add a statement to set the width when filling with _s if not enough
space (width should never be high enough at the moment anyway), and wrap some
long lines.
2009-11-13 16:54:04 +00:00
Tiago Cunha
e8424d333e
Sync OpenBSD patchset 528:
...
Free the pane bufferevent when the fd is closed (the signal could come before
the error callback).
2009-11-13 16:52:46 +00:00
Tiago Cunha
1b4a76d58f
Sync OpenBSD patchset 527:
...
Only need to chmod +x or -x the socket when a client is created, lost or
attached, rather than every event loop.
2009-11-13 16:51:49 +00:00
Nicholas Marriott
1415eb3dd2
Use winlink_remove() to remove old winlinks when synchronizing grouped sessions
...
rather than doing it manually and not adjusted the reference count. Fixes
crash seen by Dan Harnett.
2009-11-13 14:47:31 +00:00
Nicholas Marriott
5d397462e4
Zap unused functions, prompted by deraadt.
2009-11-13 07:00:54 +00:00
Nicholas Marriott
5ae542e7ee
Emulate the ri (reverse index) capability: this allows tmux to at least start
...
on Sun consoles (TERM=sun or sun-color), even if there appear to still be
problems on some boxes (my Blade 100 is fine but edd's Blade 1000 shows odd
screen corruption).
2009-11-12 08:05:23 +00:00
Nicholas Marriott
d9deb4b530
Support rxvt-style keys again, but this time: support all the variations, put
...
them in as raw escape sequences rather than fiddling with the values from
terminfo, put them /after/ the terminfo values so the latter take precedence.
2009-11-12 08:01:02 +00:00
Nicholas Marriott
89763f2ace
Rewrite a confusing loop when freeing the arg array on exit and move the check
...
for argv being NULL, prompted by parfait via deraadt.
Also fix some definite brokenness when assigning multiple environment variables
in arguments (such as "X=1 Y=2").
2009-11-11 18:56:07 +00:00
Nicholas Marriott
9df4e7597d
Add an explicit zero-length check for UTF-8 input data, prompted by a report
...
from parfait via deraadt.
While here, add a statement to set the width when filling with _s if not enough
space (width should never be high enough at the moment anyway), and wrap some
long lines.
2009-11-11 18:53:21 +00:00
Nicholas Marriott
08a8ccf46b
Free the pane bufferevent when the fd is closed (the signal could come before
...
the error callback).
2009-11-11 13:24:42 +00:00
Nicholas Marriott
7230fe1648
OS X is still broken, so ask libevent not to use kqueue or poll.
2009-11-11 09:54:07 +00:00
Nicholas Marriott
2756437f4b
Only need to chmod +x or -x the socket when a client is created, lost or
...
attached, rather than every event loop.
2009-11-11 08:00:42 +00:00
Tiago Cunha
60869fa4c3
Sync OpenBSD patchset 526:
...
There is no real standard for modifier plus function keys. Previously, tmux
output some from rxvt but in other ways did the same as xterm or other
terminals, but this is a bit inconsistent.
xterm's method is fairly sensible and we already support it (xterm-keys), so
enable it by default instead.
2009-11-10 23:34:03 +00:00
Tiago Cunha
ba7aa506f3
Sync OpenBSD patchset 525:
...
Don't output rxvtisms either.
2009-11-10 23:32:53 +00:00
Tiago Cunha
9817d41947
Sync OpenBSD patchset 524:
...
Twiddling the last bit is an rxvtism, so do not support it in the table by
default.
2009-11-10 23:32:09 +00:00
Tiago Cunha
74e742113d
Sync OpenBSD patchset 523:
...
Whoops, this is needed for last commit as well.
2009-11-10 23:31:21 +00:00
Tiago Cunha
e9b357550f
Sync OpenBSD patchset 522:
...
Lookup key as a named key (eg 'Space') before checking for single character
keys, makes C-Space/M-Space etc resolve to the correct key code.
2009-11-10 23:30:26 +00:00
Tiago Cunha
38ac9bb414
Sync OpenBSD patchset 521:
...
Don't return 1 unless there was actually a problem (signal/lost server) rather
than for all events (normal exit/detach/etc).
2009-11-10 23:28:53 +00:00
Tiago Cunha
c01816c26d
Sync OpenBSD patchset 520:
...
Just ignore tty fd errors rather than dying, stops the server dying if the
session is disconnected abrubtly (eg ssh ~.).
2009-11-10 23:27:57 +00:00
Tiago Cunha
36bb298bfa
Sync OpenBSD patchset 519:
...
The input key should be a u_char. Fixes top-bit-set input problem reported by
ajacoutot@.
2009-11-10 23:27:03 +00:00
Tiago Cunha
e275bc52f2
Sync OpenBSD patchset 518:
...
Constify buf.
2009-11-10 23:26:13 +00:00
Nicholas Marriott
15b9946a40
There is no real standard for modifier plus function keys. Previously, tmux
...
output some from rxvt but in other ways did the same as xterm or other
terminals, but this is a bit inconsistent.
xterm's method is fairly sensible and we already support it (xterm-keys), so
enable it by default instead.
2009-11-10 18:53:11 +00:00
Nicholas Marriott
d9961f40bf
Don't output rxvtisms either.
2009-11-10 18:48:03 +00:00
Nicholas Marriott
05831b52c4
Twiddling the last bit is an rxvtism, so do not support it in the table by
...
default.
2009-11-10 17:59:34 +00:00
Nicholas Marriott
b92fcf23fd
Whoops, this is needed for last commit as well.
2009-11-10 17:41:35 +00:00
Nicholas Marriott
38f64b3da3
Lookup key as a named key (eg 'Space') before checking for single character
...
keys, makes C-Space/M-Space etc resolve to the correct key code.
2009-11-10 17:24:43 +00:00
Nicholas Marriott
9f47c6083a
Don't return 1 unless there was actually a problem (signal/lost server) rather
...
than for all events (normal exit/detach/etc).
2009-11-10 15:47:48 +00:00
Nicholas Marriott
ef45c1c65b
+.
2009-11-10 15:33:31 +00:00
Nicholas Marriott
6609093625
Just ignore tty fd errors rather than dying, stops the server dying if the
...
session is disconnected abrubtly (eg ssh ~.).
2009-11-09 22:50:29 +00:00
Nicholas Marriott
c202377859
+.
2009-11-09 20:03:31 +00:00
Nicholas Marriott
591fa23f6e
The input key should be a u_char. Fixes top-bit-set input problem reported by
...
ajacoutot@.
2009-11-09 14:40:06 +00:00
Nicholas Marriott
daf150c38d
Constify buf.
2009-11-09 11:45:10 +00:00
Tiago Cunha
34b4c2e607
Sync OpenBSD patchset 517:
...
Don't try enable/disable the event if the window pane is dead (fd == -1), as
the event will have been freed.
2009-11-08 23:35:53 +00:00
Tiago Cunha
dcb85fe4b1
Sync OpenBSD patchset 516:
...
Clear to the end of the screen from the right starting point when drawing
line-by-line (in panes or if ed not supported). Fixes problem spotted by Frank
Terbeck.
2009-11-08 23:34:47 +00:00
Tiago Cunha
8fe9ecae05
Sync OpenBSD patchset 515:
...
Old xterm F1-F4 are \033O_P not \033[O_P.
2009-11-08 23:33:57 +00:00
Tiago Cunha
946337484e
Sync OpenBSD patchset 514:
...
Unused variable. Aargh.
2009-11-08 23:33:17 +00:00
Tiago Cunha
181e1cc711
Sync OpenBSD patchset 513:
...
Switch the tty key tree over to an (unbalanced) ternary tree which allows
partial matches to be done (they wait for further data or a timer to expire,
like a naked escape).
Mouse and xterm-style keys still expect to be atomic.
2009-11-08 23:32:39 +00:00
Tiago Cunha
f18b224983
Sync OpenBSD patchset 512:
...
key_string_lookup_key uses a static buffer, so copy its output into the working
buffer before calling the command print function which can also use it (eg
send-keys).
2009-11-08 23:30:42 +00:00
Tiago Cunha
7d288e7fd8
Sync OpenBSD patchset 511:
...
Key flags are only used for initialisation so they are not needed in the main
tty_key struct.
2009-11-08 23:29:34 +00:00
Tiago Cunha
fb22aaf87f
Sync OpenBSD patchset 510:
...
EVLOOP_ONCE takes care of the wakeup, so no need to call event_loopexit(NULL).
2009-11-08 23:28:40 +00:00
Tiago Cunha
5ac6ea61bd
Sync OpenBSD patchset 509:
...
Now all timers are events, there is no longer any need to wake up every 50 ms -
only wake up when an event happens.
2009-11-08 23:27:58 +00:00
Tiago Cunha
66957412d5
Sync OpenBSD patchset 508:
...
Switch tty key input over to happen on a read event. This is a bit more
complicated because of escape input, but in that case instead of processing a
key immediately, schedule a timer and reprocess the bufer when it expires.
This currently assumes that keys will be atomic (ie that if eg F1 is pressed
the entire sequence is present in the buffer). This is usually but not always
true, a change in the tree format so it can differentiate potential (partial)
key sequences will happens soon and will allow this to be fixed.
2009-11-08 23:26:56 +00:00
Tiago Cunha
ac6092c27f
Sync OpenBSD patchset 507:
...
Convert the key repeat timer to an event.
2009-11-08 23:24:59 +00:00
Tiago Cunha
81336d6bb0
Make it compile on the portable version.
2009-11-08 23:23:36 +00:00
Tiago Cunha
ab38d91913
Sync OpenBSD patchset 506:
...
Change window name change to use a timer event rather than a gettimeofday()
check every loop.
2009-11-08 23:22:24 +00:00
Tiago Cunha
915031b049
Sync OpenBSD patchset 505:
...
Move status timer check into the global once-per-second timer, this could maybe
be done better but one every second is better than once every 50 ms.
2009-11-08 23:12:35 +00:00
Tiago Cunha
02438c01b7
Sync OpenBSD patchset 504:
...
Use timeout events for the identify and message timers.
2009-11-08 23:11:23 +00:00
Tiago Cunha
bee17719d8
Sync OpenBSD patchset 503:
...
Don't reenlist the client imsg event every loop, instead have a small function
to it and call it after the event triggers or after a imsg is added.
2009-11-08 23:09:36 +00:00
Tiago Cunha
0cd4f4e321
Sync OpenBSD patchset 502:
...
It would help if I read my own comments... make alt keys work again by sending
alt AND the key not alt instead of it.
2009-11-08 23:08:12 +00:00
Tiago Cunha
3acb995ef3
Sync OpenBSD patchset 501:
...
Move some common code into a function.
2009-11-08 23:07:14 +00:00
Tiago Cunha
40b6941c0f
Sync OpenBSD patchset 500:
...
Tell the client to exit on configuration file error.
2009-11-08 23:06:25 +00:00
Tiago Cunha
142962742c
Sync OpenBSD patchset 499:
...
Bye-bye buffer*.c.
2009-11-08 23:05:36 +00:00
Tiago Cunha
2df0882722
Sync OpenBSD patchset 498:
...
Convert the window pane (pty master side) fd over to use a bufferevent.
The evbuffer API is very similar to the existing tmux buffer API so this was
remarkably painless. Not many possible ways to do it, I suppose.
2009-11-08 23:02:56 +00:00
Tiago Cunha
70b2f1981e
Sync OpenBSD patchset 497:
...
Call event_init() before loading the config file, since potentially it could
set up events.
2009-11-08 23:00:44 +00:00
Tiago Cunha
cb0bf6a043
Sync OpenBSD patchset 496:
...
Switch window pane pipe redirect fd over to a bufferevent.
2009-11-08 22:59:53 +00:00
Tiago Cunha
971a7b2fe0
Sync OpenBSD patchset 495:
...
Switch tty fds over to a bufferevent.
2009-11-08 22:58:38 +00:00
Tiago Cunha
7851bb81f5
Sync OpenBSD patchset 494:
...
Add back JOB_PERSIST checks that got lost.
2009-11-08 22:56:54 +00:00
Tiago Cunha
53ef4c2bab
Sync OpenBSD patchset 493:
...
Switch jobs over to use a bufferevent.
2009-11-08 22:56:04 +00:00
Tiago Cunha
5116aaa51a
Sync OpenBSD patchset 492:
...
A couple of minor cosmetic changes.
2009-11-08 22:53:13 +00:00
Tiago Cunha
e41055c5aa
Adjust recent libevent changes to the portable version.
2009-11-08 22:51:34 +00:00
Tiago Cunha
dd36982ad5
Sync OpenBSD patchset 491:
...
Initial changes to move tmux to libevent.
This moves the client-side loops are pretty much fully over to event-based only
(tmux.c and client.c) but server-side (server.c and friends) treats libevent as
a sort of clever poll, waking up after every event to run various things.
Moving the server stuff over to bufferevents and timers and so on will come
later.
2009-11-08 22:40:36 +00:00
Nicholas Marriott
f98d13e7dc
Don't try enable/disable the event if the window pane is dead (fd == -1), as
...
the event will have been freed.
2009-11-06 10:42:06 +00:00
Nicholas Marriott
bed8153ba0
Clear to the end of the screen from the right starting point when drawing
...
line-by-line (in panes or if ed not supported). Fixes problem spotted by Frank
Terbeck.
2009-11-05 22:35:28 +00:00
Nicholas Marriott
297ebb1160
Old xterm F1-F4 are \033O_P not \033[O_P.
2009-11-05 19:35:16 +00:00
Nicholas Marriott
ff55eb5bfa
Unused variable. Aargh.
2009-11-05 19:32:34 +00:00
Nicholas Marriott
80e0158112
Switch the tty key tree over to an (unbalanced) ternary tree which allows
...
partial matches to be done (they wait for further data or a timer to expire,
like a naked escape).
Mouse and xterm-style keys still expect to be atomic.
2009-11-05 19:29:41 +00:00
Tiago Cunha
5ce49941fb
Working on 1.2.
2009-11-05 13:18:19 +00:00
Tiago Cunha
09c34be825
Use %%VERSION%% so the Makefile can replace it by VERSION.
2009-11-05 13:13:19 +00:00
Tiago Cunha
e4b743cced
Update CHANGES, and NOTES for the 1.1 release.
2009-11-05 12:35:47 +00:00
Tiago Cunha
9128b7df7f
Bump VERSION.
2009-11-05 12:32:46 +00:00
Tiago Cunha
90d4cbe67e
Prepare the tree for the 1.1 release.
2009-11-05 12:30:55 +00:00
Nicholas Marriott
05855393f0
key_string_lookup_key uses a static buffer, so copy its output into the working
...
buffer before calling the command print function which can also use it (eg
send-keys).
2009-11-05 12:04:50 +00:00
Nicholas Marriott
a790e16fa2
Key flags are only used for initialisation so they are not needed in the main
...
tty_key struct.
2009-11-05 10:44:36 +00:00
Nicholas Marriott
25c604fb1c
EVLOOP_ONCE takes care of the wakeup, so no need to call event_loopexit(NULL).
2009-11-05 08:50:32 +00:00
Nicholas Marriott
38e13942ac
Now all timers are events, there is no longer any need to wake up every 50 ms -
...
only wake up when an event happens.
2009-11-05 08:48:15 +00:00
Nicholas Marriott
b58bf49e91
Switch tty key input over to happen on a read event. This is a bit more
...
complicated because of escape input, but in that case instead of processing a
key immediately, schedule a timer and reprocess the bufer when it expires.
This currently assumes that keys will be atomic (ie that if eg F1 is pressed
the entire sequence is present in the buffer). This is usually but not always
true, a change in the tree format so it can differentiate potential (partial)
key sequences will happens soon and will allow this to be fixed.
2009-11-05 08:45:08 +00:00
Nicholas Marriott
80444436f3
Convert the key repeat timer to an event.
2009-11-05 00:05:00 +00:00
Nicholas Marriott
44d6a2c435
Change window name change to use a timer event rather than a gettimeofday()
...
check every loop.
2009-11-04 23:54:57 +00:00
Nicholas Marriott
946ed97273
Move status timer check into the global once-per-second timer, this could maybe
...
be done better but one every second is better than once every 50 ms.
2009-11-04 23:42:51 +00:00
Nicholas Marriott
b1264a7416
Use timeout events for the identify and message timers.
2009-11-04 23:29:42 +00:00
Nicholas Marriott
b3c4956efe
Don't reenlist the client imsg event every loop, instead have a small function
...
to it and call it after the event triggers or after a imsg is added.
2009-11-04 23:12:43 +00:00
Tiago Cunha
625348122c
Sync OpenBSD patchset 490:
...
Unused (but assigned to) variable, found by lint.
2009-11-04 23:12:32 +00:00
Tiago Cunha
27c2b98f5f
Sync OpenBSD patchset 489:
...
Ignore the colour on space, /not/ the attributes.
2009-11-04 23:10:43 +00:00
Tiago Cunha
344a241c28
Sync OpenBSD patchset 488:
...
Fix the reverse emulation when a terminal doesn't have setab to use the correct
fg/bg (adjusted if spaces) and happen before attribute setting.
2009-11-04 23:09:48 +00:00
Tiago Cunha
fdda6ef8bd
Adjust OpenBSD patchset 487 to the portable version, and while there drop
...
malloc_options on DragonFlyBSD, and FreeBSD.
2009-11-04 23:09:09 +00:00
Nicholas Marriott
6a6a42aa3a
It would help if I read my own comments... make alt keys work again by sending
...
alt AND the key not alt instead of it.
2009-11-04 23:00:22 +00:00
Nicholas Marriott
862fe15c32
Move some common code into a function.
2009-11-04 22:57:49 +00:00
Tiago Cunha
c78426f033
Sync OpenBSD patchset 487:
...
Change declaration and use of malloc_options to be more standard, from Tim van
der Molen.
2009-11-04 22:49:27 +00:00
Nicholas Marriott
fde36fccc3
Tell the client to exit on configuration file error.
2009-11-04 22:47:34 +00:00
Tiago Cunha
9e208584ed
Sync OpenBSD patchset 486:
...
Don't backoff based on suspended or deda clients as they are always likely to
have data backed up.
2009-11-04 22:47:29 +00:00
Tiago Cunha
5be38f2b3a
Sync OpenBSD patchset 485:
...
Add an activity time for clients, like for sessions, and change session and
client lookup to pick the most recently used rather than the most recently
created - this is much more useful when used interactively and (because the
activity time is set at creation) should have no effect on source-file.
Based on a problem reported by Jan Johansson.
2009-11-04 22:46:25 +00:00
Nicholas Marriott
5bebbd81d7
Bye-bye buffer*.c.
2009-11-04 22:44:53 +00:00
Tiago Cunha
b7fc4f3760
Sync OpenBSD patchset 484:
...
If it isn't available explicitly, work out the current client in a similar way
to the current session - build a list of the possibilities then pick the
newest.
2009-11-04 22:44:01 +00:00
Nicholas Marriott
a02c7e804c
Convert the window pane (pty master side) fd over to use a bufferevent.
...
The evbuffer API is very similar to the existing tmux buffer API so this was
remarkably painless. Not many possible ways to do it, I suppose.
2009-11-04 22:43:11 +00:00
Tiago Cunha
bbad75fb6c
Sync OpenBSD patchset 483:
...
Change session and client activity and creation time members to have more
meaningful names.
Also, remove the code to try and update the session activity time for the
command client when a command message is received as is pointless because it
des not have a session.
2009-11-04 22:42:31 +00:00
Nicholas Marriott
06ffed3216
Call event_init() before loading the config file, since potentially it could
...
set up events.
2009-11-04 22:40:36 +00:00
Tiago Cunha
a090b78e8d
Sync OpenBSD patchset 482:
...
tv member of struct paste_buffer is updated but not otherwise used, so remove
it.
2009-11-04 22:39:20 +00:00
Tiago Cunha
0a4d830ee1
Sync OpenBSD patchset 481:
...
Fix vi page up mode key (from naddy), add missing half page keys, and sort.
2009-11-04 22:38:16 +00:00
Tiago Cunha
f3b4b60aa8
Sync OpenBSD patchset 480:
...
Double the escape timer (the time after a \033 is received before tmux gives up
waiting to see if it is part of a key sequence and passes it through) to 500
ms, the previous setting was too fast. Suggested by naddy.
2009-11-04 22:37:18 +00:00
Nicholas Marriott
91ad830c88
Switch window pane pipe redirect fd over to a bufferevent.
2009-11-04 22:02:38 +00:00
Nicholas Marriott
7342615c7d
Switch tty fds over to a bufferevent.
2009-11-04 21:47:42 +00:00
Nicholas Marriott
abb728684b
Add back JOB_PERSIST checks that got lost.
2009-11-04 21:10:49 +00:00
Nicholas Marriott
4d6091379b
Switch jobs over to use a bufferevent.
2009-11-04 21:04:43 +00:00
Nicholas Marriott
ea8c8c5f33
A couple of minor cosmetic changes.
2009-11-04 20:59:22 +00:00
Nicholas Marriott
abf3a5d50e
Initial changes to move tmux to libevent.
...
This moves the client-side loops are pretty much fully over to event-based only
(tmux.c and client.c) but server-side (server.c and friends) treats libevent as
a sort of clever poll, waking up after every event to run various things.
Moving the server stuff over to bufferevents and timers and so on will come
later.
2009-11-04 20:50:11 +00:00
Nicholas Marriott
f575e39b0a
Unused (but assigned to) variable, found by lint.
2009-11-04 20:35:19 +00:00
Nicholas Marriott
10f58cb1bc
Ignore the colour on space, /not/ the attributes.
2009-11-04 15:59:27 +00:00
Nicholas Marriott
a94535f318
Fix the reverse emulation when a terminal doesn't have setab to use the correct
...
fg/bg (adjusted if spaces) and happen before attribute setting.
2009-11-04 13:34:26 +00:00
Nicholas Marriott
d2dfbef05a
Change declaration and use of malloc_options to be more standard, from Tim van
...
der Molen.
2009-11-04 12:41:43 +00:00
Nicholas Marriott
d8332e6373
Don't backoff based on suspended or deda clients as they are always likely to
...
have data backed up.
2009-11-04 08:35:11 +00:00
Nicholas Marriott
0785f2872f
Add an activity time for clients, like for sessions, and change session and
...
client lookup to pick the most recently used rather than the most recently
created - this is much more useful when used interactively and (because the
activity time is set at creation) should have no effect on source-file.
Based on a problem reported by Jan Johansson.
2009-11-03 22:40:40 +00:00
Nicholas Marriott
5761ab6b55
If it isn't available explicitly, work out the current client in a similar way
...
to the current session - build a list of the possibilities then pick the
newest.
2009-11-03 20:59:22 +00:00
Nicholas Marriott
5289da29ba
Change session and client activity and creation time members to have more
...
meaningful names.
Also, remove the code to try and update the session activity time for the
command client when a command message is received as is pointless because it
des not have a session.
2009-11-03 20:29:47 +00:00
Nicholas Marriott
c95f1d1ff9
tv member of struct paste_buffer is updated but not otherwise used, so remove
...
it.
2009-11-03 17:17:24 +00:00
Nicholas Marriott
01943062b4
Fix vi page up mode key (from naddy), add missing half page keys, and sort.
2009-11-03 06:55:49 +00:00
Tiago Cunha
012e7106de
Sync OpenBSD patchset 479:
...
When matching the session names with -t, look for exact matches first before
trying partial matches.
Avoids problems where two ambiguous matches are present before an exact match
(eg foo1, foo2, foo would give an error on trying -tfoo), reported by Natacha
Port? natbsd at instinctive dot eu.
2009-11-02 21:42:27 +00:00
Tiago Cunha
bbdf78cd97
Sync OpenBSD patchset 478:
...
Leftover unused variable :-/.
2009-11-02 21:41:16 +00:00
Tiago Cunha
6b4b4c78cf
Sync OpenBSD patchset 477:
...
There isn't much point in doing lstat before connect so instead just do connect
and handle ENOENT from it which is a little tidier.
2009-11-02 21:40:44 +00:00
Tiago Cunha
ee1cc9f415
Sync OpenBSD patchset 476:
...
Reorder slightly to tidy code.
2009-11-02 21:39:34 +00:00
Tiago Cunha
053e40572c
Sync OpenBSD patchset 475:
...
Add a flag for jobs that shouldn't be freed after they've died and use it for
status jobs, then only kill those jobs when status-left, status-right or
set-titles-string is changed.
Fixes problems with changing options from inside #().
2009-11-02 21:38:27 +00:00
Tiago Cunha
47f69075a0
Sync OpenBSD patchset 474:
...
Missing setenv/showenv aliases.
2009-11-02 21:35:40 +00:00
Tiago Cunha
b4beb1a5cb
Sync OpenBSD patchset 473:
...
Missing ;. From eric@ ages ago.
2009-11-02 21:34:32 +00:00
Tiago Cunha
738489f2bb
Sync OpenBSD patchset 472:
...
If any client currently displaying a window pane has more than 1 KB of output
buffered, don't accept any further data from the process running in the pane.
This makes tmux much more responsive when flooded with output, although other
buffers can still have an impact when running remotely.
Prompted by a query from Ranganathan Sankaralingam.
2009-11-02 21:32:52 +00:00
Nicholas Marriott
d57ba5e30b
+.
2009-11-02 20:24:07 +00:00
Nicholas Marriott
86182f33c3
Double the escape timer (the time after a \033 is received before tmux gives up
...
waiting to see if it is part of a key sequence and passes it through) to 500
ms, the previous setting was too fast. Suggested by naddy.
2009-11-02 20:18:22 +00:00
Nicholas Marriott
ca24e00d75
Example from Thayer Williams.
2009-11-02 18:59:28 +00:00
Nicholas Marriott
1c853c6860
When matching the session names with -t, look for exact matches first before
...
trying partial matches.
Avoids problems where two ambiguous matches are present before an exact match
(eg foo1, foo2, foo would give an error on trying -tfoo), reported by Natacha
Port? natbsd at instinctive dot eu.
2009-11-02 16:24:29 +00:00
Nicholas Marriott
2a585dc4ed
Leftover unused variable :-/.
2009-11-02 13:42:25 +00:00
Nicholas Marriott
42fd44f1db
There isn't much point in doing lstat before connect so instead just do connect
...
and handle ENOENT from it which is a little tidier.
2009-11-02 13:41:25 +00:00
Nicholas Marriott
992dd86309
Reorder slightly to tidy code.
2009-11-02 12:48:44 +00:00
Nicholas Marriott
2f813ef75d
Add a flag for jobs that shouldn't be freed after they've died and use it for
...
status jobs, then only kill those jobs when status-left, status-right or
set-titles-string is changed.
Fixes problems with changing options from inside #().
2009-11-01 23:20:37 +00:00
Nicholas Marriott
32299e4010
Missing setenv/showenv aliases.
2009-11-01 19:17:08 +00:00
Nicholas Marriott
513c1cf0c7
+-.
2009-11-01 18:48:20 +00:00
Nicholas Marriott
e8b25188ad
Missing ;. From eric@ ages ago.
2009-10-29 08:59:17 +00:00
Tiago Cunha
d13d3a9902
Sync OpenBSD patchset 471:
...
Add a minor optimisatin: if the character being printed is space, don't worry
about setting the background colour or attributes (except reverse).
2009-10-28 23:17:28 +00:00
Tiago Cunha
c529c02ac0
Sync OpenBSD patchset 470:
...
Twaek this slightly to avoid confusing use of flags variable.
2009-10-28 23:16:30 +00:00
Tiago Cunha
745fd16452
Sync OpenBSD patchset 469:
...
Setting SGR0 when setting the fg and bg has problems if only one of the two is
meant to be default, so rewrite the code to move this outside, move setting
colours before attributes and generally clean up.
Tested by sthen@, fixes problems he was seeing with mutt and should fix some
existing problems with (rarely) lost attributes.
2009-10-28 23:15:32 +00:00
Tiago Cunha
f4514f5c60
Sync OpenBSD patchset 468:
...
Move the poll registration functions into the server-*.c files.
2009-10-28 23:14:15 +00:00
Tiago Cunha
a5acabd923
Sync OpenBSD patchset 467:
...
tabs are better; ok nicm
2009-10-28 23:12:38 +00:00
Tiago Cunha
e65aa04ad7
Sync OpenBSD patchset 466:
...
Clear signal flags /before/ taking action and continue afterwards to reduce
chance of dropping signals. Pointed out by deraadt@.
2009-10-28 23:11:07 +00:00
Tiago Cunha
d0afc47bfb
Sync OpenBSD patchset 465:
...
Call fstat() after fopen() rather than stat() before.
2009-10-28 23:10:05 +00:00
Tiago Cunha
ce743b2058
Sync OpenBSD patchset 464:
...
Reset the umask right after fopen to avoid leaving it changed on error, noticed
by deraadt@.
2009-10-28 23:08:52 +00:00
Tiago Cunha
88bb9381b2
Sync OpenBSD patchset 463:
...
Use strlcpy instead of strncpy, pointed out by deraadt.
2009-10-28 23:08:04 +00:00
Tiago Cunha
876ded6dfe
Sync OpenBSD patchset 462:
...
Don't do anything in the client callback if the client has already died to
avoid a use-after-free (the callback is used twice, once for the client itself
and once for the tty). Fixes crashes seen by Han Boetes.
2009-10-28 23:06:41 +00:00
Tiago Cunha
5a4ba76293
Sync OpenBSD patchset 461:
...
Nuke accidentally-committed debugging statement.
2009-10-28 23:05:43 +00:00
Tiago Cunha
31bb577075
Sync OpenBSD patchset 460:
...
Not all terminals swap CSI and SS3 on ctrl, so remove that.
Also mark the rxvt special-cases as such until terminfo is updated to have
kLFT5, kRIT5 etc.
2009-10-28 23:05:01 +00:00
Tiago Cunha
10aab82539
Sync OpenBSD patchset 459:
...
Rewrite xterm-keys code (both input and output) so that works (doesn't always
output the same modifiers, accepts all the possible input keys) and is more
understandable.
2009-10-28 23:03:51 +00:00
Tiago Cunha
1c4b7d33b1
Sync OpenBSD patchset 458:
...
Support the (mostly new) function key+modifier caps (kIC-kIC7). Most of these
will be caught (soon) by the xterm keys code in xterm itself but some other
descriptions such as rxvt define them as well.
2009-10-28 23:01:44 +00:00
Tiago Cunha
8ff0d06d34
Sync OpenBSD patchset 457:
...
On second thoughts, drop the rxvt output entirely.
2009-10-28 23:00:21 +00:00
Tiago Cunha
6cf9965e42
Sync OpenBSD patchset 456:
...
Set the output code for ctrl+cursor keys correctly, and disable (comment)
rxvt-style output.
2009-10-28 22:59:01 +00:00
Tiago Cunha
c45a56d66b
Sync OpenBSD patchset 455:
...
As we always put the cursor keys into application mode, assume keys sent
with CSI have ctrl.
Also add a couple of comments.
2009-10-28 22:57:55 +00:00
Tiago Cunha
a8300b7a44
Sync OpenBSD patchset 454:
...
Tidy up table.
2009-10-28 22:56:50 +00:00
Tiago Cunha
98122860cc
Sync OpenBSD patchset 453:
...
Drop INPUTKEY_CTRL and just handle it as part of the table.
2009-10-28 22:56:05 +00:00
Tiago Cunha
dd8174f545
Sync OpenBSD patchset 452:
...
Add or fix some comments.
2009-10-28 22:54:54 +00:00
Tiago Cunha
5350212e53
Sync OpenBSD patchset 451:
...
Tidy up table.
2009-10-28 22:54:00 +00:00
Nicholas Marriott
dc3fdc8dc7
If any client currently displaying a window pane has more than 1 KB of output
...
buffered, don't accept any further data from the process running in the pane.
This makes tmux much more responsive when flooded with output, although other
buffers can still have an impact when running remotely.
Prompted by a query from Ranganathan Sankaralingam.
2009-10-28 22:53:14 +00:00
Tiago Cunha
4f7e669271
Sync OpenBSD patchset 450:
...
Rename keypad keys to something more useful.
2009-10-28 22:53:03 +00:00
Tiago Cunha
165538b4bd
Sync OpenBSD patchset 449:
...
Remove the xterm-keys code which is broken (a replacement is coming but some
more cleanup is needed first).
2009-10-28 22:51:55 +00:00
Tiago Cunha
6338fd78f7
Sync OpenBSD patchset 448:
...
Don't try to continue processing a client if the session has been destroyed.
2009-10-28 22:50:24 +00:00
Tiago Cunha
181f7722b3
Sync OpenBSD patchset 447:
...
Remove -d from tmux.1 as well.
2009-10-28 22:49:22 +00:00
Tiago Cunha
41863470ba
Sync OpenBSD patchset 446:
...
Remove the -d flag to tmux and just use op/AX to detect default colours.
Irritatingly, although op can be used to tell if a terminal supports default
colours, it can't be used to set them because in some terminfo descriptions it
resets attributes as a side-effect (acts as sgr0) and in others it doesn't, so
it is not possible to determine reliably what the terminal state will be
afterwards. So if AX is missing and op is present, tmux just sends sgr0.
Anyone using -d for a terminal who finds they actually needed it can replace it
using terminal-overrides, but please let me know as it is probably an omission
from terminfo.
2009-10-28 22:48:35 +00:00
Tiago Cunha
c4637da860
Sync OpenBSD patchset 445:
...
+time.h.
2009-10-28 22:46:15 +00:00
Nicholas Marriott
1eaefbf169
Add a minor optimisatin: if the character being printed is space, don't worry
...
about setting the background colour or attributes (except reverse).
2009-10-28 08:52:36 +00:00
Nicholas Marriott
5730cbf3e3
Twaek this slightly to avoid confusing use of flags variable.
2009-10-28 08:33:20 +00:00
Nicholas Marriott
eb5f4460d1
Setting SGR0 when setting the fg and bg has problems if only one of the two is
...
meant to be default, so rewrite the code to move this outside, move setting
colours before attributes and generally clean up.
Tested by sthen@, fixes problems he was seeing with mutt and should fix some
existing problems with (rarely) lost attributes.
2009-10-28 08:27:33 +00:00
Nicholas Marriott
37ffdff5ba
Move the poll registration functions into the server-*.c files.
2009-10-27 13:03:33 +00:00
Theo Deraadt
ed62d1263c
tabs are better; ok nicm
2009-10-26 21:42:04 +00:00
Nicholas Marriott
a8b1379ccb
Clear signal flags /before/ taking action and continue afterwards to reduce
...
chance of dropping signals. Pointed out by deraadt@.
2009-10-26 21:38:18 +00:00
Nicholas Marriott
6b804f3a4a
Call fstat() after fopen() rather than stat() before.
2009-10-26 21:25:57 +00:00
Nicholas Marriott
539c73bdb1
Reset the umask right after fopen to avoid leaving it changed on error, noticed
...
by deraadt@.
2009-10-26 21:13:06 +00:00
Nicholas Marriott
6dc6333323
Use strlcpy instead of strncpy, pointed out by deraadt.
2009-10-26 21:10:24 +00:00
Nicholas Marriott
353f2a2ad4
Don't do anything in the client callback if the client has already died to
...
avoid a use-after-free (the callback is used twice, once for the client itself
and once for the tty). Fixes crashes seen by Han Boetes.
2009-10-26 20:47:00 +00:00
Nicholas Marriott
53957dcbaa
Nuke accidentally-committed debugging statement.
2009-10-26 18:16:32 +00:00
Nicholas Marriott
e831649b64
Not all terminals swap CSI and SS3 on ctrl, so remove that.
...
Also mark the rxvt special-cases as such until terminfo is updated to have
kLFT5, kRIT5 etc.
2009-10-26 17:59:46 +00:00
Nicholas Marriott
fd2ef18a70
Rewrite xterm-keys code (both input and output) so that works (doesn't always
...
output the same modifiers, accepts all the possible input keys) and is more
understandable.
2009-10-26 17:46:33 +00:00
Nicholas Marriott
c92c2bfb10
Support the (mostly new) function key+modifier caps (kIC-kIC7). Most of these
...
will be caught (soon) by the xterm keys code in xterm itself but some other
descriptions such as rxvt define them as well.
2009-10-26 16:00:51 +00:00
Nicholas Marriott
382aa8f6de
RHS spacing.
2009-10-26 15:07:52 +00:00
Nicholas Marriott
a460e1ada3
Fix in IE6.
2009-10-26 15:04:45 +00:00
Nicholas Marriott
aaef0d316f
Spacing tweaks.
2009-10-26 14:53:30 +00:00
Nicholas Marriott
bbca6fe5b0
On second thoughts, drop the rxvt output entirely.
2009-10-26 14:30:57 +00:00
Nicholas Marriott
5cce40d4c3
Set the output code for ctrl+cursor keys correctly, and disable (comment)
...
rxvt-style output.
2009-10-26 14:27:13 +00:00
Nicholas Marriott
d0aa883e07
As we always put the cursor keys into application mode, assume keys sent
...
with CSI have ctrl.
Also add a couple of comments.
2009-10-26 13:58:02 +00:00
Nicholas Marriott
fcd3b260ac
Tidy up table.
2009-10-26 13:41:46 +00:00
Nicholas Marriott
a0ec4a11ee
Drop INPUTKEY_CTRL and just handle it as part of the table.
2009-10-26 13:34:26 +00:00
Nicholas Marriott
25d2000625
Add or fix some comments.
2009-10-26 13:29:24 +00:00
Nicholas Marriott
b3604dcf83
Tidy up table.
2009-10-26 13:22:30 +00:00
Nicholas Marriott
db4452d307
Rename keypad keys to something more useful.
2009-10-26 13:13:33 +00:00
Nicholas Marriott
10a656eedb
Remove the xterm-keys code which is broken (a replacement is coming but some
...
more cleanup is needed first).
2009-10-26 13:02:53 +00:00
Tiago Cunha
76bb6d6138
Add missing license.
2009-10-25 22:16:55 +00:00
Nicholas Marriott
3c9619bb0a
Don't try to continue processing a client if the session has been destroyed.
2009-10-25 22:00:15 +00:00
Nicholas Marriott
2536ea12cb
+confirm-before.
2009-10-25 21:58:05 +00:00
Nicholas Marriott
cb3b0e661d
Add or clarify licenses where appropriate.
2009-10-25 21:45:26 +00:00
Nicholas Marriott
48b6d18e7f
Remove -d from tmux.1 as well.
2009-10-25 21:12:15 +00:00
Nicholas Marriott
3a7636ff0f
Remove the -d flag to tmux and just use op/AX to detect default colours.
...
Irritatingly, although op can be used to tell if a terminal supports default
colours, it can't be used to set them because in some terminfo descriptions it
resets attributes as a side-effect (acts as sgr0) and in others it doesn't, so
it is not possible to determine reliably what the terminal state will be
afterwards. So if AX is missing and op is present, tmux just sends sgr0.
Anyone using -d for a terminal who finds they actually needed it can replace it
using terminal-overrides, but please let me know as it is probably an omission
from terminfo.
2009-10-25 21:11:21 +00:00
Nicholas Marriott
2cee0139e4
+.
2009-10-25 18:23:14 +00:00
Nicholas Marriott
5bed597e61
+time.h.
2009-10-25 17:51:07 +00:00
Tiago Cunha
132485a660
Sync OpenBSD patchset 444:
...
[ is a punctuation character and should be escaped with Ql. Although the
current groff version we have seems to handle it fine, other versions are not
so tolerant.
2009-10-25 10:42:56 +00:00
Tiago Cunha
d55ee38c7f
Sync OpenBSD patchset 443:
...
Bring a comment into line with reality.
2009-10-25 10:42:08 +00:00
Tiago Cunha
e214ea1c59
Update.
2009-10-25 10:41:25 +00:00
Tiago Cunha
85ae64b981
Sync OpenBSD patchset 442:
...
-a option to kill all except current pane. From Tiago Cunha, thanks!
2009-10-25 10:41:03 +00:00
Tiago Cunha
4a87cef46f
Sync OpenBSD patchset 441:
...
Support the bright fg/bg colour SGR 90-97 and 100-107.
Reported by Tim Allen.
2009-10-25 10:39:48 +00:00
Nicholas Marriott
8c00dc2b6b
Mustn't forget this.
2009-10-25 08:14:56 +00:00
Nicholas Marriott
38aa9a447a
Much improved web page from Mike Putnam.
2009-10-25 08:14:34 +00:00
Nicholas Marriott
6dc796bb29
Update.
2009-10-25 08:13:13 +00:00
Nicholas Marriott
7b4f0398c3
[ is a punctuation character and should be escaped with Ql. Although the
...
current groff version we have seems to handle it fine, other versions are not
so tolerant.
2009-10-25 01:10:57 +00:00
Nicholas Marriott
d8e566d0e9
cc -> $(CC)
2009-10-24 22:02:18 +00:00
Nicholas Marriott
385236e967
Bring a comment into line with reality.
2009-10-24 21:18:33 +00:00
Nicholas Marriott
df818c1b69
-a option to kill all except current pane. From Tiago Cunha, thanks!
2009-10-24 10:12:39 +00:00
Tiago Cunha
5820efa513
Sync OpenBSD patchset 440:
...
Redraw checks have to after handling input or pane redraw flags set by key
presses will not be acted on.
2009-10-23 17:53:16 +00:00
Tiago Cunha
e05fe0ba05
Sync OpenBSD patchset 439:
...
The client buffers have to be checked after every event in order to catch the
escape timers and properly reset the cursor.
2009-10-23 17:51:57 +00:00
Tiago Cunha
134a33f6e0
Adjust OpenBSD patchset 438 to the portable version.
2009-10-23 17:51:02 +00:00
Tiago Cunha
cc9ef11985
Sync OpenBSD patchset 438:
...
Split the server code handling clients, jobs and windows off into separate
files from server.c (merging server-msg.c into the client file) and rather than
iterating over each set after poll(), allow a callback to be specified when the
fd is added and just walk once over the returned pollfds calling each callback
where needed.
More to come, getting this in so it is tested.
2009-10-23 17:49:47 +00:00
Tiago Cunha
9ad2347258
Sync OpenBSD patchset 437:
...
Only redraw the pane when changing mode, not the entire window.
2009-10-23 17:41:20 +00:00
Tiago Cunha
dbefea339f
Sync OpenBSD patchset 436:
...
Merge prepare_cmd into main as it is short and only called once.
2009-10-23 17:40:23 +00:00
Tiago Cunha
9260888d1c
Fix CVS keyword.
2009-10-23 17:38:42 +00:00
Tiago Cunha
eaa188bb63
Sync OpenBSD patchset 435:
...
Tidy identify message send into a separate function.
2009-10-23 17:37:41 +00:00
Tiago Cunha
dc8b7d6b03
Sync OpenBSD patchset 434:
...
Don't try to unsuspend a client if it isn't suspended.
2009-10-23 17:33:26 +00:00
Tiago Cunha
84392ffc0d
Sync OpenBSD patchset 433:
...
Client tidying: get rid of client_ctx struct in favour of two variables in
client.c, and move the functions in client-fn.c into other files.
2009-10-23 17:32:26 +00:00
Tiago Cunha
c6828bf32b
Sync OpenBSD patchset 432:
...
Unused variable.
2009-10-23 17:28:29 +00:00
Tiago Cunha
31552722a8
Sync OpenBSD patchset 431:
...
Remove unused function.
2009-10-23 17:27:40 +00:00
Tiago Cunha
d7d4d7830b
Sync OpenBSD patchset 430:
...
Nuke dead store.
2009-10-23 17:26:40 +00:00
Tiago Cunha
dbf2351d3a
Sync OpenBSD patchset 429:
...
Now we are correctly not redrawing the whole pane on linefeed, redo the
last-cursor-position code to move to the right position when panes reach EOL.
2009-10-23 17:25:51 +00:00
Tiago Cunha
9731625230
Sync OpenBSD patchset 428:
...
Tweak descriptions for up/down pane to be clearer.
2009-10-23 17:24:57 +00:00
Tiago Cunha
a572533c89
Sync OpenBSD patchset 427:
...
Don't redraw the scroll region on linefeed/reverse index unless it is necessary
(the cursor is at the bottom/top). Should fix slow cursor movement when using
vi in a pane spotted by pirofti@.
2009-10-23 17:23:52 +00:00
Tiago Cunha
8ec8d1f32a
Sync OpenBSD patchset 426:
...
Some terminals don't correctly clear their let's-wrap flag after changing the
scroll region (which moves the cursor to 0,0). This means that if the cursor
was at the edge of the screen, any further output after scroll region change
incorrectly causes a line wrap. Add a workaround to move the cursor to position
0 if it is at the screen edge before changing scroll region.
2009-10-23 17:22:39 +00:00
Tiago Cunha
21b23f8e54
Sync OpenBSD patchset 424:
...
%zu not %u, doh.
2009-10-23 17:21:34 +00:00
Tiago Cunha
fce889235c
Sync OpenBSD patchset 422:
...
Correctly nuke the EOL $ marker when scrolling, reported by martynas@, thanks.
2009-10-23 17:17:20 +00:00
Tiago Cunha
f41a3914a5
Sync OpenBSD patchset 421:
...
Try to reduce the UTF-8 mess.
Get rid of passing around u_char[4]s and define a struct utf8_data which has
character data, size (sequence length) and width. Move UTF-8 character
collection into two functions utf8_open/utf8_append in utf8.c which fill in
this struct and use these functions from input.c and the various functions in
screen-write.c.
Space for rather more data than is necessary for one UTF-8 sequence is in the
utf8_data struct because screen_write_copy is still nasty and needs to reinject
the character (after combining) into screen_write_cell.
2009-10-23 17:16:25 +00:00
Tiago Cunha
c643ac4827
Sync OpenBSD patchset 420:
...
UTF-8 combined character fixes.
Thai can have treble combinations (1 x width=1 then 2 x width=0) so bump the
UTF-8 cell data size to 9 and alter the code to allow this.
Also break off the combining code into a separate function, handle any further
combining beyond the buffer size by replacing the character with _s, and when
redrawing the UTF-8 character don't assume the first part has just been
printed, redraw the entire line.
2009-10-23 17:13:10 +00:00
Tiago Cunha
97e02eae7d
Sync OpenBSD patchset 419:
...
Move the check for whether to force a line wrapper lower down into the tty code
where it has access to the tty width, which is what should have been checked.
2009-10-23 17:11:26 +00:00
Tiago Cunha
516bfe7ba3
Sync OpenBSD patchset 418:
...
Nuke stray blank line.
2009-10-23 17:10:00 +00:00
Tiago Cunha
9463492ac1
Sync OpenBSD patchset 417:
...
Stop updating the screen when not in output mode, stops copy mode getting
confused.
2009-10-23 17:09:21 +00:00
Tiago Cunha
2f14ef61ff
Sync OpenBSD patchset 416:
...
Always move the cursor position on !xenl terminals, since there is no invisible
last cursor position.
Also nuke an unused variable.
2009-10-23 17:08:30 +00:00
Tiago Cunha
2e39ab59d7
Sync OpenBSD patchset 415:
...
Don't print wide characters at screen width - 1. Matches uterm behaviour and
is probably a better idea anyway.
2009-10-23 17:07:18 +00:00
Tiago Cunha
ac4e4a2b6c
Sync OpenBSD patchset 414:
...
Instead of having a complicated check to see if the cursor is in the last
position to avoid an explicit wrap, actually move it there.
Some UTF-8 fixes to come.
2009-10-23 17:06:23 +00:00
Tiago Cunha
13d1df659f
Sync OpenBSD patchset 413:
...
When checking whether the region will scroll and the cursor position is thus
unsuitable for using CUD/CUU, check the current cursor position not the target
position.
2009-10-23 17:03:48 +00:00
Nicholas Marriott
c2b8f3b55a
Support the bright fg/bg colour SGR 90-97 and 100-107.
...
Reported by Tim Allen.
2009-10-23 15:48:39 +00:00
Nicholas Marriott
1f22a199fb
Redraw checks have to after handling input or pane redraw flags set by key
...
presses will not be acted on.
2009-10-22 21:01:52 +00:00
Nicholas Marriott
9c40a4edc5
The client buffers have to be checked after every event in order to catch the
...
escape timers and properly reset the cursor.
2009-10-22 20:04:21 +00:00
Nicholas Marriott
eddcc3dfa9
Split the server code handling clients, jobs and windows off into separate
...
files from server.c (merging server-msg.c into the client file) and rather than
iterating over each set after poll(), allow a callback to be specified when the
fd is added and just walk once over the returned pollfds calling each callback
where needed.
More to come, getting this in so it is tested.
2009-10-22 19:41:51 +00:00
Nicholas Marriott
fd35b6f836
Only redraw the pane when changing mode, not the entire window.
2009-10-22 12:30:00 +00:00
Nicholas Marriott
eb0c33cba4
Merge prepare_cmd into main as it is short and only called once.
2009-10-22 10:04:07 +00:00
Nicholas Marriott
284b94662a
Tidy identify message send into a separate function.
2009-10-21 21:11:55 +00:00
Nicholas Marriott
d69b364b5f
Don't try to unsuspend a client if it isn't suspended.
2009-10-21 20:16:40 +00:00
Nicholas Marriott
90ad041fa5
Client tidying: get rid of client_ctx struct in favour of two variables in
...
client.c, and move the functions in client-fn.c into other files.
2009-10-21 20:11:47 +00:00
Nicholas Marriott
59e667906f
Unused variable.
2009-10-21 19:27:09 +00:00
Nicholas Marriott
a22c06a2d6
Remove unused function.
2009-10-21 18:20:16 +00:00
Nicholas Marriott
9a4855295b
Nuke dead store.
2009-10-21 18:12:31 +00:00
Nicholas Marriott
dd46f634fe
Now we are correctly not redrawing the whole pane on linefeed, redo the
...
last-cursor-position code to move to the right position when panes reach EOL.
2009-10-21 16:52:30 +00:00
Nicholas Marriott
af2b0f452c
Tweak descriptions for up/down pane to be clearer.
2009-10-21 13:48:27 +00:00
Nicholas Marriott
9b5da97e6f
Don't redraw the scroll region on linefeed/reverse index unless it is necessary
...
(the cursor is at the bottom/top). Should fix slow cursor movement when using
vi in a pane spotted by pirofti@.
2009-10-21 13:42:44 +00:00
Nicholas Marriott
683ddbc466
Some terminals don't correctly clear their let's-wrap flag after changing the
...
scroll region (which moves the cursor to 0,0). This means that if the cursor
was at the edge of the screen, any further output after scroll region change
incorrectly causes a line wrap. Add a workaround to move the cursor to position
0 if it is at the screen edge before changing scroll region.
2009-10-21 09:36:53 +00:00
Nicholas Marriott
4afecbe400
Getting the read and write ends of the pipe the right way round is usually
...
recommended. DOH.
2009-10-21 07:37:11 +00:00
Nicholas Marriott
7825871d6a
Getting the read and write ends of the pipe the right way round is usually
...
recommended. DOH.
2009-10-21 07:24:23 +00:00
Nicholas Marriott
bb625a76d9
+.
2009-10-21 07:19:59 +00:00
Nicholas Marriott
9afb0d739e
%zu not %u, doh.
2009-10-20 22:17:33 +00:00
Nicholas Marriott
6f2169037e
Sort out stdout before stdin/stderr in case the stdout side of the pipe got one
...
of their fds.
2009-10-20 22:15:32 +00:00
Nicholas Marriott
480f5d3184
Correctly nuke the EOL $ marker when scrolling, reported by martynas@, thanks.
2009-10-20 21:35:25 +00:00
Nicholas Marriott
1af09d6330
Try to reduce the UTF-8 mess.
...
Get rid of passing around u_char[4]s and define a struct utf8_data which has
character data, size (sequence length) and width. Move UTF-8 character
collection into two functions utf8_open/utf8_append in utf8.c which fill in
this struct and use these functions from input.c and the various functions in
screen-write.c.
Space for rather more data than is necessary for one UTF-8 sequence is in the
utf8_data struct because screen_write_copy is still nasty and needs to reinject
the character (after combining) into screen_write_cell.
2009-10-20 19:18:28 +00:00
Nicholas Marriott
62f234ce3b
UTF-8 combined character fixes.
...
Thai can have treble combinations (1 x width=1 then 2 x width=0) so bump the
UTF-8 cell data size to 9 and alter the code to allow this.
Also break off the combining code into a separate function, handle any further
combining beyond the buffer size by replacing the character with _s, and when
redrawing the UTF-8 character don't assume the first part has just been
printed, redraw the entire line.
2009-10-20 17:33:33 +00:00
Nicholas Marriott
387f4d42cc
Move the check for whether to force a line wrapper lower down into the tty code
...
where it has access to the tty width, which is what should have been checked.
2009-10-20 16:32:23 +00:00
Nicholas Marriott
d1e6388fed
Nuke stray blank line.
2009-10-20 14:22:57 +00:00
Nicholas Marriott
b027aa103c
+.
2009-10-20 14:22:17 +00:00
Nicholas Marriott
2afe395ff2
Stop updating the screen when not in output mode, stops copy mode getting
...
confused.
2009-10-19 13:18:13 +00:00
Nicholas Marriott
59269a431b
+.
2009-10-17 15:58:52 +00:00
Nicholas Marriott
daa26079ee
Always move the cursor position on !xenl terminals, since there is no invisible
...
last cursor position.
Also nuke an unused variable.
2009-10-17 08:35:38 +00:00
Nicholas Marriott
fe26b5d25f
Don't print wide characters at screen width - 1. Matches uterm behaviour and
...
is probably a better idea anyway.
2009-10-17 08:32:18 +00:00
Nicholas Marriott
43d62c1ae3
Instead of having a complicated check to see if the cursor is in the last
...
position to avoid an explicit wrap, actually move it there.
Some UTF-8 fixes to come.
2009-10-17 08:24:46 +00:00
Nicholas Marriott
70355021d8
When checking whether the region will scroll and the cursor position is thus
...
unsuitable for using CUD/CUU, check the current cursor position not the target
position.
2009-10-16 19:09:40 +00:00
Nicholas Marriott
c8f2584d87
+.
2009-10-15 20:48:51 +00:00
Tiago Cunha
24d7cf6618
Sync OpenBSD patchset 412:
...
The pane pty name isn't useful for anything so show the pane number instead.
2009-10-15 20:10:28 +00:00
Nicholas Marriott
1fdf489cae
Turn off stupid warnings when using Sun CC.
2009-10-15 08:15:06 +00:00
Nicholas Marriott
0614ca434a
Fill in the tty name in SunOS's forkpty compat, and use it in osdep_getname.
...
From Todd Carson.
Tweaked by me to nuke (void) casts. Say no to lint appeasement! ;-)
2009-10-15 07:11:25 +00:00
Nicholas Marriott
dba0d54cf5
The pane pty name isn't useful for anything so show the pane number instead.
2009-10-15 07:05:38 +00:00
Tiago Cunha
8085adb8a2
Sync OpenBSD patchset 411:
...
cmd_find_client shouldn't die when there is an empty slot in the clients
array. DOH.
2009-10-15 01:56:45 +00:00
Tiago Cunha
3d88da7b2a
Sync OpenBSD patchset 409:
...
Move lines into the history when scrolling even if the scroll region is not
the entire screen.
Allows ircII users to see history, prompted by naddy.
2009-10-15 01:55:12 +00:00
Tiago Cunha
ee46dba585
Sync OpenBSD patchset 408:
...
Handle DECCOLM by just emulating its side-effect of clearing the screen.
2009-10-15 01:53:48 +00:00
Tiago Cunha
a505ca69d9
Sync OpenBSD patchset 407:
...
Add mode keys to move the cursor to the top, middle and bottom of the screen.
H/M/L in vi mode and M-R/M-r in emacs (bottom of screen not bound in emacs).
2009-10-15 01:52:47 +00:00
Tiago Cunha
428f76db80
Fix CVS keyword.
2009-10-15 01:51:09 +00:00
Tiago Cunha
b6ebf7cb60
Update.
2009-10-15 01:49:39 +00:00
Tiago Cunha
6257be6371
Sync OpenBSD patchset 406:
...
Do this in a better way - print messages when exiting with nonzero.
Also remove the login shell information from server-info, only the client
should care about it.
2009-10-15 01:48:24 +00:00
Tiago Cunha
9800dc4697
Sync OpenBSD patchset 405:
...
Don't print exit messages when used as a login shell, requested by martynas@ a
while back.
2009-10-15 01:45:13 +00:00
Tiago Cunha
b8e4bd2029
Sync OpenBSD patchset 404:
...
Don't try to use \n across scroll region when doing \r\n either.
2009-10-15 01:44:15 +00:00
Tiago Cunha
941032b707
Sync OpenBSD patchset 403:
...
When a session is unattached, reset its activity timer to prevent it locking
instantly when reattached.
2009-10-15 01:43:16 +00:00
Tiago Cunha
fe99f6fa11
Sync OpenBSD patchset 402:
...
Instead of using something sort of similar for both newline checks, use
something the same. Doesn't fix the bug I'm looking for though :-/.
2009-10-15 01:42:07 +00:00
Tiago Cunha
6103628129
Sync OpenBSD patchset 401:
...
When drawing lines that have wrapped naturally, don't force a newline but
permit them to wrap naturally again. This allows terminals that use this to
guess where lines start and end for eg mouse selecting (like xterm) to work
correctly.
This was another long-standing issue raised by several people over the last
while.
Thanks to martynas@ for much testing. This was not trivial to get right so
bringing it in for wider testing and adn to fix any further glitches in-tree.
2009-10-15 01:41:14 +00:00
Tiago Cunha
cbd3b1bc9b
Sync OpenBSD patchset 400:
...
When backspace is received at the beginning of a line and the previous line was
wrapped, move the cursor back up to the end of the previous line.
Another one of the forgotten persons requested this quite a while ago (I need
to start noting names on todo items...) when it was quite hard to
implement. Now it is easy and I don't see it can do any harm, so hey presto...
2009-10-15 01:39:30 +00:00
Tiago Cunha
04db3c6211
Sync OpenBSD patchset 399:
...
Don't run through the column unchanged case if the row was unchanged but there
were no suitable optimisations, instead make it an else to fall through to
absolute addressing.
2009-10-15 01:38:09 +00:00
Tiago Cunha
858b8b190b
Sync OpenBSD patchset 398:
...
If the vertical cursor movement crosses the scroll region, CUU and CUD
shouldn't be used even if VPA isn't present - in that case CUP should be used.
2009-10-15 01:36:53 +00:00
Tiago Cunha
7af01a4afb
Sync OpenBSD patchset 397:
...
Wrap a couple of long lines.
2009-10-15 01:35:35 +00:00
Tiago Cunha
9e4a3d50f0
Sync OpenBSD patchset 396:
...
Use absolute movement if right at the end of the line as it isn't a reliable
place to move from relatively.
2009-10-15 01:34:28 +00:00
Tiago Cunha
44fd6f4381
Sync OpenBSD patchset 395:
...
Use relative cursor movement instead of absolute when possible and when
supported by the terminal to reduce the size of the output data (generally
about 10-20%).
2009-10-15 01:33:21 +00:00
Tiago Cunha
8ab3a3d9aa
Sync OpenBSD patchset 394:
...
Permit attributes to be turned off in #[] by prefixing with "no", for example
"noblink".
2009-10-15 01:31:38 +00:00
Tiago Cunha
8bdcc10c8f
Sync OpenBSD patchset 393:
...
Similarly add a tty_cursor_pane function to tidy up most of the calls.
2009-10-15 01:30:00 +00:00
Tiago Cunha
6369fca253
Sync OpenBSD patchset 392:
...
_absolute is redundant, just use tty_region.
2009-10-15 01:28:14 +00:00
Tiago Cunha
9b771a96f0
Sync OpenBSD patchset 391:
...
Cleanup: use two functions for region setting, one for absolute and one inside
pane.
2009-10-15 01:26:50 +00:00
Nicholas Marriott
1a3c334c75
cmd_find_client shouldn't die when there is an empty slot in the clients
...
array. DOH.
2009-10-14 20:52:28 +00:00
Nicholas Marriott
f8f2421ac3
Don't let cmd_lookup_client find clients w/o a session.
2009-10-14 13:22:24 +00:00
Nicholas Marriott
9e6d1b24c8
Support for automatic-rename for Solaris thanks to Todd Carson.
2009-10-14 10:14:21 +00:00
Nicholas Marriott
adad557499
Don't allow cmd_lookup_client to test clients without a session.
2009-10-14 09:29:10 +00:00
Nicholas Marriott
ad566a86de
Move lines into the history when scrolling even if the scroll region is not
...
the entire screen.
Allows ircII users to see history, prompted by naddy.
2009-10-13 15:38:37 +00:00
Nicholas Marriott
71dc6e04e8
Handle DECCOLM by just emulating its side-effect of clearing the screen.
2009-10-13 15:23:13 +00:00
Nicholas Marriott
587e7127eb
+.
2009-10-13 14:35:06 +00:00
Nicholas Marriott
6b522bd770
+.
2009-10-13 14:27:57 +00:00
Nicholas Marriott
edc901d107
Lots of stuff is done done done.
2009-10-13 13:48:47 +00:00
Nicholas Marriott
38df960e68
Add mode keys to move the cursor to the top, middle and bottom of the screen.
...
H/M/L in vi mode and M-R/M-r in emacs (bottom of screen not bound in emacs).
2009-10-13 13:45:56 +00:00
Nicholas Marriott
0907ca1931
Do this in a better way - print messages when exiting with nonzero.
...
Also remove the login shell information from server-info, only the client
should care about it.
2009-10-13 13:15:26 +00:00
Nicholas Marriott
760e39e405
Don't print exit messages when used as a login shell, requested by martynas@ a
...
while back.
2009-10-13 13:11:06 +00:00
Nicholas Marriott
5d78371628
Don't try to use \n across scroll region when doing \r\n either.
2009-10-13 08:37:15 +00:00
Nicholas Marriott
9294cb099f
When a session is unattached, reset its activity timer to prevent it locking
...
instantly when reattached.
2009-10-13 06:14:08 +00:00
Nicholas Marriott
4dcb5040a0
Instead of using something sort of similar for both newline checks, use
...
something the same. Doesn't fix the bug I'm looking for though :-/.
2009-10-13 00:44:16 +00:00
Nicholas Marriott
e88a2ba7d4
+.
2009-10-12 23:13:06 +00:00
Nicholas Marriott
d7626cd9d7
When drawing lines that have wrapped naturally, don't force a newline but
...
permit them to wrap naturally again. This allows terminals that use this to
guess where lines start and end for eg mouse selecting (like xterm) to work
correctly.
This was another long-standing issue raised by several people over the last
while.
Thanks to martynas@ for much testing. This was not trivial to get right so
bringing it in for wider testing and adn to fix any further glitches in-tree.
2009-10-12 17:19:47 +00:00
Nicholas Marriott
8608c6970d
When backspace is received at the beginning of a line and the previous line was
...
wrapped, move the cursor back up to the end of the previous line.
Another one of the forgotten persons requested this quite a while ago (I need
to start noting names on todo items...) when it was quite hard to
implement. Now it is easy and I don't see it can do any harm, so hey presto...
2009-10-12 16:59:55 +00:00
Nicholas Marriott
693b3d03e6
Don't run through the column unchanged case if the row was unchanged but there
...
were no suitable optimisations, instead make it an else to fall through to
absolute addressing.
2009-10-12 16:41:02 +00:00
Nicholas Marriott
eb9826f65d
If the vertical cursor movement crosses the scroll region, CUU and CUD
...
shouldn't be used even if VPA isn't present - in that case CUP should be used.
2009-10-12 16:37:43 +00:00
Nicholas Marriott
56157444de
Wrap a couple of long lines.
2009-10-12 16:33:39 +00:00
Nicholas Marriott
0aab5811ca
Use absolute movement if right at the end of the line as it isn't a reliable
...
place to move from relatively.
2009-10-12 14:54:19 +00:00
Nicholas Marriott
687c4a9fab
Use relative cursor movement instead of absolute when possible and when
...
supported by the terminal to reduce the size of the output data (generally
about 10-20%).
2009-10-12 13:01:18 +00:00
Nicholas Marriott
33ae063cae
Permit attributes to be turned off in #[] by prefixing with "no", for example
...
"noblink".
2009-10-12 11:08:02 +00:00
Nicholas Marriott
762459954f
Similarly add a tty_cursor_pane function to tidy up most of the calls.
2009-10-12 09:29:58 +00:00
Nicholas Marriott
972a6f5656
_absolute is redundant, just use tty_region.
2009-10-12 09:16:59 +00:00
Nicholas Marriott
f05b32f7ad
Cleanup: use two functions for region setting, one for absolute and one inside
...
pane.
2009-10-12 09:09:35 +00:00
Tiago Cunha
629afba526
Reduce diff with OpenBSD.
2009-10-12 00:49:06 +00:00
Tiago Cunha
f92cc84631
Sync OpenBSD patchset 390:
...
Like linefeed, don't set the scroll region for reverse index unless it will be
needed.
While here, also tidy up a couple of long lines and remove an extraneous blank.
2009-10-12 00:41:00 +00:00
Tiago Cunha
6ea6d1b29f
Sync OpenBSD patchset 389:
...
punctuation fix;
2009-10-12 00:38:31 +00:00
Tiago Cunha
39afe3fc2a
Sync OpenBSD patchset 388:
...
Set the current window pointer to NULL when killing a winlink that is to be
replaced with link-window -k. This prevents it being pushed onto the last
window stack and causing a use-after-free.
Only took me an hour to find this :-/...
2009-10-12 00:37:41 +00:00
Tiago Cunha
3584fa15ec
No paths.h in here, as well.
2009-10-12 00:36:31 +00:00
Tiago Cunha
6091b051fb
Sync OpenBSD patchset 387:
...
Add a pipe-pane command to allow a pane to be piped to a shell command, for
example:
pipe-pane 'cat >~/out'
No arguments stops outputing and closes the pipe; the -o flag toggles a pipe
and on and off (useful for key bindings).
Suggested by espie@.
2009-10-12 00:35:08 +00:00
Tiago Cunha
a053aeddf8
Sync OpenBSD patchset 386:
...
Convert if-shell over to the background job framework as well.
2009-10-12 00:29:03 +00:00
Tiago Cunha
50ece89ab9
Sync OpenBSD patchset 385:
...
Remove a debugging leftover and add copyright.
2009-10-12 00:26:06 +00:00
Tiago Cunha
197f8b88bf
Sync OpenBSD patchset 384:
...
Switch run-shell over to queue the command in the background like #().
2009-10-12 00:25:25 +00:00
Tiago Cunha
c8d0608369
Sync OpenBSD patchset 383:
...
There isn't much point in having a free function if it isn't used.
Also allow a NULL tree.
2009-10-12 00:22:17 +00:00
Tiago Cunha
1b03bc2404
Sync OpenBSD patchset 382:
...
Collect status from dead jobs and don't invoke the callback until both
all input (the socket is closed) and status is available.
2009-10-12 00:21:08 +00:00
Tiago Cunha
b26ea8462e
Sync OpenBSD patchset 381:
...
Clean up by introducing a wrapper struct for mouse clicks rather than passing
three u_chars around.
As a side-effect this fixes incorrectly rejecting high cursor positions
(because it was comparing them as signed char), reported by Tom Doherty.
2009-10-12 00:18:19 +00:00
Tiago Cunha
323469723b
Sync OpenBSD patchset 380:
...
Braek some bits out of server_fill_client() that aren't really related to
polling into their own function.
2009-10-12 00:14:44 +00:00
Tiago Cunha
d7fa9bc056
Sync OpenBSD patchset 379:
...
Put all jobs on a global all_jobs list and use that in server.c instead of
running through all the clients.
2009-10-12 00:12:33 +00:00
Tiago Cunha
256a55b33b
Sync OpenBSD patchset 378:
...
-scroll mode which is dead.
2009-10-12 00:09:48 +00:00
Tiago Cunha
53f1e6eed2
Update.
2009-10-12 00:08:48 +00:00
Tiago Cunha
0b8a7dc4a2
Sync OpenBSD patchset 377:
...
Split list-panes off from list-windows.
2009-10-12 00:08:12 +00:00
Tiago Cunha
cf9804f2a0
Sync OpenBSD patchset 376:
...
Accept key and mouse input for keys in zombified windows if they are in a mode..
2009-10-12 00:04:56 +00:00
Tiago Cunha
bc90c7c199
Sync OpenBSD patchset 375:
...
When a window is zombified and automatic-rename is on, append [dead] to the
name.
2009-10-12 00:03:04 +00:00
Tiago Cunha
3e93bdf31b
Do not include paths.h, since it's OS-dependent, due to OpenBSD patchset 374.
2009-10-11 23:59:34 +00:00
Tiago Cunha
bc236109fd
Sync OpenBSD patchset 374:
...
Rather than running status-left, status-right and window title #() with popen
immediately every redraw, queue them up and run them in the background,
starting each once every status-interval. The actual status line uses the
output from the last run.
This brings several advantages:
- tmux itself may be called from inside #() without causing the server to hang;
- likewise, sleep or similar doesn't cause the server to block;
- commands aren't run excessively often when redrawing;
- commands shared by status-left and status-right, or used multiple times, will
only be run once.
run-shell and if-shell still use system()/popen() but will be changed over to
use this too later.
2009-10-11 23:55:26 +00:00
Tiago Cunha
07ad6da7e8
Update.
2009-10-11 23:47:02 +00:00
Tiago Cunha
ea1721bcb0
Sync OpenBSD patchset 373:
...
New option, mouse-select-pane. If on, the mouse may be used to select the
current pane.
Suggested by sthen@ and also by someone else ages ago who I have forgotten.
2009-10-11 23:46:02 +00:00
Tiago Cunha
2486a36af3
Sync OpenBSD patchset 372:
...
There is no point setting the scroll region up for line feeds unless scrolling
is actually going to happen, so don't.
2009-10-11 23:39:37 +00:00
Tiago Cunha
6a1ebb11df
Sync OpenBSD patchset 371:
...
Add "grouped sessions" which have independent name, options, current window and
so on but where the linked windows are synchronized (ie creating, killing
windows and so on are mirrored between the sessions). A grouped session may be
created by passing -t to new-session.
Had this around for a while, tested by a couple of people.
2009-10-11 23:38:16 +00:00
Tiago Cunha
1fd3a405e6
Update.
2009-10-11 23:31:02 +00:00
Tiago Cunha
91e4dc83fc
Sync OpenBSD patchset 370:
...
Support for individual session idle time locking. May be enabled by turning off
the lock-server option (it is on by default). When this is off, each session
locks when it has been idle for the lock-after-time setting. When on, the
entire server locks when ALL sessions have been idle for their individual
lock-after-time settings.
This replaces one global-only option (lock-after-time) with another
(lock-server), but the default behaviour is usually preferable so there don't
seem to be many alternatives.
Diff/idea largely from Thomas Adam, tweaked by me.
2009-10-11 23:30:28 +00:00
Tiago Cunha
a4ea6a9d19
Sync OpenBSD patchset 369:
...
Instead of passing a struct pollfd ** around through various functions, build
them into a tree and then convert into a flat poll array before and after poll.
This adds a little code but should reduce annoying problems with ordering when
adding new things that also need to be polled.
2009-10-11 23:25:44 +00:00
Nicholas Marriott
0a2a354499
Like linefeed, don't set the scroll region for reverse index unless it will be
...
needed.
While here, also tidy up a couple of long lines and remove an extraneous blank.
2009-10-11 22:35:10 +00:00
Nicholas Marriott
0e5f20a97d
+.
2009-10-11 22:06:25 +00:00
Jason McIntyre
b4ef3e5071
punctuation fix;
2009-10-11 14:12:10 +00:00
Nicholas Marriott
bc67e01e52
Done or not doing.
2009-10-11 12:46:40 +00:00
Nicholas Marriott
fbb030d7f7
Set the current window pointer to NULL when killing a winlink that is to be
...
replaced with link-window -k. This prevents it being pushed onto the last
window stack and causing a use-after-free.
Only took me an hour to find this :-/...
2009-10-11 10:39:27 +00:00
Nicholas Marriott
64b5f39656
Add a pipe-pane command to allow a pane to be piped to a shell command, for
...
example:
pipe-pane 'cat >~/out'
No arguments stops outputing and closes the pipe; the -o flag toggles a pipe
and on and off (useful for key bindings).
Suggested by espie@.
2009-10-11 10:04:27 +00:00
Nicholas Marriott
325e20d76d
Convert if-shell over to the background job framework as well.
2009-10-11 09:10:57 +00:00
Nicholas Marriott
88f3ffe86e
Remove a debugging leftover and add copyright.
2009-10-11 09:04:33 +00:00
Nicholas Marriott
cebc988dd4
Switch run-shell over to queue the command in the background like #().
2009-10-11 08:58:05 +00:00
Nicholas Marriott
abedfa77da
There isn't much point in having a free function if it isn't used.
...
Also allow a NULL tree.
2009-10-11 07:30:07 +00:00
Nicholas Marriott
ff4b4e667a
Collect status from dead jobs and don't invoke the callback until both
...
all input (the socket is closed) and status is available.
2009-10-11 07:20:16 +00:00
Nicholas Marriott
4bc0f6e7e9
Clean up by introducing a wrapper struct for mouse clicks rather than passing
...
three u_chars around.
As a side-effect this fixes incorrectly rejecting high cursor positions
(because it was comparing them as signed char), reported by Tom Doherty.
2009-10-11 07:01:10 +00:00
Nicholas Marriott
f68ade7b1d
Braek some bits out of server_fill_client() that aren't really related to
...
polling into their own function.
2009-10-11 00:53:14 +00:00
Nicholas Marriott
095ecf2d90
Put all jobs on a global all_jobs list and use that in server.c instead of
...
running through all the clients.
2009-10-10 18:42:14 +00:00
Nicholas Marriott
b7c364a853
-scroll mode which is dead.
2009-10-10 17:39:55 +00:00
Nicholas Marriott
5aa49e695e
Split list-panes off from list-windows.
2009-10-10 17:19:38 +00:00
Nicholas Marriott
eba57d84a6
pcvt25 has AX but in fact the console doesn't support it.
2009-10-10 17:08:57 +00:00
Nicholas Marriott
2988c594cc
Accept key and mouse input for keys in zombified windows if they are in a mode..
2009-10-10 15:29:34 +00:00
Nicholas Marriott
9ed62eeb91
When a window is zombified and automatic-rename is on, append [dead] to the
...
name.
2009-10-10 15:23:13 +00:00
Nicholas Marriott
3d1936e9c7
Update.
2009-10-10 15:17:50 +00:00
Nicholas Marriott
6bca92db4d
Rather than running status-left, status-right and window title #() with popen
...
immediately every redraw, queue them up and run them in the background,
starting each once every status-interval. The actual status line uses the
output from the last run.
This brings several advantages:
- tmux itself may be called from inside #() without causing the server to hang;
- likewise, sleep or similar doesn't cause the server to block;
- commands aren't run excessively often when redrawing;
- commands shared by status-left and status-right, or used multiple times, will
only be run once.
run-shell and if-shell still use system()/popen() but will be changed over to
use this too later.
2009-10-10 15:03:01 +00:00
Nicholas Marriott
4658c063d5
New option, mouse-select-pane. If on, the mouse may be used to select the
...
current pane.
Suggested by sthen@ and also by someone else ages ago who I have forgotten.
2009-10-10 14:51:16 +00:00
Nicholas Marriott
3a20a05a49
There is no point setting the scroll region up for line feeds unless scrolling
...
is actually going to happen, so don't.
2009-10-10 10:36:46 +00:00
Nicholas Marriott
9dd72b9583
Add "grouped sessions" which have independent name, options, current window and
...
so on but where the linked windows are synchronized (ie creating, killing
windows and so on are mirrored between the sessions). A grouped session may be
created by passing -t to new-session.
Had this around for a while, tested by a couple of people.
2009-10-10 10:02:48 +00:00
Nicholas Marriott
b7d031cc92
Support for individual session idle time locking. May be enabled by turning off
...
the lock-server option (it is on by default). When this is off, each session
locks when it has been idle for the lock-after-time setting. When on, the
entire server locks when ALL sessions have been idle for their individual
lock-after-time settings.
This replaces one global-only option (lock-after-time) with another
(lock-server), but the default behaviour is usually preferable so there don't
seem to be many alternatives.
Diff/idea largely from Thomas Adam, tweaked by me.
2009-10-10 09:46:11 +00:00
Nicholas Marriott
93b353d353
Instead of passing a struct pollfd ** around through various functions, build
...
them into a tree and then convert into a flat poll array before and after poll.
This adds a little code but should reduce annoying problems with ordering when
adding new things that also need to be polled.
2009-10-10 09:31:39 +00:00
Tiago Cunha
932f0a757f
Sync with reality.
2009-10-09 22:55:43 +00:00
Tiago Cunha
cddb781127
Sync OpenBSD patchset 368:
...
The UTF-8 detection idea doesn't work and I am reasonably happy with the
current methods, so remove the (already #ifdef 0'd) code.
2009-10-09 13:11:42 +00:00
Tiago Cunha
220f3f2384
Update.
2009-10-09 13:07:29 +00:00
Tiago Cunha
9ac062acef
Sync OpenBSD patchset 367:
...
Add a simple synchronize-panes window option: when set, all input to any pane
that is part of the window is also sent to all other panes in the same
window. Suggested by several, most recently Tomasz Pajor.
2009-10-09 13:07:04 +00:00
Tiago Cunha
765a38e534
Sync OpenBSD patchset 366:
...
Be less aggressive about turning the cursor off, only explicitly turn it off
when tmux is redrawing, otherwise leave in the state set by the application.
2009-10-09 13:03:28 +00:00
Nicholas Marriott
bf38a311da
The UTF-8 detection idea doesn't work and I am reasonably happy with the
...
current methods, so remove the (already #ifdef 0'd) code.
2009-10-09 07:33:12 +00:00
Nicholas Marriott
c2e78a3104
Add a little.
2009-10-09 07:30:27 +00:00
Nicholas Marriott
3af09ac946
Add a simple synchronize-panes window option: when set, all input to any pane
...
that is part of the window is also sent to all other panes in the same
window. Suggested by several, most recently Tomasz Pajor.
2009-10-09 07:27:00 +00:00
Nicholas Marriott
d528184836
Be less aggressive about turning the cursor off, only explicitly turn it off
...
when tmux is redrawing, otherwise leave in the state set by the application.
2009-10-09 07:23:28 +00:00
Tiago Cunha
1eb665832a
Sync OpenBSD patchset 365:
...
Support J and K for scroll up and scroll down in copy mode with vi keys,
suggested by martynas.
2009-10-07 17:13:59 +00:00
Tiago Cunha
64e9d07b1b
Sync OpenBSD patchset 364:
...
Fix comment.
2009-10-07 17:10:44 +00:00
Nicholas Marriott
2cb2bb8257
Support J and K for scroll up and scroll down in copy mode with vi keys,
...
suggested by martynas.
2009-10-07 15:58:40 +00:00
Nicholas Marriott
56ddd3c0b1
Fix comment.
2009-10-07 07:02:40 +00:00
Tiago Cunha
d23635f66d
Remove unneeded defines that were used with the internal locking mechanism.
2009-10-06 15:32:21 +00:00
Tiago Cunha
4640627f6e
Sync OpenBSD patchset 363:
...
Accept ^? for backspace as well as BSpace.
2009-10-06 14:15:45 +00:00
Tiago Cunha
83bf166a1f
Update.
2009-10-06 14:14:40 +00:00
Tiago Cunha
f881502f84
Sync OpenBSD patchset 362:
...
Remove scroll mode which is now redundant, copy mode should be used instead.
The = key binding now does nothing.
2009-10-06 14:14:07 +00:00
Tiago Cunha
32291172bf
Sync OpenBSD patchset 361:
...
Make C-Up and C-Down in copy mode scroll the screen up and down one line
without moving the cursor, like Up and Down in scroll mode (which will shortly
disappear).
2009-10-06 14:10:10 +00:00
Tiago Cunha
eb7f8b6d33
Sync OpenBSD patchset 360:
...
If no target client is specified to commands which accept one, try to guess the
current client, in a similar manner to how sessions already work: if the
current session can be established and has only one client, use that; otherwise
use the most recently created client.
2009-10-06 14:00:50 +00:00
Nicholas Marriott
82efcc32ec
Accept ^? for backspace as well as BSpace.
2009-10-06 07:32:26 +00:00
Nicholas Marriott
35ca994ba2
Remove scroll mode which is now redundant, copy mode should be used instead.
...
The = key binding now does nothing.
2009-10-06 07:19:32 +00:00
Nicholas Marriott
9400fdac77
Make C-Up and C-Down in copy mode scroll the screen up and down one line
...
without moving the cursor, like Up and Down in scroll mode (which will shortly
disappear).
2009-10-06 07:09:00 +00:00
Nicholas Marriott
4ca2200d83
If no target client is specified to commands which accept one, try to guess the
...
current client, in a similar manner to how sessions already work: if the
current session can be established and has only one client, use that; otherwise
use the most recently created client.
2009-10-05 18:30:54 +00:00
Tiago Cunha
d8c0634524
Sync OpenBSD patchset 359:
...
tweak previous;
2009-10-05 18:26:00 +00:00
Tiago Cunha
11e97f4eb0
Sync OpenBSD patchset 358:
...
Get / and ? the right way round in vi mode, and use : for goto line rather than
g.
2009-10-05 18:25:05 +00:00
Tiago Cunha
813d78e46a
Sync OpenBSD patchset 357:
...
Check for already locked/suspended clients in server_lock_client rather than
its callers.
2009-10-05 18:23:31 +00:00
Tiago Cunha
2931277608
Sync OpenBSD patchset 356:
...
Add a key string for space ("Space") and document the names, suggested by
guenther@. Also document how to bind " and ', suggested by miod@.
2009-10-05 18:21:58 +00:00
Tiago Cunha
6b3ec44ee9
Sync OpenBSD patchset 355:
...
C-v and M-v too.
2009-10-05 18:19:52 +00:00
Tiago Cunha
19e502c64e
Sync OpenBSD patchset 354:
...
Support C-n/C-p with emacs keys in choice mode, also fix a comment.
2009-10-05 18:18:50 +00:00
Jason McIntyre
45043ebf3e
tweak previous;
2009-10-04 11:33:35 +00:00
Nicholas Marriott
d42b86d22b
Get / and ? the right way round in vi mode, and use : for goto line rather than
...
g.
2009-10-04 11:18:26 +00:00
Nicholas Marriott
c734789b18
Check for already locked/suspended clients in server_lock_client rather than
...
its callers.
2009-10-04 10:55:30 +00:00
Nicholas Marriott
205857b232
Add a key string for space ("Space") and document the names, suggested by
...
guenther@. Also document how to bind " and ', suggested by miod@.
2009-10-04 08:50:05 +00:00
Nicholas Marriott
97ca5711f9
C-v and M-v too.
2009-10-04 08:26:41 +00:00
Nicholas Marriott
123ae9e103
Support C-n/C-p with emacs keys in choice mode, also fix a comment.
2009-10-04 08:23:01 +00:00
Tiago Cunha
a9a0cd8297
Update.
2009-09-25 17:52:26 +00:00
Tiago Cunha
88c3b9c989
Sync OpenBSD patchset 353:
...
New lock-client and lock-session commands to lock an individual client or all
clients attached to a session respectively.
2009-09-25 17:51:39 +00:00
Tiago Cunha
804b8696a4
Sync OpenBSD patchset 352:
...
Don't allow locked or suspended clients to limit the size of active clients.
2009-09-25 17:47:42 +00:00
Tiago Cunha
b5d23ef38b
Sync OpenBSD patchset 351:
...
Remove PROMPT_HIDDEN code which is now unused.
2009-09-25 17:45:46 +00:00
Nicholas Marriott
8fa1858a2c
New lock-client and lock-session commands to lock an individual client or all
...
clients attached to a session respectively.
2009-09-24 14:17:09 +00:00
Nicholas Marriott
c190a65c69
Should be bestp now.
2009-09-24 12:30:22 +00:00
Nicholas Marriott
bf4b27e679
Earlier versions of FreeBSD are missing RB_PREV.
2009-09-24 07:15:22 +00:00
Nicholas Marriott
1764ef81ef
Don't allow locked or suspended clients to limit the size of active clients.
2009-09-24 07:02:56 +00:00
Nicholas Marriott
d73516c0a9
Use __sun not __sun__ as Sun's CC doesn't define the latter.
2009-09-23 16:09:12 +00:00
Tiago Cunha
ac95da3afc
Adjust OpenBSD patchset 350 to the portable version.
2009-09-23 15:20:16 +00:00
Tiago Cunha
5be3fb86b9
Sync OpenBSD patchset 350:
...
Support -c like sh(1) to execute a command, useful when tmux is a login
shell. Suggested by halex@.
This includes another protocol version increase (the last for now) so again
restart the tmux server before upgrading.
2009-09-23 15:18:56 +00:00
Tiago Cunha
4dd332c95e
Sync OpenBSD patchset 349:
...
On SIGTERM, just abandon any suspended/locked clients and leave them to it,
otherwise the server will hang around (refusing new connections) until they
exit properly.
2009-09-23 15:10:37 +00:00
Tiago Cunha
fea7bda58f
Sync OpenBSD patchset 348:
...
Don't die if the client is detaching (the tty has been closed) after waking up
from locking.
2009-09-23 15:08:21 +00:00
Tiago Cunha
88f689e167
Remove HAVE_LOGIN_CAP now that the internal locking mechanism was removed, due
...
to OpenBSD patchset 347.
2009-09-23 15:05:03 +00:00
Tiago Cunha
5743da5588
Update.
2009-09-23 15:01:10 +00:00
Tiago Cunha
1310ea2729
Sync OpenBSD patchset 347:
...
Remove the internal tmux locking and instead detach each client and run the
command specified by a new option "lock-command" (by default "lock -np") in
each client.
This means each terminal has to be unlocked individually but simplifies the
code and allows the system password to be used to unlock.
Note that the set-password command is gone, so it will need to be removed from
configuration files, and the -U command line flag has been removed.
This is the third protocol version change so again it is best to stop the tmux
server before upgrading.
2009-09-23 15:00:09 +00:00
Tiago Cunha
2acf349d4e
Sync OpenBSD patchset 346:
...
Trim some code by moving the ioctl(TIOCGWINSZ) after SIGWINCH from the client
into the server.
This is another (the second of four) protocol version changes coming this
morning, so again the server should be killed before upgrading.
2009-09-23 14:44:02 +00:00
Nicholas Marriott
fecf8dc44e
Remove PROMPT_HIDDEN code which is now unused.
2009-09-23 14:42:48 +00:00
Tiago Cunha
acedc2dcf2
Sync OpenBSD patchset 345:
...
Don't attempt to open() the tty path, rely on the client sending its stdin fd
with imsg and fatal if it doesn't, then set the FD_CLOEXEC flag in tty_init
instead of tty_open to prevent them leaking into child processes if any are
created between the two calls.
This bumps the protocol version, so the tmux server should be killed before
upgrading.
2009-09-23 14:39:30 +00:00
Tiago Cunha
c40d8cbda4
Sync OpenBSD patchset 344:
...
Be more careful about what flags are cleared when opening the terminal,
otherwise the opened/started flags are cleared and the terminal never released.
2009-09-23 14:33:13 +00:00
Nicholas Marriott
07bd160861
+.
2009-09-23 12:07:08 +00:00
Nicholas Marriott
9200a0be7a
Support -c like sh(1) to execute a command, useful when tmux is a login
...
shell. Suggested by halex@.
This includes another protocol version increase (the last for now) so again
restart the tmux server before upgrading.
2009-09-23 12:03:30 +00:00
Nicholas Marriott
18ea820cb0
On SIGTERM, just abandon any suspended/locked clients and leave them to it,
...
otherwise the server will hang around (refusing new connections) until they
exit properly.
2009-09-23 08:21:57 +00:00
Nicholas Marriott
631a618238
Don't die if the client is detaching (the tty has been closed) after waking up
...
from locking.
2009-09-23 07:25:31 +00:00
Nicholas Marriott
b01dcd7971
Remove the internal tmux locking and instead detach each client and run the
...
command specified by a new option "lock-command" (by default "lock -np") in
each client.
This means each terminal has to be unlocked individually but simplifies the
code and allows the system password to be used to unlock.
Note that the set-password command is gone, so it will need to be removed from
configuration files, and the -U command line flag has been removed.
This is the third protocol version change so again it is best to stop the tmux
server before upgrading.
2009-09-23 06:18:47 +00:00
Nicholas Marriott
962fa20b36
Trim some code by moving the ioctl(TIOCGWINSZ) after SIGWINCH from the client
...
into the server.
This is another (the second of four) protocol version changes coming this
morning, so again the server should be killed before upgrading.
2009-09-23 06:12:58 +00:00
Nicholas Marriott
64caf59e84
Don't attempt to open() the tty path, rely on the client sending its stdin fd
...
with imsg and fatal if it doesn't, then set the FD_CLOEXEC flag in tty_init
instead of tty_open to prevent them leaking into child processes if any are
created between the two calls.
This bumps the protocol version, so the tmux server should be killed before
upgrading.
2009-09-23 06:05:02 +00:00
Nicholas Marriott
2c9d4dfdd4
Tweak tparm() to make Solaris' backward userland happy and remove the -I mess
...
in configure which tried to deal with the fallout from their horrible package
management.
2009-09-22 19:20:08 +00:00
Nicholas Marriott
0a9005678d
Be more careful about what flags are cleared when opening the terminal,
...
otherwise the opened/started flags are cleared and the terminal never released.
2009-09-22 19:11:52 +00:00
Tiago Cunha
df7b68480c
Sync OpenBSD patchset 343:
...
Permit multiple prefix keys to be defined, separated by commas, for example:
set -g prefix ^a,^b
Any key in the list acts as the prefix. The send-prefix command always sends
the first key in the list.
2009-09-22 14:22:21 +00:00
Tiago Cunha
31ccf2f813
Sync OpenBSD patchset 342:
...
Use KEYC_NONE constant instead of 0 on init.
2009-09-22 14:06:40 +00:00
Tiago Cunha
480211f0ee
Sync OpenBSD patchset 341:
...
Nuke -i option which isn't used anymore.
2009-09-22 14:03:11 +00:00
Tiago Cunha
59e65cbda2
Sync OpenBSD patchset 340:
...
Use option print function for info messages as well.
2009-09-22 13:59:46 +00:00
Tiago Cunha
649b7c132d
Sync OpenBSD patchset 339:
...
Move common code from show-options and show-window-options into a function.
2009-09-22 13:56:02 +00:00
Tiago Cunha
b6bc8a6828
Sync OpenBSD patchset 338:
...
zap trailing whitespace;
2009-09-22 13:51:24 +00:00
Tiago Cunha
f2d249fdc7
Sync OpenBSD patchset 337:
...
Drop tiny union from option struct.
2009-09-22 13:49:13 +00:00
Tiago Cunha
c28d4e41cf
Sync OpenBSD patchset 336:
...
Key options were implemented as a number so these struct members are unused.
2009-09-22 13:45:06 +00:00
Nicholas Marriott
96dd3e8eb9
Permit multiple prefix keys to be defined, separated by commas, for example:
...
set -g prefix ^a,^b
Any key in the list acts as the prefix. The send-prefix command always sends
the first key in the list.
2009-09-22 12:38:10 +00:00
Nicholas Marriott
1572e483c2
Done.
2009-09-22 11:40:11 +00:00
Nicholas Marriott
6fab9a3e6f
Use KEYC_NONE constant instead of 0 on init.
2009-09-21 15:32:06 +00:00
Nicholas Marriott
a448524424
Nuke -i option which isn't used anymore.
2009-09-21 15:25:36 +00:00
Nicholas Marriott
6b37b2d79d
Use option print function for info messages as well.
2009-09-21 14:56:03 +00:00
Nicholas Marriott
e3c3d746f7
Move common code from show-options and show-window-options into a function.
2009-09-21 14:46:47 +00:00
Jason McIntyre
b769aa59d3
zap trailing whitespace;
2009-09-21 07:45:10 +00:00
Nicholas Marriott
fc9107a16a
Drop tiny union from option struct.
2009-09-21 07:00:09 +00:00
Nicholas Marriott
c7a8db5543
Key options were implemented as a number so these struct members are unused.
2009-09-21 06:55:06 +00:00
Tiago Cunha
f8ea4f44e8
Update.
2009-09-20 22:20:51 +00:00
Tiago Cunha
e3dcc5327a
Sync OpenBSD patchset 335:
...
run-shell command to run a shell command without opening a window, sending
stdout to output mode.
2009-09-20 22:20:10 +00:00
Tiago Cunha
bd24bdd411
Sync OpenBSD patchset 334:
...
Nuke unused variables and fix stupid error message.
2009-09-20 22:17:03 +00:00
Tiago Cunha
7335ef5792
Sync OpenBSD patchset 333:
...
Move some common and untidy code for window link/unlink into generic functions
instead of duplicating it in move/link window..
2009-09-20 22:15:32 +00:00
Tiago Cunha
3266fb5441
Sync OpenBSD patchset 332:
...
Regularise some fatal messages.
2009-09-20 22:11:27 +00:00
Tiago Cunha
ab96772436
Delete backup files in the compat directory, as well.
2009-09-20 22:06:34 +00:00
Nicholas Marriott
14ebcab5b0
run-shell command to run a shell command without opening a window, sending
...
stdout to output mode.
2009-09-20 19:15:01 +00:00
Nicholas Marriott
c7ace08193
Now working on 1.1.
2009-09-20 19:01:01 +00:00
Nicholas Marriott
105ce36792
Nuke unused variables and fix stupid error message.
2009-09-20 17:31:26 +00:00
Nicholas Marriott
9b5f5ed8e8
Move some common and untidy code for window link/unlink into generic functions
...
instead of duplicating it in move/link window..
2009-09-20 17:27:18 +00:00
Nicholas Marriott
273f1b385c
Regularise some fatal messages.
2009-09-20 14:58:12 +00:00
Nicholas Marriott
63d499f480
New option, set-titles-string, to allow the window title to be specified (as
...
for status-left/right) if set-titles is on. Also only update the title when the
status line is being redrawn.
2009-09-18 15:19:27 +00:00
Nicholas Marriott
5c60162e3c
Rather than constructing an entire termios struct from ttydefaults.h, just let
...
forkpty do it and then alter the bits that should be changed after fork. A
little neater and more portable.
2009-09-16 12:35:04 +00:00
Jacek Masiulaniec
a6dd9e8e7e
Enclose repeated buffer draining code in a new msgbuf_drain()
...
function, which is additionally exported for use by others.
From nicm@, who reminded me that tmux is now using buffer.c, too.
2009-09-15 18:12:51 +00:00
Nicholas Marriott
4278199101
Stick line length to what is actually used (removing an optimization that
...
allowed it to be bigger), and use clear line/EOL sequences rather than spaces
in copy/scroll mode.
This fixes xterm copy/paste from tmux which treats trailing spaces differently
from clearing a line with the escape sequences. Reported by martynas@.
2009-09-15 15:14:09 +00:00
Nicholas Marriott
f39865e8e4
The default terminal size should be 80x24, not 80x25.
2009-09-15 07:45:16 +00:00
Nicholas Marriott
8548624676
Nuke unused server_client_index function, pointed out by martynas@.
2009-09-14 11:25:35 +00:00
Nicholas Marriott
8a873b97a3
Doh, trim variables unused now.
2009-09-12 13:09:43 +00:00
Nicholas Marriott
8cb8a0da8d
Tidy some common code for destroying sessions into a new function.
2009-09-12 13:01:19 +00:00
Nicholas Marriott
d771614d33
tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for
...
new windows.
2009-09-12 09:54:34 +00:00
Nicholas Marriott
372a8cb1d9
Permit options such as status-bg to be configured using the entire 256 colour
...
palette by setting "colour0" to "colour255".
2009-09-10 17:16:24 +00:00
Nicholas Marriott
3f3b01c7ce
While the display-panes indicator is on screen, make the number keys select the
...
pane with that index.
2009-09-07 21:12:12 +00:00
Nicholas Marriott
51c95747d8
Reference count clients and sessions rather than relying on a saved index for
...
cmd-choose-*.
2009-09-07 21:01:50 +00:00
Matthias Kilian
e323f6620d
Tiny cleanup.
...
ok nicm@
2009-09-07 19:08:45 +00:00
Nicholas Marriott
ccba613e5b
Give each paste buffer a size member instead of requiring them to be
...
zero-terminated.
2009-09-07 18:50:45 +00:00
Nicholas Marriott
e97006b102
Permit embedded colour and attributes in status-left and status-right using new
...
#[] special characters, for example #[fg=red,bg=blue,blink].
2009-09-07 10:49:32 +00:00
Nicholas Marriott
ffab22bb35
Only redraw all clients once when the backoff timer expires rather than every
...
second all the time.
Reported by Simon Nicolussi.
2009-09-05 17:42:16 +00:00
Nicholas Marriott
83af55bed4
Tidy main and make it a bit easier to read.
2009-09-04 15:15:24 +00:00
Nicholas Marriott
be0d6faa15
Tell the user when sleeping due to password backoff.
2009-09-04 13:29:10 +00:00
Nicholas Marriott
751a2fa915
Fix a race condition when asking a client to take over the terminal (switching
...
to a different poll loop):
If a MSG_READY was followed very quickly by a MSG_EXIT (for example if doing
"tmux new 'exit'"), both messages could be read as part of the same imsg_read
in the first client poll loop. The MSG_READY would then cause a switch to the
second client loop, which would immediately call poll(2) again, causing the
client to hang forever waiting for an exit message that it already had.
Change to call imsg_get to process any existing messages before polling.
2009-09-02 23:49:25 +00:00
Nicholas Marriott
81a457e6fb
When shutting down the server, expect clients to be polite and exit when asked
...
with the right message.
2009-09-02 21:25:57 +00:00
Nicholas Marriott
459abafcea
That was the wrong fix. MSG_ERROR should set the error and the client should
...
use the error and exit on MSG_EXIT (it was being handled in the default
case). Undo the last change, move the errstr check into the MSG_EXIT case, and
add a comment.
2009-09-02 20:15:49 +00:00
Nicholas Marriott
7a4bac82d7
Set exittype for error exit as well as the error string.
2009-09-02 20:00:10 +00:00
Nicholas Marriott
74c35c513e
Accept -l to make it easier for people who use tmux as a login shell to use
...
$SHELL. Originally from martynas@, tweaked by me.
2009-09-02 17:34:57 +00:00
Nicholas Marriott
c5ac2579ba
When incorrect passwords are entered, behave similarly to login(1) and backoff
...
for a bit. Based on a diff from martynas@.
2009-09-02 16:38:35 +00:00
Nicholas Marriott
61b7dc522d
Add a transpose-chars command in edit mode (C-t in emacs mode only). From Kalle
...
Olavi Niemitalo.
2009-09-02 06:33:20 +00:00
Nicholas Marriott
c089e19020
If forking a login shell or if SHELL is otherwise not useful, set it to the
...
default shell. Based on a diff from martynas@.
2009-09-01 14:40:33 +00:00
Nicholas Marriott
7d5e494716
When using tmux as a login shell, there is currently no way to specify a shell
...
to be used as a login shell inside tmux, so add a default-shell session option.
This sets the shell invoked as a login shell when the default-command option is
empty.
The default option value is whichever of $SHELL, getpwuid(getuid())'s pw_shell
or /bin/sh is valid first.
Based on a diff from martynas@, changed by me to be a session option rather
than a window option.
2009-09-01 13:09:49 +00:00
Nicholas Marriott
f8aa5821be
Use "Password:" with no space for password prompts and don't display a *s for
...
the password, like pretty much everything else. From martynas@ with minor
tweaks by me.
2009-09-01 09:11:05 +00:00
Nicholas Marriott
34bb735a65
Sort cases same as getopt argument, from martynas.
2009-09-01 09:00:54 +00:00
Nicholas Marriott
04319964b9
Add a new display-panes command, with two options (display-panes-colour and
...
display-panes-time), which displays a visual indication of the number of each
pane.
2009-08-31 20:46:19 +00:00
Stefan Sperling
8102ec3be5
squash typo
...
ok nicm@
2009-08-31 11:52:32 +00:00
Nicholas Marriott
71ede76c68
Don't call tty_free unless the client is a terminal, otherwise tty_init hasn't
...
been called and it may end up doing close(0). From Kalle Olavi Niemitalo.
2009-08-31 11:37:27 +00:00
Nicholas Marriott
2e5b3ab8bc
Initialise the arg2 pointer properly (also free it when freeing the
...
others). Fixes crashes with J in malloc_options reported by oga.
2009-08-26 18:09:52 +00:00
Nicholas Marriott
ddf97f8289
Make this work when the clock is in small characters as well. Doh.
2009-08-26 16:23:30 +00:00
Nicholas Marriott
1ba5ce9cb3
Fix clock mode in black and white terminals now that tty.c tries to fix
...
reverse.
2009-08-26 16:16:06 +00:00
Nicholas Marriott
f949107a32
Print -l and -p when showing command, pointed out by Tiago Cunha.
2009-08-25 14:53:22 +00:00
Nicholas Marriott
be16f79438
These should #include <ctype.h>.
2009-08-25 13:32:14 +00:00
Nicholas Marriott
7b847ced4a
Add a choose-client command and extend choose-{session,window} to accept a
...
template. After a choice is made, %% (or %1) in the template is replaced by the
name of the session, window or client suitable for -t and the result executed
as a command. So, for example, "choose-window "killw -t '%%'"" will kill the
selected window.
The defaults if no template is given are (as now) select-window for
choose-window, switch-client for choose-session, and detach-client for
choose-client (now bound to D).
2009-08-25 12:18:51 +00:00
Nicholas Marriott
4f1d81c4ce
gcc2 doesn't understand attributes on function pointers.
2009-08-24 08:03:11 +00:00
Nicholas Marriott
90400ae96a
Add some other obvious variables to update-environment (WINDOWID SSH_ASKPASS
...
SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION) so they are updated in the session
environment on new/attach.
2009-08-23 18:21:02 +00:00
Nicholas Marriott
a910b38a35
Some code tidying.
2009-08-23 17:37:48 +00:00
Nicholas Marriott
c7394ac4e0
When using source-file, run the commands in the context of the source-file
...
command rather than with no context. This makes things like attach work from a
file.
2009-08-23 17:29:51 +00:00
Nicholas Marriott
43cd40e87a
The cursession member in struct cmd_ctx is always either curclient->session or
...
NULL when curclient is also NULL, so just eliminate it.
2009-08-23 16:45:00 +00:00
Nicholas Marriott
1eb303e6d4
Check the return value of strunvis against -1 not NULL.
2009-08-23 11:40:05 +00:00
Nicholas Marriott
926b52b600
Emulate dch/dch1 if missing by redrawing the entire line.
2009-08-21 12:29:59 +00:00
Nicholas Marriott
915a1913e1
Move reading termios settings to before tty_open alters them, and expand the
...
comment.
2009-08-21 11:36:08 +00:00
Nicholas Marriott
65ac8e9f0c
Ugh, committed the wrong version of this change and got both solutions rather
...
than just the second. Remove unused assignment.
2009-08-21 08:12:05 +00:00
Nicholas Marriott
f817a338d0
When moving up or down in copy mode, save the cursor position and size of the
...
last line with content (width != 0) and use it to determine if the cursor
should be at the end of the line. Fixes problem of the cursor always jumping to
the end of the line when scrolling past a blank line.
2009-08-21 07:33:58 +00:00
Nicholas Marriott
0198bb6bf3
Fix grid_expand_line so it actually works when the required size is bigger than
...
2 * the current size.
2009-08-21 07:29:37 +00:00
Nicholas Marriott
1501b3fbbd
A few trivial optimisations: no need to check for zero size if calling
...
buffer_ensure in buffer.c; expand grid lines by a greater increase than one
each time; and don't read UTF-8 data unless it actually needs to be checked
when overwriting a cell.
2009-08-20 19:14:42 +00:00
Nicholas Marriott
234ad54b2c
Nuke unused variable.
2009-08-20 10:48:25 +00:00
Nicholas Marriott
bf121f7c60
Handle the device attributes (DA) escape sequence.
2009-08-19 17:00:31 +00:00
Jason McIntyre
c741f2f4a6
tweak previous;
2009-08-19 16:10:26 +00:00
Nicholas Marriott
55336657d4
Don't read beyond the edge of the screen when searching (dies with debug
...
enabled).
2009-08-19 14:46:56 +00:00
Nicholas Marriott
c41aa49059
Use cfsetispeed/cfsetospeed to set termios speed members.
2009-08-19 14:32:15 +00:00
Nicholas Marriott
3f4418d84d
Extend command-prompt with a -p option which is a comma-separated list of one
...
or more prompts to present in order.
The responses to the prompt are replaced in the template string: %% are
replaced in order, so the first prompt replaces the first %%, the second
replaces the second, and so on. In addition, %1 up to %9 are replaced with the
responses to the first the ninth prompts
The default template is "%1" so the response to the first prompt is processed
as a command.
Note that this changes the behaviour for %% so if there is only one prompt,
only the first %% will be replaced. Templates such as "neww -n '%%' 'ssh %%'"
should be changed to "neww -n '%1' 'ssh %1'".
From Tiago Cunha.
2009-08-19 10:39:50 +00:00
Nicholas Marriott
036de0c5e4
Instead of just checking for an empty buffer, which may not be the case if
...
there is unconsumed data, save the previous size and use it instead. This means
that activity monitoring should work in this (unlikely) event.
Also remove a debugging statement that no longer seems necessary.
2009-08-18 21:41:13 +00:00
Nicholas Marriott
c488e5e40d
Whoops, getting the comparison the right way round is usually recommended.
2009-08-18 21:37:04 +00:00
Nicholas Marriott
8b7be5861e
Move another expensive options test to after a cheaper timer check/update.
2009-08-18 21:18:20 +00:00
Nicholas Marriott
fa617467b1
options_get_number() is relatively expensive and a check for dead panes happens
...
a lot more often than actually finding one, so instead of getting the option
for every check, get it for every dead window found.
2009-08-18 21:14:24 +00:00
Nicholas Marriott
145ba777e8
Now that pane targets (-t) are supported, switch some commands to use them
...
where it makes sense: clock-mode, copy-mode, scroll-mode, send-keys,
send-prefix.
2009-08-18 16:21:04 +00:00
Nicholas Marriott
dc6271cd79
Tag a few missed printf-like functions and fix a missing "%s".
2009-08-18 14:48:42 +00:00
Nicholas Marriott
003a2e6479
Pass show-buffer output through vis(3) as well, and wrap it to the edge of the
...
terminal when used from the command line.
2009-08-18 13:08:43 +00:00
Nicholas Marriott
840fff5e5e
Change list-buffers to run the preview of the buffer through vis(1).
2009-08-18 12:26:37 +00:00
Nicholas Marriott
1c58b94141
Use the full screen width when printing output rather than one less.
2009-08-18 11:53:03 +00:00
Nicholas Marriott
406fc209ac
Nuke unnecessary assignment.
2009-08-18 09:51:51 +00:00
Nicholas Marriott
feaf91ab93
Add a "delete line" key when editing in the status line or the search up/down
...
prompt. C-u with emacs keys, d with vi.
2009-08-18 07:23:43 +00:00
Nicholas Marriott
c828c2f366
Add (naive) searching and goto line in copy mode. Searching is C-r and C-s with
...
emacs keys, / and ? with vi; n repeats the search again with either key
set. All searching wraps the top/bottom. Goto line is g for both emacs and vi.
The search prompts don't have full line editing, just simple append and delete
characters.
Also sort the mode keys list in tmux.1.
2009-08-18 07:08:26 +00:00
Nicholas Marriott
e7cd547457
Reset attributes as well as scroll region before poll(2) and add a big comment
...
explaining why.
2009-08-14 11:23:34 +00:00
Nicholas Marriott
5cf994856f
Send SGR0 when initialising the screen. Fixes problems on terminals with BCE
...
(like putty) if the background colours is non-default when tmux starts. May
also fix problems when resuming a suspended tmux.
2009-08-14 08:53:52 +00:00
Nicholas Marriott
09cbd0c695
Switch the prompt code to return an empty string when the user enters no
...
response and reserve NULL for an explicit cancel. Change all callbacks to treat
them the same so no functional change.
Also add cancel key bindings to emacs mode which were missing.
2009-08-13 23:44:18 +00:00
Nicholas Marriott
7a359c00ac
vi(1)-style half page scroll in copy and scroll modes. Move the vi full page
...
scroll key to C-b instead of C-u and use C-u/C-d for half page scrolling with
vi keys. In emacs mode, half page scrolling is bound to M-Up and M-Down.
Suggested by merdely (about a year ago :-)).
2009-08-13 22:32:18 +00:00
Nicholas Marriott
39154402e5
Scroll by two less than the number of lines in the screen, like emacs, rather
...
than by the entire screen, to make it easier to pull things out from under the
line indicator. Suggested by claudio.
2009-08-13 22:11:43 +00:00
Nicholas Marriott
375be90fd1
Disable mode-mouse (mouse in copy/choice mode) by default as it isn't very
...
useful at the moment and causes confusion.
2009-08-13 21:56:14 +00:00
Nicholas Marriott
3ad4de6c8c
Add a base-index session option to specify the first index checked when looking
...
for an index for a new window.
2009-08-13 20:11:58 +00:00
Nicholas Marriott
3026118c70
Allowing copy mode to scroll left and right is annoying, so limit it to the
...
real screen width. To indicate the cursor is at the end of the line rather than
the cell before, put a '$' in the last cell.
Also clear the selection when the terminal is resized to avoid tmux getting
confused.
2009-08-13 19:35:20 +00:00
Nicholas Marriott
e2ff51f93f
Rather than telling the client to exit in the function when creating a new
...
session detached, let the caller do it. Allows "tmux new -d \; attach" to work.
2009-08-13 19:16:14 +00:00
Nicholas Marriott
52793e7a3f
When creating a new session from the command-line where there is an external
...
terminal, copy the termios(4) special characters and use them for new windows
created in the new session. Suggested by Theo.
2009-08-13 19:03:59 +00:00
Nicholas Marriott
2e3bb5a511
Redraw the screen after resizing.
2009-08-13 16:48:43 +00:00
Nicholas Marriott
b02e429788
It was originally intended that scroll mode would show content that was
...
currently off-screen due to resize, but somewhere along the way this got
lost. Restore this behaviour to scroll mode by fixing screen_write_copy to read
up to the saved line length rather than the current screen width. Copy mode
remains unaltered for now.
2009-08-13 16:24:33 +00:00
Nicholas Marriott
7a005b91b3
If the client passes zero for the window size in the identify message (which it
...
can, for example on serial terminals), reset it to 80x25, same as for resize
messages. Problem reported by kettenis@.
2009-08-13 12:15:45 +00:00
Nicholas Marriott
bc497dbb92
A tty context must not be modified as it may be reused to update multiple
...
clients, so make it const.
Also fix an actual modification which caused a hang when a session was
connected to multiple terminals at least one of which was missing ich/ich1.
2009-08-12 09:41:59 +00:00
Nicholas Marriott
9a52ef099a
When started as the shell, __progname contains a leading -, so hardcode "tmux"
...
for socket path and log files, and strip it when working out the shell.
2009-08-12 09:14:25 +00:00
Nicholas Marriott
85e8b70625
imsg closes the fd after sending, so dup() STDIN_FILENO before passing it to
...
the parent, otherwise TIOCGWINSZ will fail when the window is resized (that
could actually be moved into the server but this is more future-proof and
avoids breaking the protocol).
2009-08-12 06:04:28 +00:00
Nicholas Marriott
e0a19abb99
Initialise log_fd to -1, prevents spurious disconnection of the client when it
...
ends up as fd 0 (likely if the server is started with "tmux start").
Also add some extra debugging messages to server.c.
2009-08-11 22:34:17 +00:00
Nicholas Marriott
4310282a4c
Have the client pass its stdin fd to the server when identifying itself and
...
have the server use that rather than reopening the tty. If the fd isn't given,
use the old behaviour (so no need for a version change).
This allows tmux to be used as the shell, so also change so that when working
out the command to execute if default-command is empty (the default), tmux will
try not execute itself.
2009-08-11 21:28:11 +00:00
Nicholas Marriott
4ec8ade11c
Add a TTY_OPENED flag and tidy a little.
2009-08-11 20:29:04 +00:00
Nicholas Marriott
ff65e37545
Drop the no_stop argument to tty_close and tty_free in favour of a flag in the
...
tty struct.
2009-08-11 19:32:25 +00:00
Nicholas Marriott
f0635717b3
Switch tmux to use imsg. This is the last major change to make the
...
client-server protocol more resilient and make the protocol versioning work
properly. In future, the only things requiring a protocol version bump will be
changes in the message structs, and (when both client and server have this
change) mixing different versions should nicely report an error message.
As a side effect this also makes the code tidier, fixes a problem with the way
errors reported during server startup were handled, and supports fd passing
(which will be used in future).
Looked over by eric@, thanks.
Please note that mixing a client with this change with an older server or vice
versa may cause tmux to crash or hang - tmux should be completely exited before
upgrading.
2009-08-11 17:18:35 +00:00
Nicholas Marriott
60db6e3df4
Add flags for 1+2 and 2 arguments to the generic target code, use it for
...
cmd-set-environment/option/window-option and remove the generic options
parsing.
2009-08-11 12:53:37 +00:00
Nicholas Marriott
edcb22a6fb
No arguments are the same as new-session and this requires the environment to
...
be sent, so set that flag too when argc == 0.
2009-08-10 20:51:29 +00:00
Nicholas Marriott
181e1bcffd
Reset the attributes after drawing all or part of the screen, and reset the
...
region before poll(2). This reduces (but does not eliminate) the chance of the
attributes not being normal if tmux is disconnected without warning (ssh ~.,
reboot from inside, etc).
2009-08-10 19:42:03 +00:00
Nicholas Marriott
fa64c1235e
Use the right source and destination lines in grid_duplicate_lines.
2009-08-10 17:59:59 +00:00
Jason McIntyre
ec0c33b844
some minor tweaks; ok nicm
2009-08-10 17:14:55 +00:00
Jason McIntyre
de73fed73d
zap trailing whitespace;
2009-08-09 16:03:05 +00:00
Nicholas Marriott
d7de29e1e5
Minor language tweaks, change which key bindings are summarised.
2009-08-09 15:25:56 +00:00
Nicholas Marriott
ad18e45206
Nuke a dead variable found with clang and an unused declaration with lint.
2009-08-09 15:17:50 +00:00
Nicholas Marriott
57381aa560
Move the key bindings section to near the start, mention attach/detach in the
...
first section, and another couple of tweaks. Based on a diff from Theo.
2009-08-09 14:35:15 +00:00
Nicholas Marriott
b3107d26df
Don't leak in the (rare) case of an invalid command at the end of a file not
...
terminated by a \n.
2009-08-09 08:34:17 +00:00
Nicholas Marriott
05f1680efa
Use a temporary variable for strdup of const char *.
2009-08-08 21:54:26 +00:00
Nicholas Marriott
6491274f60
Infrastructure and commands to manage the environment for processes started
...
within tmux.
There is a global environment, copied from the external environment when the
server is started and each sesssion has an (initially empty) session
environment which overrides it.
New commands set-environment and show-environment manipulate or display the
environments.
A new session option, update-environment, is a space-separated list of
variables which are updated from the external environment into the session
environment every time a new session is created - the default is DISPLAY.
2009-08-08 21:52:43 +00:00
Nicholas Marriott
e985629440
Tidy function a little by using a temporary variable.
2009-08-08 21:18:23 +00:00
Nicholas Marriott
90f8151ffd
Options to set the colours and attributes for status-left/-right. From Thomas
...
Adam, thanks.
2009-08-08 20:36:42 +00:00
Nicholas Marriott
92cc3a6914
Handle ttyname(3) failure better.
2009-08-08 16:05:01 +00:00
Nicholas Marriott
06ddd3dcf8
Add a flags member to the grid_line struct and use it to differentiate lines
...
wrapped at the screen edge from those terminated by a newline. Then use this
when copying to combine wrapped lines together into one.
2009-08-08 15:57:49 +00:00
Nicholas Marriott
5e01b6d663
Change the way the grid is stored, previously it was:
...
- a two-dimensional array of cells;
- a two-dimensional array of utf8 data;
- an array of line lengths.
Now it is a single array of a new struct grid_line each of which represents a
line and containts the length and an array of cells and an array of utf8 data.
This will make it easier to add additional per-line members, such as flags.
2009-08-08 13:29:27 +00:00
Nicholas Marriott
e89e70e715
If there is an error in the configuration file, don't just exit(1) as this can
...
cause the client to hang. Instead, send the error message, then mark the client
as bad and start a normal shutdown so the server exits once the error is
written.
This also allows some code duplicating daemon(3) to be trimmed and logging to
begin earlier.
Prompted by Theo noticing the behaviour on error wasn't documented.
2009-08-07 15:39:10 +00:00
Nicholas Marriott
ccaf8724e4
Move introduction section up into description. From jmc.
2009-08-07 12:24:16 +00:00
Nicholas Marriott
04e97e8aef
Using the alternative screen (smcup/rmcup) should also preserve the current
...
colours and attributes. Found thanks to a report from Taylor Venable.
While here also nuke a couple of extra blank lines.
2009-08-07 00:12:13 +00:00
Jason McIntyre
746fe5832a
tweak INTRODUCTION; from nicm and myself
2009-08-06 21:06:35 +00:00
Nicholas Marriott
4027335fa9
Clear the codes array earlier as tty_term_free could be called on error.
2009-08-05 19:05:02 +00:00
Nicholas Marriott
bcddddf98d
If colours are not supported by the terminal, try to emulate a coloured
...
background by setting or clearing the reverse attribute.
This makes a few applications which don't use the reverse attribute themselves
a little happier, and allows the status, message and mode options to have
default attributes and fg/bg options that work as expected when set as reverse.
2009-08-05 16:26:38 +00:00
Nicholas Marriott
12ef3ceda1
Add a -a flag to set-option and set-window-option to append to an existing
...
string value, useful for terminal-overrides.
2009-08-04 18:45:57 +00:00
Jason McIntyre
a0647f1616
restructure the layout of this page, moving the commands into various
...
subsections; lots of tweaks to come on the text
from nicm and myself
2009-08-04 18:41:28 +00:00
Nicholas Marriott
9e3bb986d5
Show the bell/activity/current status and the window title in the choice list.
2009-08-04 14:28:23 +00:00
Nicholas Marriott
93bf2a1d72
Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may also
...
appear.
2009-08-04 10:31:28 +00:00
Jason McIntyre
6b69b93b53
clean up some macro abuse in the commands section;
2009-08-04 07:56:38 +00:00
Nicholas Marriott
189fb08e13
Split the comparison into a function to make this code smaller and more
...
understandable.
2009-08-03 17:12:07 +00:00
Nicholas Marriott
ac54dee9bb
Don't try to free old string values (and crash) when they are overridden unless
...
they were actually found in the source terminal description. Reported by jmc.
2009-08-03 15:30:16 +00:00
Jason McIntyre
9a391b3320
tweak previous;
2009-08-03 14:34:47 +00:00
Nicholas Marriott
1673735f02
Add a terminal-overrides session option allowing individual terminfo(5) entries
...
to be overridden. The 88col/256col checks are now moved into the default
setting and out of the code.
Also remove a couple of old workarounds for xterm and rxvt which are no longer
necessary (tmux can emulate them if missing).
2009-08-03 14:10:54 +00:00
Matthieu Herrb
e4bb08e1f5
Fix checking of setupterm(3) error codes. While there include the
...
name of the terminal type causing the error where relevant. ok nicm@.
2009-08-02 20:47:35 +00:00
Nicholas Marriott
5db47ed53a
Pass the ACS border characters through tty_get_acs so they appear correctly on
...
terminals which don't use the standard set.
2009-07-31 10:12:49 +00:00
Nicholas Marriott
95caeaa5dc
Don't leak when rollling buffers off when the paste buffer limit is reached.
2009-07-30 20:50:54 +00:00
Nicholas Marriott
97f105cde2
Plug some memory leaks.
2009-07-30 20:41:48 +00:00
Nicholas Marriott
61f3fc7e4d
Don't babysit people and let them try to load /dev/zero or (more useful)
...
/dev/null if they want.
2009-07-30 17:46:12 +00:00
Nicholas Marriott
8df3035831
Remove some dead code found by clang.
2009-07-30 17:29:12 +00:00
Jason McIntyre
6d86882ed4
tweak previous;
2009-07-30 16:59:24 +00:00
Nicholas Marriott
9f1dd4d0af
Similar changes for server_msg_dispatch: use a switch instead of a lookup table
...
and merge smaller functions inline.
2009-07-30 16:40:12 +00:00
Nicholas Marriott
5f13bb0c3a
There aren't many client message types or code to handle them so get rid of the
...
lookup table and use a switch, merge the tiny handler functions into it, and
move the whole lot to client.c.
Also change client_msg_dispatch to consume as many messages as possible and
move the call to it to the right place so it checks for signals afterwards.
Prompted by suggestions from eric@.
2009-07-30 16:32:12 +00:00
Nicholas Marriott
479d614884
Tell the server when the client gets SIGTERM so it can clean up the terminal
...
properly, rather than just exiting.
2009-07-30 16:16:19 +00:00
Nicholas Marriott
071494d8fa
Merge pane number into the target specification for pane commands. Instead of
...
using -p index, a target pane is now addressed with the normal -t window form
but suffixed with a period and a pane index, for example :0.2 or
mysess:mywin.1. An unadorned number such as -t 1 is tried as a pane index in
the current window, if that fails the same rules are followed as for a target
window and the current pane in that window used.
As a side-effect this now means that swap-pane can swap panes between different
windows.
Note that this changes the syntax of the break-pane, clear-history, kill-pane,
resize-pane, select-pane and swap-pane commands.
2009-07-30 13:45:56 +00:00
Jason McIntyre
a87228b4ff
new sentence, new line;
2009-07-30 13:31:22 +00:00
Nicholas Marriott
a419e73f7a
Add a mode-mouse option to prevent tmux taking over the mouse in choice or copy
...
modes.
2009-07-30 07:04:50 +00:00
Nicholas Marriott
2b331084b4
Add an additional heuristic to work out the current session when run from the
...
command line. The name of all slave ptys in the server is known, so if the
client was run on a tty, look for any sessions containing that tty and use the
most recently created.
This is more reliable than looking at $TMUX if windows have been moved or
linked between sessions.
2009-07-29 17:03:16 +00:00
Nicholas Marriott
c1d6d7ac6b
Rename struct hdrtype to msgtype which is a better name and can be used even
...
when struct hdr disappears.
2009-07-29 14:17:26 +00:00
Nicholas Marriott
d3c461097b
Taking account of the "s, 22 not 24 is the maximum length of #T in status-right
...
to prevent the date being cut off.
2009-07-29 05:36:53 +00:00
Nicholas Marriott
f596be9950
Final pieces of mode key rebinding: bind-key and unbind-key now accept a -t
...
argument to modify a table.
2009-07-28 17:05:10 +00:00
Nicholas Marriott
9e5d585ba4
Accept and print "Enter" and "Escape" for keys rather than C-m and C-[.
2009-07-28 09:18:01 +00:00
Nicholas Marriott
86785004ba
Next step towards customisable mode keys: build each default table of keys into
...
a named tree on start and use that for lookups. Also add command to string
translation tables and modify list-keys to show the the mode key bindings (new
-t argument).
2009-07-28 07:03:32 +00:00
Nicholas Marriott
2da4864483
If select-layout is not given an argument, repply the last layout used in the
...
window, if any.
2009-07-28 06:48:44 +00:00
Nicholas Marriott
309b76fb32
Remove an unused entry in the mode keys command enum and rename
...
MODEKEYCOPY_QUIT to _CANCEL to match the others.
2009-07-27 20:36:13 +00:00
Nicholas Marriott
d95274c5f2
Change mode key bindings from big switches into a set of tables. Rather than
...
lumping them all together, split editing keys from those used in choice/more
mode and those for copy/scroll mode.
Tidier and clearer, and the first step towards customisable mode keys.
2009-07-27 19:29:35 +00:00
Nicholas Marriott
13e29dd7b5
Get rid of empty mode_key_free function.
2009-07-27 18:51:46 +00:00
Nicholas Marriott
ad0aad21d5
Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in vi).
...
From Kalle Olavi Niemitalo.
2009-07-27 12:11:11 +00:00
Nicholas Marriott
fc65da1eed
Draw UTF-8 characters under the selection correctly.
2009-07-27 11:33:21 +00:00
Nicholas Marriott
584eda8339
Change previous-word behavior to move to the beginning of the word (matches
...
emacs and vi). From Kalle Olavi Niemitalo.
2009-07-27 07:42:45 +00:00
Nicholas Marriott
639fbe0392
Detect backspace by looking at termios VERASE and translate it into \177 (which
...
matches screen's behaviour if not its termcap/terminfo entry). The terminfo kbs
cap is often wrong or missing so it can't be used, and just assuming \177 may
be wrong.
2009-07-26 21:42:08 +00:00
Nicholas Marriott
55d8c01c33
Calculate the space available for the prompt buffer and the cursor position
...
correctly, and make it work when the screen is not wide enough.
Noticed by Kalle Olavi Niemitalo.
2009-07-26 21:13:47 +00:00
Nicholas Marriott
6b3b852ebc
Go to the next if the current best process is replaced, don't keep comparing it
...
with itself. Also fix process name comparison.
2009-07-26 19:42:26 +00:00
Nicholas Marriott
34a82e7629
Make all messages sent between the client and server fixed size.
...
This is the first of two changes to make the protocol more resilient and less
sensitive to other changes in the code, particularly with commands. The client
now packs argv into a buffer and sends it to the server for parsing, rather
than doing it itself and sending the parsed command data.
As a side-effect this also removes a lot of now-unused command marshalling
code.
Mixing a server without this change and a client with or vice versa will cause
tmux to hang or crash, please ensure that tmux is entirely killed before
upgrading.
2009-07-26 12:58:44 +00:00
Nicholas Marriott
2bb89bc5bc
Set the active pane when respawning a window - fixes problems when respawning a
...
window with multiple panes.
2009-07-24 19:35:33 +00:00
Nicholas Marriott
133173850c
Use the full range of ACS line drawing characters to draw pane borders,
...
including intersections.
2009-07-24 19:14:38 +00:00
Nicholas Marriott
c6dac5c3c9
cmd_find_index should return -2 on error.
2009-07-24 18:46:40 +00:00
Nicholas Marriott
029599c02c
Simplify screen redrawing by drawing the border and background together rather
...
than border separately, and consolidating all the drawing characters into one
string.
2009-07-24 16:21:42 +00:00
Nicholas Marriott
1d1ea681f0
Accept lowercase c- and m- prefix as well as C- and M-.
2009-07-24 14:57:22 +00:00
Nicholas Marriott
5a1a106637
Permit commands to be bound to key presses without the prefix key first. The
...
new -n flag to bind-key and unbind-key sets or removes these bindings, and
list-key shows them in []s.
2009-07-24 14:52:47 +00:00
Stuart Henderson
ce4eb6559e
up-pane and down-pane no longer auto-repeat; update the description of
...
repeat-time accordingly. ok nicm@
if you prefer old behaviour;
bind -r Up up-pane
bind -r Down down-pane
2009-07-24 14:50:24 +00:00
Nicholas Marriott
4a04b498db
None of the server message functions return anything but 0, so make them all
...
void.
Also remove a leftover variable in client.c.
2009-07-23 21:19:11 +00:00
Nicholas Marriott
16e017d5a6
Tidy client message return slightly: convert flags into an enum, and merge
...
error string into struct client_ctx as well.
2009-07-23 20:24:27 +00:00
Nicholas Marriott
ba84ddcf8e
Redraw after starting selection to correctly remove any existing selection.
2009-07-23 17:03:47 +00:00
Nicholas Marriott
895171478f
Revert r1.5, I don't like it, new sessions should start off identically - with
...
the defaults.
2009-07-23 15:47:56 +00:00
Nicholas Marriott
e0d1954840
C-d is delete as well in emacs mode.
2009-07-23 13:44:02 +00:00
Nicholas Marriott
96a7cf1e6a
Both of cmdclient and curclient CAN be NULL - if the command is executed from
...
the configuration file. In this case, attach-session can't do much, and
new-session should just assume -d.
2009-07-23 12:33:48 +00:00
Nicholas Marriott
05b511f96a
If there is a current session, use its default path and working directory for
...
the initial window when creating a new session.
2009-07-22 22:47:43 +00:00
Nicholas Marriott
bb14c36a27
Pass a set of flags into client_init rather than just a start_server
...
variable. Only one flag now but more to come later.
2009-07-22 21:58:56 +00:00
Nicholas Marriott
5ee84436c8
window_add_pane cannot fail, so remove the unused cause argument and don't
...
bother to check for a NULL return.
2009-07-22 21:34:36 +00:00
Nicholas Marriott
f7df0bac96
Tidy the target parsing code a bit and correct the behaviour so that as before
...
a string with no colon as a target window is first looked up as a window then
as a session, noted by Iain Morgan.
Also attempt to clarify the description of the target specification in the man
page.
2009-07-22 21:23:29 +00:00
Nicholas Marriott
dd4a3b24fc
tty_write is relatively short and the only function left in tty-write.c so move
...
it into tty.c.
2009-07-22 20:56:58 +00:00
Nicholas Marriott
ddad0be5f7
More tty code tidying: move the saved cursor/region position (from before the
...
screen was updated) out of struct screen and into struct tty_ctx.
2009-07-22 20:53:38 +00:00
Nicholas Marriott
bb4bab4c26
log_debug3 no longer exists, change the sole use in GRID_DEBUG to log_debug2.
2009-07-22 18:06:58 +00:00
Nicholas Marriott
2ec2837daa
enum tty_cmd is only used as an index into the array of command function
...
pointers, so remove it and use the function pointers directly to represent
themselves.
2009-07-22 18:02:23 +00:00
Nicholas Marriott
6a309c53a8
There are relatively few arguments to tty_cmd_* functions now, so tidy them up
...
by using a struct rather than hiding everything with varargs.
2009-07-22 16:45:31 +00:00
Nicholas Marriott
5bd72ec629
tty_cmd_raw is only used once, for raw UTF-8 output, so rename it to
...
tty_cmd_utf8character and eliminate the size argument.
2009-07-22 15:55:32 +00:00
Nicholas Marriott
e43b6a2dd2
Adjust field width to fit longest key when listing.
2009-07-21 22:41:00 +00:00
Nicholas Marriott
3eb6080de3
Remove leftover debug logging of password.
2009-07-21 21:20:07 +00:00
Nicholas Marriott
76a9d98562
Make some functions which return unused values void (mostly found by lint) and
...
tweak a redundant expression in window_pane_set_mode.
2009-07-21 19:54:22 +00:00
Nicholas Marriott
6945e86fd7
Nix a few unused attributes on arguments which are no longer unused.
2009-07-21 18:52:03 +00:00
Nicholas Marriott
044ebf1952
Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found by
...
lint.
2009-07-21 18:40:30 +00:00
Nicholas Marriott
b9a179089b
__progname is not const, pointed out by deraadt.
2009-07-21 18:38:52 +00:00
Nicholas Marriott
725938fb85
Tidy up keys: use an enum for the key codes, and remove the macros which just
...
wrap flag sets/clears/tests.
2009-07-21 17:57:29 +00:00
Nicholas Marriott
c6012aaabc
Now that #P could be in the status line, flag it for redraw when the active
...
pane changes.
2009-07-20 19:35:33 +00:00
Nicholas Marriott
c0862dae45
Tweak unbind-key language very slightly.
2009-07-20 15:51:55 +00:00
Nicholas Marriott
54afcfbfb4
Display the number of failed password attempts (if any) when the server is
...
locked. From Tom Doherty.
2009-07-20 14:37:51 +00:00
Nicholas Marriott
b292f71c49
Add a status-justify option to allow the window list in the status line to be
...
positioned at the left, centre, or right.
2009-07-20 14:32:09 +00:00
Nicholas Marriott
e32e0d5692
New options, window-status-current-{fg,bg,attr}, to set the fg, bg and
...
attributes with which the current window is shown in the status line. From
Johan Friis, thanks.
2009-07-20 09:15:18 +00:00
Nicholas Marriott
73732ffa05
Kill some dead stores and fix a null pointer deref, found by clang.
2009-07-20 07:31:10 +00:00
Nicholas Marriott
ff2cc0e387
Move the offsets as well when swapping panes.
2009-07-20 07:13:31 +00:00
Jason McIntyre
550b855c9d
tweak previous;
2009-07-19 14:07:47 +00:00
Nicholas Marriott
6036bdd06c
Improved layout code.
...
Each window now has a tree of layout cells associated with it. In this tree,
each node is either a horizontal or vertical cell containing a list of other
cells running from left-to-right or top-to-bottom, or a leaf cell which is
associated with a pane.
The major functional changes are:
- panes may now be split arbitrarily both horizontally (splitw -h, C-b %) and
vertically (splitw -v, C-b ");
- panes may be resized both horizontally and vertically (resizep -L/-R/-U/-D,
bound to C-b left/right/up/down and C-b M-left/right/up/down);
- layouts are now applied and then may be modified by resizing or splitting
panes, rather than being fixed and reapplied when the window is resized or
panes are added;
- manual-vertical layout is no longer necessary, and active-only layout is gone
(but may return in future);
- the main-pane layouts now reduce the size of the main pane to fit all panes
if possible.
Thanks to all who tested.
2009-07-19 13:21:40 +00:00
Nicholas Marriott
fc6a65c620
Add three new session options: visual-activity, visual-bell, visual-content. If
...
these are enabled (and the monitor-activity, bell-actio and monitor-content
options are configurated appropriately), when activity, a bell, or content is
detected, a message is shown.
Also tidy up the bell/activity/content code in server.c slightly and fix a
couple of errors.
2009-07-18 14:59:25 +00:00
Nicholas Marriott
0ca6f667e3
Make it so using kill-pane to destroy the last pane in a window destroys the
...
window instead of being an error.
2009-07-17 20:37:03 +00:00
Nicholas Marriott
6f5150a943
- New command display-message (alias display) to display a message in the
...
status line (bound to "i" and displays the current window and time by
default). The same substitutions are applied as for status-left/right.
- Add support for including the window index (#I), pane index (#P) and window
name (#W) in the message, and status-left or status-right.
- Bump protocol version.
From Tiago Cunha, thanks!
2009-07-17 18:45:08 +00:00
Nicholas Marriott
ad006bc6b6
When resizing a screen smaller in alternate screen mode, all the lines needed
...
could be consumed by deleting from the bottom, leaving none to be removed from
the top. In this case, don't call grid_view_delete_lines with ny of 0 as this
is incorrect and causes a bounds check to fatal error if built with -DDEBUG.
2009-07-17 18:35:11 +00:00
Nicholas Marriott
ce53936a2b
Tidy up new-session and attach-session and change them to work from inside
...
tmux, switching the current client to the new or requested session.
Written with Josh Elsasser.
2009-07-17 15:03:11 +00:00
Nicholas Marriott
1938c994e7
Remove a duplicate key binding, and turn off autorepeat for up/down as it is
...
kind of annoying by default.
2009-07-17 13:43:07 +00:00
Nicholas Marriott
7ddba901a4
If -u is specified or UTF-8 is otherwise detected when the server is started,
...
enable the utf8 and status-utf8 optons. While here, note in the man page that
the server is started with the first session and exits when none remain.
2009-07-17 13:38:03 +00:00
Nicholas Marriott
d3b5c242cc
Oops, it is always a good idea to get arguments the right way round.
2009-07-17 07:09:46 +00:00
Nicholas Marriott
216df07688
A similar for fix for window_choose: don't rely on the callback always being
...
called to free data, have a separate free callback and call it from the mode
cleanup code.
2009-07-17 07:05:58 +00:00
Nicholas Marriott
65deba3a35
Memory could be leaked if a second prompt or message appeared while another was
...
still present, so add a separate prompt free callback and make the _clear
function responsible for calling it if necessary (rather than the individual
prompt callbacks). Also make both messages and prompts clear any existing when
a new is set.
In addition, the screen could be modified while the prompt is there, restore
the redraw-entire-screen behaviour on prompt clear; add a comment as a
reminder.
2009-07-17 06:13:27 +00:00
Nicholas Marriott
9642f0373f
Remove some duplicate code that was causing the status line to be redrawn even
...
when it hadn't changed.
2009-07-16 23:25:21 +00:00
Nicholas Marriott
3e9d9a2119
Fix arguments to switch-client.
2009-07-16 22:50:49 +00:00
Nicholas Marriott
924bf8477f
Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrong
...
place when copying UTF-8 data. Found by Dan Colish.
2009-07-16 07:34:37 +00:00
Nicholas Marriott
92da443a9e
Make status_message_set a variadic printf-like function. No functional change -
...
helpful for a couple of things coming soon.
2009-07-15 17:39:00 +00:00
Nicholas Marriott
780fd8f7a6
Return -1 not NULL on error, pointed out by Roy Marples.
2009-07-15 15:09:17 +00:00
Nicholas Marriott
aa3403a343
Add a -k flag to unlink-window which makes it behave the same as the old
...
kill-window - if a window is linked into only one session it unlinked and
destroyed.
2009-07-15 08:05:56 +00:00
Nicholas Marriott
9601b72e4c
The man page says that kill-window removes the window entirely, unlinking it
...
from any sessions. In fact the implementation only affected the current
session, making it the same as unlink-window but destroying the window if it
was linked into only one session (unlinkw gives an error). Change the behaviour
to match what it documented and was originally intended.
2009-07-15 08:00:49 +00:00
Nicholas Marriott
ca617d679f
Having to update NSETOPTION/NSETWINDOWOPTION when adding new options is a bit
...
annoying and it is only use for iterating, so use a sentinel to mark the end of
each array instead. Different fix for a problem pointed out by Kalle Olavi
Niemitalo.
2009-07-15 07:50:34 +00:00
Nicholas Marriott
615d85fb23
Add main-pane-height to the options list (was missed before).
2009-07-14 20:20:04 +00:00
Nicholas Marriott
f08c9b2217
For some reason when clearing status/message it was redrawing the entire client
...
not just the status line. Changing this also revealed the check for the status
line was incorrect when drawing the pane.
2009-07-14 19:11:58 +00:00
Nicholas Marriott
ae2ea52575
Instead of faking up a status line in status_redraw, use the same code to
...
redraw it as to draw the entire screen, just skip all lines but the last.
This makes horizontal split redraw properly when the status line is off.
2009-07-14 19:03:16 +00:00
Nicholas Marriott
e76caa0017
Don't accept input to a window if it not visible.
2009-07-14 16:52:50 +00:00
Nicholas Marriott
975f516f51
The scroll region cannot be one line only, ignore attempts to make it so.
2009-07-14 14:47:32 +00:00
Nicholas Marriott
fe20c0d89e
Get rid of the PANE_HIDDEN flag in favour of a function, and moving the
...
decision for whether or not a pane should be drawn out of the layout code and
into the redraw code.
This is needed for the new layout design, getting it in now to make that easier
to work on.
2009-07-14 07:23:36 +00:00
Nicholas Marriott
4a9b01eb0d
Need time.h not sys/time.h for time(2).
2009-07-14 06:59:06 +00:00
Nicholas Marriott
6910458a92
Add backspace key to named keys.
2009-07-14 06:56:30 +00:00
Nicholas Marriott
ceace9c6bd
Since tmux doesn't actually need ncurses, use -lcurses/curses.h
...
instead. Pointed out by millert a while ago.
2009-07-14 06:30:45 +00:00
Nicholas Marriott
5f108d9df6
Having fixed flags for single-character getopt options is a bit hard to
...
maintain and is only going to get worse as more are used. So instead, add a new
uint64_t member to cmd_entry which is a bitmask of upper and lowercase options
accepted by the command.
This means new single character options can be used without the need to add it
explicitly to the list.
2009-07-13 23:11:35 +00:00
Jason McIntyre
5d91555c7c
zap trailing whitespace;
2009-07-13 20:14:23 +00:00
Nicholas Marriott
cba885a67c
Expand leading tildes in arguments, from Tiage Cunha.
2009-07-13 18:49:36 +00:00
Nicholas Marriott
cf411053c7
copy-mode and scroll-mode have a -u flag missing from usage, add it.
2009-07-13 18:44:17 +00:00
Nicholas Marriott
023d8d38ec
Tidy up and improve target (-t) argument parsing:
...
- move the code back into cmd.c and merge with the existing functions where
possible;
- accept "-tttyp0" as well as "-t/dev/ttyp0" for clients;
- when looking up session names, try an exact match first, and if that fails
look for it as an fnmatch pattern and then as the start of a name - if more
that one session matches an error is given; so if there is one session called
"mysession", -tmysession, -tmysess, -tmysess* are equivalent but if there
is also "mysession2", the last two are errors;
- similarly for windows, if the argument is not a valid index or exact window
name match, try it against the window names as an fnmatch pattern and a
prefix.
2009-07-13 17:47:46 +00:00
Nicholas Marriott
359285928b
Support "alternate screen" mode (terminfo smcup/rmcup) typically used by full
...
screen interactive programs to preserve the screen contents. When activated, it
saves a copy of the visible grid and disables scrolling into and resizing out
of the history; when deactivated the visible data is restored and the history
reenabled.
2009-07-13 10:43:52 +00:00
Nicholas Marriott
0b788a3d61
Missed this declaration in key bindings change. Whoops.
2009-07-12 23:46:49 +00:00
Nicholas Marriott
88555d96d5
Document the -k flag to new-window.
2009-07-12 23:45:03 +00:00
Nicholas Marriott
9e49ec6cd3
Creating a key binding which replaces itself (such as "bind x bind x lsw")
...
frees the command list bound to the key while it is still being executed,
leading to a use after free. To prevent this, create a dead keys list and defer
freeing replaced or removed key bindings until the main loop when the key
binding will have finished executing.
Found by Johan Friis when creating a key binding to reload his configuration
file.
2009-07-12 17:33:18 +00:00
Nicholas Marriott
22d51ec1ea
Add a "back to indentation" key in copy mode to move the cursor to the first
...
non-whitespace character. ^ with vi and M-m with emacs key bindings. Another
from Kalle Olavi Niemitalo, thanks.
2009-07-12 16:15:34 +00:00
Nicholas Marriott
fa8333eddb
Merge three copies of identical code to move the cursor x position into a
...
single function, from Kalle Olavi Niemitalo.
2009-07-12 16:12:34 +00:00
Nicholas Marriott
22355ce947
If it exist, load a system-wide configuration file /etc/tmux.conf before any
...
user-specified one.
2009-07-12 16:07:56 +00:00
Nicholas Marriott
bd098c273b
Limit the history to hlimit not hlimit - 1. This makes a history-limit setting
...
of 0 work as expected.
2009-07-11 20:11:18 +00:00
Nicholas Marriott
e415ead361
Add -r to the synopsis of the paste-buffer command, prompted by jmc.
2009-07-11 20:04:19 +00:00
Nicholas Marriott
2f7198246e
When pasting, translate \n into \r. This matches xterm and putty's behaviour,
...
and makes emacs happy when pasting into some modes. A new -r (raw) flag to
paste-buffer pastes without the translation.
From Kalle Olavi Niemitalo, thanks!
2009-07-11 19:14:56 +00:00
Nicholas Marriott
289320a9b1
Copy was using the real line length which after resize can be larger than the
...
screen width. When built with -DDEBUG, this made the grid bounds checking code
kill the server. Restrict copying to the actual width.
From Kalle Olavi Niemitalo, thanks.
2009-07-11 19:09:24 +00:00
Nicholas Marriott
4cbbbddf22
paste-buffer -d was not documented. From Kalle Olavi Niemitalo.
2009-07-10 19:01:40 +00:00
Nicholas Marriott
9cd5ba40d3
Redraw the status line after renaming a session (it may contain the name).
2009-07-10 17:34:51 +00:00
Nicholas Marriott
4a6d62e401
Don't send initialisation strings is1/2/3 (barely anything else does) and move
...
smcup to the first and rmcup to the last sequences output to the terminal. This
allows tmux to use the alternate screen (smcup/rmcup) when available.
2009-07-10 07:11:59 +00:00
Nicholas Marriott
daa1faa905
Add a default-terminal option to set the starting value of $TERM in new
...
windows.
This is "screen" by default and must be either that or something closely
related. This does makes it easier to customise it if necessary.
2009-07-10 05:50:54 +00:00
Nicholas Marriott
25d5734496
Document display-time option which seems to have been missed.
2009-07-10 05:43:01 +00:00
Nicholas Marriott
58361eb965
When the terminal size is reduced horizontally, don't truncate lines to the new
...
width, so that if the same lines are later increased in size the content
reappears.
2009-07-09 22:48:20 +00:00
Nicholas Marriott
5f2f07ed8a
Cursor up and down should be limited by the scroll region (cuu should stop at
...
the scroll region top if starting from below it and cud stop at the bottom if
starting from above). Fixes another vttest test.
2009-07-09 17:57:11 +00:00
Nicholas Marriott
81181bfb72
New command, if-shell (alias if). Executes the tmux command in the second
...
argument if the shell command in the first succeeds, for example:
if "[ -e ~/.tmux.conf.alt ]" "source .tmux.conf.alt"
Written by Tiago Cunha, many thanks.
2009-07-09 15:47:49 +00:00
Nicholas Marriott
24e1327d0d
Stop in the right place so all the lines selected are copied. Reported by Kalle
...
Olavi Niemitalo, thanks.
2009-07-09 15:02:00 +00:00
Nicholas Marriott
29f9d5f335
Don't leak FILE * on malloc failure. From ivoire at users dot sourceforge dot net.
2009-07-09 09:54:56 +00:00
Nicholas Marriott
86c93c6e34
Change inserting and deleting lines inside the scroll region to properly clear
...
lines that should be inserted/deleted but not moved. Fixes problems with mutt
reported by Brian Lewis, thanks.
2009-07-09 07:58:14 +00:00
Nicholas Marriott
643c219d18
Tidy by removing unused argument from grid_view_{insert,delete}_line_region
...
functions (currently don't fully work, this is to make fix easier).
2009-07-09 00:29:32 +00:00
Nicholas Marriott
f63761eabc
Fix two memory leaks when assigning shell variables in configuration
...
file/command prompt. From Tiago Cunha.
2009-07-08 16:04:56 +00:00
Nicholas Marriott
8c497ecac0
When reinitialising the screen, do not omit to clear the last line.
2009-07-08 05:56:11 +00:00
Nicholas Marriott
084d07f4eb
Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX,
...
and some people may use shells which do not support it. Instead, make an empty
default-command option mean a login shell, and fork it with a - in argv[0]
which is the method used by login(1).
Also fix the automatic-rename code to handle this correctly and to strip a
leading - if present.
2009-07-08 05:26:45 +00:00
Nicholas Marriott
b4efd1ca89
Don't let ambiguous commands override an exact alias match: eg if commands
...
"abc-1", "abc-2", "abc-3" exist and "abc-3" has the alias "abc", "tmux abc"
should execute abc-3, not complain about the command being ambiguous.
Not a problem at the moment but will be soon.
2009-07-07 21:23:22 +00:00
Nicholas Marriott
923ccfa2e8
Rename the global options variables to be shorter and to make session options
...
clear. No functional change, getting this out of the way to make later options
changes easier.
2009-07-07 19:49:19 +00:00
Nicholas Marriott
474fdebb7a
Handle empty or unset TERM correctly; also fix a fatal() message while here.
2009-07-07 17:24:32 +00:00
Nicholas Marriott
9ced016cbc
When sending a "protocol mismatch" error message, tell the client to exit
...
afterwards, otherwise it hangs.
2009-07-07 12:34:47 +00:00
Nicholas Marriott
e538d4adae
The fix for default-path (use target session options instead of global options)
...
is required here as well, doh.
2009-07-07 07:01:10 +00:00
Nicholas Marriott
eb424cf63d
Minor fix: look for default-path in the options for the specified session first
...
rather than just the global options. From Brandon Mercer, thanks.
2009-07-07 06:58:49 +00:00
Nicholas Marriott
69e150b7e3
Add a section summarising how options work, make the distinction between window
...
and session options clearer, and fix the incorrect synopses and descriptions of
show-options and show-window-options.
2009-07-06 19:50:04 +00:00
Nicholas Marriott
fe5edad1fc
Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error
...
when trying to paste them, found by me, and miscalculation of the start/end
causing random fatal errors when copying in copy-mode, reported by sthen.
ok sthen "put it in" deraadt
2009-07-02 16:15:43 +00:00
Nicholas Marriott
4c5c125173
When unlocking the server, don't try to clear the prompt on clients without a
...
prompt (such as the one issuing the unlock request).
This caused the server to die if the wrong password was entered when unlocking
from the command line with -U (nasty).
2009-06-30 13:40:30 +00:00
Nicholas Marriott
68e06fb6b7
Fix two errors with character/line insertion and deletion: the maximum number
...
of characters which may be inserted or deleted is the screen width, not one
less (and similarly for lines and height); and if characters or lines are
deleted by moving the ones that follow, the space at the end needs to be
cleared.
This appears to solve long-standing redraw issues most visible when using the
force-width option then scrolling in view(1) or unwrapping lines in emacs.
2009-06-29 21:30:50 +00:00
Nicholas Marriott
003e8e65f7
Don't try to page up with scroll-mode -u or copy-mode -u unless the mode was
...
successfully changed - if already in a different mode, it would corrupt the
mode data.
2009-06-29 07:11:20 +00:00
Nicholas Marriott
710393e388
Use gmtime_r so the current time isn't overwritten, the minute comparison works
...
and the clock is actually updated. It was already used for lock-server but not
here.
2009-06-27 14:40:22 +00:00
Nicholas Marriott
2660692fb1
Copy the 256-colour flag into the tty saved cell as well as the actual colour,
...
otherwise colour 8 isn't reset properly.
2009-06-27 12:57:14 +00:00
Nicholas Marriott
916669a244
Add missing spaces before some alias closing brackets, otherwise they are
...
shown in the wrong style.
2009-06-26 22:47:06 +00:00
Nicholas Marriott
46f80d01ff
After logging (if enabled) is switched to file, there is no reason to keep
...
stdin/stdout/stderr active, so dup them to /dev/null.
2009-06-26 22:12:19 +00:00
Nicholas Marriott
b11b1dd1c0
Remove some unused function declarations; no binary change.
2009-06-26 19:44:36 +00:00
Nicholas Marriott
1ec736a3dc
Status line fixes: don't truncate status-right now the length calculation is
...
done for UTF-8, limit to the maximum length correctly when printing, and always
print a space even if the left string is longer than the width available.
2009-06-26 15:13:39 +00:00
Nicholas Marriott
c506e7f711
Also #ifndef nitems here, caught by Thomas Jeunet.
2009-06-26 10:55:37 +00:00
Nicholas Marriott
eb8ab96980
Remove some dead assignments, found by sthen with clang.
2009-06-25 22:09:20 +00:00
Nicholas Marriott
e225ce0fd7
#ifndef nitems to avoid redefining it if it is already in a header.
2009-06-25 22:08:15 +00:00
Nicholas Marriott
e8c10f5b34
Use the pane flags not the window flags. Doh.
2009-06-25 08:08:18 +00:00
Marc Espie
5050171f6b
diagflags for diags
...
okay nicm@
2009-06-25 07:42:41 +00:00
Nicholas Marriott
dbbb297d5f
If getcwd() fails, use the user's home directory, or /, instead of failing with
...
an error.
2009-06-25 06:54:32 +00:00
Nicholas Marriott
be17ac1eb2
lines variable can be -1 (to be ignored), so should be signed. Found by lint.
2009-06-25 06:48:23 +00:00
Nicholas Marriott
40c242a6d5
Remove error about using -L and -S together which was never displayed as
...
logging wasn't yet enabled, was unnecessary, and contradicted the man page
which says using -S will cause -L to be ignored.
2009-06-25 06:40:25 +00:00
Nicholas Marriott
a7075f1c66
tmux doesn't and won't need syslog logging, so remove it and some other unused
...
functions found by lint.
Also move a couple of internal function declarations into file scope.
2009-06-25 06:23:10 +00:00
Nicholas Marriott
1675ddb4d1
Miscellaneous unused functions, including one which was basically a
...
duplicate. Found by lint.
2009-06-25 06:15:04 +00:00
Nicholas Marriott
ed8350422e
Nuke unused buffer functions. Found by lint.
...
Also remove some old debug output which was #if 0.
2009-06-25 06:05:47 +00:00
Nicholas Marriott
9144d30848
Unused prototypes. Found by lint, no binary change.
2009-06-25 06:00:45 +00:00
Nicholas Marriott
83078bdcbc
Unused variables. Found by lint, no binary change.
2009-06-25 05:56:44 +00:00
Nicholas Marriott
74d0851ac5
Remove some cruft from the Makefile.
2009-06-24 23:32:18 +00:00
Nicholas Marriott
23326e40cf
Now that a UTF-8-capable puts function exists, use it for printing strings in
...
choice/more modes - lines with UTF-8 now display properly in find-window
results.
2009-06-24 23:00:31 +00:00
Nicholas Marriott
3db2433448
Fix a type mismatch warning in assignment.
2009-06-24 22:51:47 +00:00
Nicholas Marriott
7e796dea03
Change find-window and monitor-content to use fnmatch(3). For convenience and
...
compatibility, *s are implicitly added at the start and end of the pattern.
Also display the line number and the entire line in the results, and lose the
nasty section_string function and the now empty util.c file.
Initially from Tiago Cunha.
2009-06-24 22:49:56 +00:00
Nicholas Marriott
096cbf2ea5
Add a dedicated function to convert a line into a string and use it to simplify the search window function.
2009-06-24 22:04:18 +00:00
Nicholas Marriott
f4b8f00255
Change to match xterm's resizing behaviour, including pushing lines into the
...
history from the top when reducing vertical size and pulling them again when
increasing size.
ok todd sthen
2009-06-24 19:12:44 +00:00
Nicholas Marriott
da8401d8be
Make remain-on-exit work again when there is only one pane left, which was
...
broken sometime during the pane/layout changes. Reported/tested by Iain Morgan,
thanks.
2009-06-24 17:36:15 +00:00
Nicholas Marriott
2de599ac0e
Trying to predict the cursor position for UTF-8 output in the same way as for
...
normal eight-bit output is wrong, separate it into a different function. Fixes
spacing when mixing UTF-8 with some escape sequences, notably the way w3m does
it.
2009-06-24 16:01:02 +00:00
Jason McIntyre
7b4077ef87
tweak previous;
2009-06-24 08:13:22 +00:00
Nicholas Marriott
27cfa81110
Constify utf8_width() function argument.
2009-06-24 05:35:07 +00:00
Nicholas Marriott
013b88dfc3
Mention LC_ALL, LC_CTYPE.
2009-06-23 23:26:08 +00:00
Nicholas Marriott
6d2830a473
Add some common config file examples to the quick start section.
2009-06-23 22:13:11 +00:00
Nicholas Marriott
69f3c24647
If a pane is "zombified" (remain-on-exit flag), don't continue to queue key and
...
mouse input for it (otherwise they are processed after respawn).
2009-06-23 20:17:30 +00:00
Nicholas Marriott
c2b0fdae5b
LC_ALL overrides LC_CTYPE and LANG. Comment was correct but the code
...
wrong. Pointed out by Hannah Schroeter, thanks.
2009-06-23 18:27:40 +00:00
Nicholas Marriott
89262c62fe
Terminate cwd buffer before running xstrdup on it.
2009-06-05 11:14:13 +00:00
Nicholas Marriott
18665b8cc9
Check the first of LC_CTYPE, LC_ALL and LANG, rather than just the last, when
...
trying to decide about UTF-8, and use strcasestr. Reported by Geert Hendrickx.
2009-06-05 07:22:23 +00:00
Nicholas Marriott
a3c32841e6
strdup the input to putenv to avoid in one case passing a string that is later
...
freed and in the other const strings.
looks sane to millert, ok ray
2009-06-05 07:18:37 +00:00
Nicholas Marriott
1156467726
Call setproctitle earlier in the client, and include the socket name. Makes it
...
easier to match client to server in ps/pgrep when using several servers.
2009-06-05 07:15:58 +00:00
Ray Lai
74749e8705
Remove trailing newlines, spaces, and tabs.
...
No binary change.
2009-06-05 03:13:16 +00:00
Nicholas Marriott
85e0d8a221
Print a better message than '(null)' if no command is specified ("tmux \;").
2009-06-04 23:34:32 +00:00
Nicholas Marriott
38b2c42f63
Zero the password given to -U in the client as well.
2009-06-04 21:56:14 +00:00
Nicholas Marriott
50bd094856
If the prompt is hidden or a password is sent with -U, zero it before freeing
...
it.
2009-06-04 21:43:24 +00:00
Nicholas Marriott
f031975dc0
Implement the CBT (backward tab) sequence (\033[Z).
2009-06-04 21:02:21 +00:00
Nicholas Marriott
d42fb43f4f
Proper support for tab stops (\033H etc), using a bitstring(3). Makes another
...
vttest test happy.
2009-06-04 18:48:24 +00:00
Nicholas Marriott
d6015824dd
Okay, so I screwed up when testing this, doh. Unbreak so that CAN/SUB actually
...
do cancel the sequence, and tweak to make the code more clear.
2009-06-04 14:42:14 +00:00
Nicholas Marriott
6c1f03578d
Oops, CAN and SUB should abort the sequence (return to first state), not remain
...
in the same state.
2009-06-04 14:24:49 +00:00
Nicholas Marriott
8dd2f0da3f
More input compatibility love. Support C0 within escape sequences, and the C0
...
control character VT (vertical tab, \013), which is treated as LF like
VT102. Makes another vttest happy.
2009-06-04 14:15:50 +00:00
Jason McIntyre
0ba85cc326
zap trailing whitespace;
2009-06-04 13:36:25 +00:00
Nicholas Marriott
c1a4c0186a
Support insert mode by using insert character to shift the cells before writing
...
as normal.
2009-06-03 23:37:30 +00:00
Nicholas Marriott
52ec9b9ec4
Implement the DEC alignment test. With the last change this is enough for the
...
first cursor test in vttest (in ports) to pass; it still shops a few more
problems though.
2009-06-03 23:30:40 +00:00
Nicholas Marriott
ebe07c2726
Fix some miscalculations when clearing to start of screen: the number of lines
...
to the cursor is cy not cy - 1, and the current cursor cell should be included.
2009-06-03 23:26:56 +00:00
Nicholas Marriott
3f16fcb30a
Use vis(3) instead of handrolled function.
2009-06-03 19:37:27 +00:00
Nicholas Marriott
2faec76afa
Pass window titles through vis(1). <0x20 is dropped anyway by the input state
...
machine but top-bit-set nonprintables could cause trouble, and they are neater
like this anyway.
Suggested by deraadt a few days ago.
2009-06-03 19:33:04 +00:00
Nicholas Marriott
655a1aea6c
Do not set the window title by default (make set-titles option default to off),
...
wiping over the title is rude and annoying. Agreed by several.
2009-06-03 17:04:16 +00:00
Nicholas Marriott
6521427a45
New session option, status-utf8, to control the interpretation of top-bit-set
...
characters in status-left and status-right (if on, they are treated as UTF-8;
otherwise passed through).
2009-06-03 16:54:26 +00:00
Nicholas Marriott
7d45e29683
Add a UTF-8 aware string length function and make UTF-8 in
...
status-left/status-right work properly. At the moment any top-bit-set
characters are assumed to be UTF-8: a status-utf8 option to configure this will
come shortly.
2009-06-03 16:05:46 +00:00
Nicholas Marriott
41d985ace3
Add missing documentation for the -a flag used to move to next/previous window
...
with alert.
2009-06-03 15:58:40 +00:00
Nicholas Marriott
e659aa86b9
Add a section summarising the status line. There are quite a number of status
...
line options, it is something many want to configure, and the meaning of some
bits weren't really documented.
2009-06-03 15:47:14 +00:00
Jason McIntyre
5823854b5e
undo a mistake found by sobrado;
2009-06-03 09:29:06 +00:00
Nicholas Marriott
c5dbec9e85
When swapping pane positions, swap the PANE_HIDDEN flag as well, otherwise tmux
...
crashes when trying to find the new active pane.
While here, nuke an unused pane flag.
Fixes PR 6160, reported by and a slightly different version of diff tested by
ralf.horstmann at gmx.de.
2009-06-03 07:51:24 +00:00
Jason McIntyre
646cfa6983
some cleanup; ok nicm
2009-06-03 06:49:05 +00:00
Ray Lai
fdda4142bf
Cast char to u_char before passing to isalnum().
...
OK nicm@
2009-06-03 04:03:16 +00:00
Nicholas Marriott
3f76a973ee
Recent code to try and detect if a terminal supports UTF-8 by printing to it
...
fails spectacularly on (at least) sparc64, so disable it for now. Thanks to
naddy and Josh Elsasser for help and testing.
2009-06-02 23:39:32 +00:00
Igor Sobrado
4215d009a5
remove unused flag; while here, make usage's output fit on 80-column displays.
2009-06-02 16:53:20 +00:00
Igor Sobrado
a35630838f
sort options alphabetically.
2009-06-02 16:46:00 +00:00
Pierre-Yves Ritschard
dc373abba8
spawn login shells by default, adapt manpage bits as well.
...
ok nicm@
2009-06-02 15:55:32 +00:00
Ray Lai
f60bc7e03b
Don't access array[-1] if array is an empty string.
...
OK nicm@
2009-06-02 11:18:59 +00:00
Ray Lai
49c776ea59
Make code clearer:
...
- if (hdr->size > SIZE_MAX - 1)
+ if (hdr->size == SIZE_MAX)
OK nicm@
2009-06-02 11:17:03 +00:00
Ray Lai
3686645e77
Don't dereference NULL if buf winds up being empty. Can't happen
...
right now according to NicM but better safe than sorry.
OK nicm@
2009-06-02 11:14:08 +00:00
Ray Lai
df91860b52
Don't leak memory if multiple -f flags are given.
...
OK nicm@
2009-06-02 10:49:40 +00:00
Nicholas Marriott
29d4016572
Update the man page with some recent changes to the code:
...
- SIGUSR1 recreates the socket;
- guesswork to work out if the terminal supports UTF-8;
- a paste key for the command prompt;
- main-horizontal layout to match main-vertical, and options to configure the
size of the large pane;
- clear-history command;
- select-layout command.
2009-06-01 23:51:00 +00:00
Nicholas Marriott
6e3f673ef7
Whoops, didn't mean to add this.
2009-06-01 23:00:54 +00:00
Nicholas Marriott
35876eaab9
Import tmux, a terminal multiplexor allowing (among other things) a single
...
terminal to be switched between several different windows and programs
displayed on one terminal be detached from one terminal and moved to another.
ok deraadt pirofti
2009-06-01 22:58:49 +00:00