aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
Commit message (Collapse)AuthorAge
...
* | Merge branch 'obsd-master'Thomas Adam2015-02-06
|\| | | | | | | | | Conflicts: cmd-pipe-pane.c
| * Make a tmux-%u directory under TMUX_TMPDIR, like TMPDIR.nicm2015-01-19
| |
* | No need for $Id$ now.Nicholas Marriott2014-11-08
| |
* | Merge branch 'obsd-master'Thomas Adam2014-10-21
|\| | | | | | | | | | | | | | | | | | | Conflicts: Makefile cmd-list-commands.c cmd-suspend-client.c job.c tmux.h xmalloc.c
| * Tidy up some includes.nicm2014-10-20
| |
* | Merge branch 'obsd-master'Thomas Adam2014-04-23
|\| | | | | | | | | | | | | Conflicts: Makefile tmux.1 window.c
| * Remove the "info" message mechanism, this was only used for about fivenicm2014-04-17
| | | | | | | | | | | | 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.
| * Remove log_debug2 as well and simplify log.c.nicm2014-03-31
| |
| * Leftovers from removing 88 colour support, from Theo Buehler.nicm2014-02-16
| |
* | Remove log_debug2 as well and simplify log.c.Nicholas Marriott2014-03-07
| |
* | Remove references to 88colour supportThomas Adam2014-02-05
| | | | | | | | Tmux doesn't directly support terminals with 88 colours directly anymore.
* | Merge branch 'obsd-master'Thomas2014-01-20
|\|
| * Do not attempt to read .tmux.conf if we can't figure out a homenicm2014-01-15
| | | | | | | | directory, from Tiago Cunha.
| * Three small changes from Tiago Cunha:nicm2014-01-09
| | | | | | | | | | | | - 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.
| * We accidentally haven't been using $TMUX to work out the session for anicm2013-10-10
| | | | | | | | | | | | 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.
| * Alter how tmux handles the working directory to internally use filenicm2013-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Merge IDENTIFY_* flags with CLIENT_* flags.nicm2013-10-10
| |
| * Don't treat TMUX_TMPDIR as a potential filenicm2013-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Fix previous not to leak fd on failure, whoops.nicm2013-10-05
| |
| * Use open(".")/fchdir() to save and restore current directory rather thannicm2013-10-05
| | | | | | | | getcwd()/chdir().
| * Rename global configuration define.Nicholas Marriott2013-04-24
| |
* | We accidentally haven't been using $TMUX to work out the session for a whileNicholas Marriott2013-10-06
| | | | | | | | | | 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.
* | Alter how tmux handles the working directory to internally use file descriptorsNicholas Marriott2013-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge IDENTIFY_* flags with CLIENT_* flags.Nicholas Marriott2013-10-06
| |
* | Fix previous not to lead fd on failure.Nicholas Marriott2013-10-05
| |
* | Use open(".")/fchdir() to save and restore current directory rather thanNicholas Marriott2013-10-05
| | | | | | | | getcwd()/chdir().
* | Don't treat TMUX_TMPDIR as a potential fileThomas2013-09-30
| | | | | | | | | | | | | | | | | | | | | | 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.
* | 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
| |