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
c376c5a817
Merge branch 'obsd-master'
2017-04-21 18:01:11 +01:00
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
4612419c14
Merge branch 'obsd-master'
2017-04-21 16:01:18 +01:00
c799425069
More unnecessary arguments now winlink points back to session.
2017-04-21 14:09:44 +00:00
bba588752f
Store state shared between multiple commands in the queue in a shared
...
structure.
2017-04-21 14:01:19 +00:00
22e594fcea
Merge branch 'obsd-master'
...
Conflicts:
Makefile.am
pty.c
2017-04-21 09:25:07 +01:00
87997efe8d
Use fdforkpty() instead of our own unwrapped versions.
2017-04-20 17:49:26 +00:00
48371216df
Merge branch 'obsd-master'
2017-04-20 12:01:14 +01:00
21993105e5
Now that struct winlink has a session pointer, can remove some arguments.
2017-04-20 09:43:45 +00:00
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
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
5a551ac57f
Merge branch 'obsd-master'
2017-04-19 16:01:14 +01:00
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
85af9c9c9d
Merge branch 'obsd-master'
2017-04-19 10:01:12 +01:00
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
a71c262d5f
Merge branch 'obsd-master'
2017-04-19 00:01:15 +01:00
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
de4f817bd6
Merge branch 'obsd-master'
2017-04-18 20:01:12 +01:00
623e35f594
Detect iTerm2 and use DECSLRM for it as well.
2017-04-18 18:21:37 +00:00
a54309147d
Merge branch 'obsd-master'
2017-04-18 18:01:17 +01:00
fb3c5efa50
Add a format for number of bytes writtent to client, useful for debugging.
2017-04-18 15:44:17 +00:00
28833efb48
Merge branch 'obsd-master'
2017-04-17 10:01:13 +01:00
7461c165b5
Remove a couple of redraw flags that no longer have any effect.
2017-04-17 06:40:32 +00:00
5f662d91db
Merge branch 'obsd-master'
...
Conflicts:
server-client.c
tmux.1
2017-04-06 11:10:17 +01:00
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
843e605b89
Merge branch 'obsd-master'
2017-03-22 08:01:17 +00:00
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
c5bdae466e
Merge branch 'obsd-master'
2017-03-09 18:01:16 +00:00
bce1dee034
Move the client identify (display-panes) code into server-client.c.
2017-03-09 17:06:35 +00:00
dbfee6a468
Move server_fill_environ into environ.c and move some other common code
...
into it.
2017-03-09 17:02:38 +00:00
180ebf0208
Merge branch 'master' of github.com:tmux/tmux
2017-03-09 15:39:36 +00:00
514a723f74
Solaris fixes, mostly from Dagobert Michelsen.
2017-03-09 15:39:13 +00:00
3ea36830f3
Merge branch 'obsd-master'
2017-03-08 14:01:23 +00:00
6b2009ad72
Add a helper function for the most common format_create/defaults/expand
...
pattern.
2017-03-08 13:36:12 +00:00
48a3dba6b9
Merge branch 'obsd-master'
2017-02-27 14:01:20 +00:00
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
6b45464120
Merge branch 'obsd-master'
2017-02-21 16:01:15 +00:00
27ee34e7fa
Don't need is1,is2,is3 so remove them.
2017-02-21 14:18:12 +00:00
ba3c1534e0
Merge branch 'obsd-master'
2017-02-14 20:01:12 +00:00
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
02e04477de
Merge branch 'obsd-master'
...
Conflicts:
server.c
2017-02-14 13:55:16 +00:00
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
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
96ad1d7779
Merge branch 'obsd-master'
2017-02-09 14:01:18 +00:00
b1fa3e25e4
Break the message storage function into its own function, useful for
...
debugging.
2017-02-09 12:09:33 +00:00
743f772bef
Merge branch 'obsd-master'
2017-02-09 02:01:17 +00:00
1811dc5271
Another helper function to write to terminal and log.
2017-02-08 23:53:03 +00:00
130b77edc7
Merge branch 'obsd-master'
2017-02-08 18:01:17 +00:00
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