aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
Commit message (Collapse)AuthorAge
* Use sysconfdir for the location of global tmux.conf (but default it to /etc),Nicholas Marriott2013-04-24
| | | | based on changes from Dagobert Michelsen.
* -paths.h. Fixes Solaris, from Dagobert Michelsen.Nicholas Marriott2013-04-22
|
* Add back missing -V flagThomas Adam2013-04-14
| | | | This went walkies from a previous git commit.
* Merge branch 'obsd-master'Thomas Adam2013-04-13
|\ | | | | | | | | Conflicts: tmux.c
| * Call setlocale(LC_TIME) at startup.Nicholas Marriott2013-04-11
| |
| * Add TMUX_TMPDIR variable to put the socket directory outsideNicholas Marriott2013-03-27
| | | | | | | | TMPDIR. From Ben Boeckel.
| * Rename session idx to session id throughout and add $ prefix to targetsNicholas Marriott2013-03-25
| | | | | | | | to use it, extended from a diff from George Nachman.
| * Add a command queue to standardize and simplify commands that call otherNicholas Marriott2013-03-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Rename session idx to session id throughout and add $ prefix to targets to useNicholas Marriott2013-03-07
| | | | | | | | it, extended from a diff from George Nachman.
* | Add a command queue to standardize and simplify commands that call otherNicholas Marriott2013-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'obsd-master'Thomas Adam2012-11-27
|\| | | | | | | Sync from OpenBSD.
| * Correctly aggregate together errors from nested config files (withNicholas Marriott2012-11-27
| | | | | | | | source-file). Fix by Thomas Adam, reported by Sam Livingstone-Gray
| * Call realpath earlier on the socket directory path rather than on theNicholas Marriott2012-11-26
| | | | | | | | | | socket file path because the latter may not exist yet and in that case realpath is allowed to fail. From Romain Francoise.
| * xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
| |
| * Add a skeleton mode to tmux (called "control mode") that let's tmuxNicholas Marriott2012-06-18
| | | | | | | | | | | | | | 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.
| * Do not use stderr for log file and don't call log_close when not needed.Nicholas Marriott2012-05-30
| |
| * Simplify logging and just fprintf(stderr, ...) for early errors.Nicholas Marriott2012-05-25
| |
| * Drop the ability to have a list of keys in the prefix in favour of twoNicholas Marriott2012-01-21
| | | | | | | | | | | | | | | | | | | | 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 :-).
| * Try to resolve relative paths for loadb and saveb (first using clientNicholas Marriott2011-10-23
| | | | | | | | working directory if any then default-path or session wd).
| * Ignore LC_ALL and LC_CTYPE if they are empty as well as unset.Nicholas Marriott2011-10-23
| |
| * Reject $SHELL if it is not a full path.Nicholas Marriott2011-09-25
| |
| * Two fixes by Micah Cowan: make mouse work properly beyond >127 on signedNicholas Marriott2011-03-04
| | | | | | | | | | char architectures and properly parse $TMUX by stopping the socket path at the first comma.
| * Set $TMUX without the session when background jobs are run.Nicholas Marriott2011-01-23
| |
| * Use TMPDIR if set, from Han Boetes.Nicholas Marriott2011-01-12
| |
| * Move all calls to fcntl(...O_NONBLOCK) into a function and clear theNicholas Marriott2011-01-08
| | | | | | | | | | flag on the stdio file descriptors before closing them (fixes things like "tmux ls && cat").
| * Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262Nicholas Marriott2011-01-03
| | | | | | | | | | | | | | | | | | | | 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.
| * Move the user-visible parts of all options (names, types, limit, defaultNicholas Marriott2011-01-01
| | | | | | | | | | | | 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.
| * Change from a per-session stack of buffers to one global stack which isNicholas Marriott2010-12-30
| | | | | | | | | | | | | | 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.
| * Add other-pane-height and other-pane-width options, allowing the widthNicholas Marriott2010-12-19
| | | | | | | | | | or height of the smaller panes in the main-horizontal and main-vertical layouts to be set. Mostly from David Goodlad.
| * In the built-in layouts, distribute the panes more evenly. Set theNicholas Marriott2010-12-08
| | | | | | | | default value of main-pane-width to 80, rather than 81. By Micah Cowan.
| * Add an option to alert (monitor) for silence (lack of activity) in aNicholas Marriott2010-12-06
| | | | | | | | window. From Thomas Adam.
| * If VISUAL or EDITOR contains "vi", configure mode-keys and status-keysNicholas Marriott2010-11-29
| | | | | | | | | | | | | | to vi. Based on a diff from martynas@, previously requested by a couple of other people.
| * Add XAUTHORITY to update-environment, requested by Andreas Kloeckner.Nicholas Marriott2010-11-11
| |
| * Merge the before and after attach client code into one in client.cNicholas Marriott2010-10-18
| | | | | | | | (instead of two in tmux.c and client.c).
| * Make stdio blocking again before calling shell command with -c.Nicholas Marriott2010-10-16
| |
| * Trying to set FD_CLOEXEC on every fd is a lost cause, just useNicholas Marriott2010-10-16
| | | | | | | | closefrom() before exec.
| * Use an explicit event rather than event_once for the main event so itNicholas Marriott2010-10-14
| | | | | | | | can be removed when the client becomes ready.
| * Two new options:Nicholas Marriott2010-09-26
| | | | | | | | | | | | | | | | | | | | | | | | - 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.
| * Do not call event_del() for signals after fork(), just use sigaction()Nicholas Marriott2010-08-19
| | | | | | | | | | directly instead - calling libevent functions after fork() w/o event_reinit() is a bad idea, even if in this case it was harmless.
| * switch back to kqueue for now, since (a) kqueue has been fixed to dealTheo Deraadt2010-08-04
| | | | | | | | | | | | 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
| * kqueue(2) is currently broken when used with /dev/null and a few otherNicholas Marriott2010-07-24
| | | | | | | | | | | | | | | | 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.
| * Return the command client return code with MSG_EXIT now that MSG_ERROR andNicholas Marriott2010-07-11
| | | | | | | | | | | | | | MSG_PRINT are unused. New clients should be compatible with old tmux servers but vice versa may print an error.
| * Send all three of stdin, stdout, stderr from the client to the server, so thatNicholas Marriott2010-06-28
| | | | | | | | | | | | | | | | 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).
| * Store the current working directory in the session, change the default-pathNicholas Marriott2010-06-27
| | | | | | | | | | option to default to empty and make that mean that the stored session CWD is used.
| * New option, detach-on-destroy, to set what happens to a client when the sessionNicholas Marriott2010-06-27
| | | | | | | | | | it is attached to is destroyed. If on (the default), it is detached; if off, it is switched to the most recently active session.
| * Setting the cmdlist pointer in the bind-key to NULL to prevent it being freedNicholas Marriott2010-06-26
| | | | | | | | | | | | | | | | | | | | | | 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@.
| * Colour+attribute options for status line alerts, from Alex Alexander.Nicholas Marriott2010-05-14
| |
| * Put this back in with the initialisation in the right order.Nicholas Marriott2010-05-04
| |
| * Revert last change, it appears to be broken somehow.Nicholas Marriott2010-05-04
| |
| * Make signal handler setup/teardown two common functions instead of six,Nicholas Marriott2010-05-03
| | | | | | | | | | and reset SIGCHLD after fork to fix problems with some shells. From Romain Francois.