| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
|
| |
Set cause when failing due to linking a window to itself, from Martin
Pieuchot.
|
|
|
|
|
|
| |
Skip NULL entries in the sessions list when choosing the next session,
from Simon Olofsson.
|
|
|
|
|
| |
Nuke a leftover RB tree declaration spotted by blambert.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Modify the permissions on the socket when adding or removing +x to show
attached sessions, rather than replacing them.
|
|
|
|
|
| |
detach-on-destroy is a session option, not server.
|
| |
|
|
|
|
|
|
| |
Ugh. Pass the right type into tty_term_has. Teaches me to make last
minute changes :-/.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Ignore terminal overrides settings without a value.
|
|
|
|
|
|
| |
When resizing the copy mode screen, don't allow it to end up with the
viewable position beyond the size of the history.
|
| |
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
|
| |
Do not crash if the screen size is too small for the indicator in copy mode.
|
|
|
|
|
| |
recently Timothy Larson.
|
|
|
|
|
|
| |
Simplify xterm modifier detection by treating as a bitmask + 1. Spotted
by and diff from Emanuele Giaquinta.
|
|
|
|
|
|
| |
Reset running jobs when the status line is enabled or disabled as well,
some people have it bound to a key.
|
|
|
|
|
| |
Add missing prototype.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
When destroying a pane, reset any mode (which reenables pane
bufferevent) before freeing the bufferevent.
|
|
|
|
|
|
| |
Can't call event_del() without event_set() first - so call event_set()
when setting up the client.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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@.
|
| |
|
|
|
|
|
|
| |
Do not allow duplicate session names to be created, reported by Dominik
Honnef, patch from Thomas Adam.
|
|
|
|
|
|
| |
Handle failure to change mode, to avoid dying when switching into copy
mode when already in a different mode. Reported by "Florian".
|
|
|
|
|
| |
Usage string fixes from Ben Boeckel.
|
|
|
|
|
|
| |
Treat trying to link or move to the same window as an error to avoid
removing it accidentally.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Show which pane is active in the list-panes output, suggested by Dominik
Honnef.
|
|
|
|
|
| |
dup() the stdin fd so it isn't closed twice (once for stdin, once for tty).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Send the \n to stdout with the message, not stderr... doh.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
some escapes i missed;
|
|
|
|
|
|
| |
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.
|