summaryrefslogtreecommitdiffstats
path: root/tmux.c
AgeCommit message (Collapse)Author
2015-09-14Move tzset() from log_open to main.nicm
2015-09-03A couple of style nits.nicm
2015-09-01Work out config file when needed not at startup.nicm
2015-08-30Path from $TMUX does not need to be global anymore.nicm
2015-08-30Login shell can be a client flag, and move the exec code into client.c.nicm
2015-08-30Event base does not need to be global.nicm
2015-08-30Some style nits and dead assignments.nicm
2015-07-20Add an option (history-file) for a file to save/restore command promptnicm
history, from Olof-Joachim Frahm.
2015-06-04tweak SYNOPSIS and usage();jmc
2015-01-19Make a tmux-%u directory under TMUX_TMPDIR, like TMPDIR.nicm
2014-10-20Tidy up some includes.nicm
2014-04-17Remove the "info" message mechanism, this was only used for about fivenicm
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-03-31Remove log_debug2 as well and simplify log.c.nicm
2014-02-16Leftovers from removing 88 colour support, from Theo Buehler.nicm
2014-01-15Do not attempt to read .tmux.conf if we can't figure out a homenicm
directory, from Tiago Cunha.
2014-01-09Three small changes from Tiago Cunha:nicm
- 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.
2013-10-10We accidentally haven't been using $TMUX to work out the session for anicm
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-10Alter how tmux handles the working directory to internally use filenicm
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-10Merge IDENTIFY_* flags with CLIENT_* flags.nicm
2013-10-10Don't treat TMUX_TMPDIR as a potential filenicm
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-05Fix previous not to leak fd on failure, whoops.nicm
2013-10-05Use open(".")/fchdir() to save and restore current directory rather thannicm
getcwd()/chdir().
2013-04-24Rename global configuration define.Nicholas Marriott
2013-04-11Call setlocale(LC_TIME) at startup.Nicholas Marriott
2013-03-27Add TMUX_TMPDIR variable to put the socket directory outsideNicholas Marriott
TMPDIR. From Ben Boeckel.
2013-03-25Rename session idx to session id throughout and add $ prefix to targetsNicholas Marriott
to use it, extended from a diff from George Nachman.
2013-03-24Add a command queue to standardize and simplify commands that call otherNicholas Marriott
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.
2012-11-27Correctly aggregate together errors from nested config files (withNicholas Marriott
source-file). Fix by Thomas Adam, reported by Sam Livingstone-Gray
2012-11-26Call realpath earlier on the socket directory path rather than on theNicholas Marriott
socket file path because the latter may not exist yet and in that case realpath is allowed to fail. From Romain Francoise.
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-06-18Add a skeleton mode to tmux (called "control mode") that let's tmuxNicholas Marriott
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-05-30Do not use stderr for log file and don't call log_close when not needed.Nicholas Marriott
2012-05-25Simplify logging and just fprintf(stderr, ...) for early errors.Nicholas Marriott
2012-01-21Drop the ability to have a list of keys in the prefix in favour of twoNicholas Marriott
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 :-).
2011-10-23Try to resolve relative paths for loadb and saveb (first using clientNicholas Marriott
working directory if any then default-path or session wd).
2011-10-23Ignore LC_ALL and LC_CTYPE if they are empty as well as unset.Nicholas Marriott
2011-09-25Reject $SHELL if it is not a full path.Nicholas Marriott
2011-03-04Two fixes by Micah Cowan: make mouse work properly beyond >127 on signedNicholas Marriott
char architectures and properly parse $TMUX by stopping the socket path at the first comma.
2011-01-23Set $TMUX without the session when background jobs are run.Nicholas Marriott
2011-01-12Use TMPDIR if set, from Han Boetes.Nicholas Marriott
2011-01-08Move all calls to fcntl(...O_NONBLOCK) into a function and clear theNicholas Marriott
flag on the stdio file descriptors before closing them (fixes things like "tmux ls && cat").
2011-01-03Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262Nicholas Marriott
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-01Move the user-visible parts of all options (names, types, limit, defaultNicholas Marriott
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.
2010-12-30Change from a per-session stack of buffers to one global stack which isNicholas Marriott
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-19Add other-pane-height and other-pane-width options, allowing the widthNicholas Marriott
or height of the smaller panes in the main-horizontal and main-vertical layouts to be set. Mostly from David Goodlad.
2010-12-08In the built-in layouts, distribute the panes more evenly. Set theNicholas Marriott
default value of main-pane-width to 80, rather than 81. By Micah Cowan.
2010-12-06Add an option to alert (monitor) for silence (lack of activity) in aNicholas Marriott
window. From Thomas Adam.
2010-11-29If VISUAL or EDITOR contains "vi", configure mode-keys and status-keysNicholas Marriott
to vi. Based on a diff from martynas@, previously requested by a couple of other people.
2010-11-11Add XAUTHORITY to update-environment, requested by Andreas Kloeckner.Nicholas Marriott
2010-10-18Merge the before and after attach client code into one in client.cNicholas Marriott
(instead of two in tmux.c and client.c).