summaryrefslogtreecommitdiffstats
path: root/tmux.c
AgeCommit message (Collapse)Author
2021-07-06Improve error reporting when the tmux /tmp directory cannot be creatednicm
or used, GitHub issue 2765 from Uwe Kleine-Koenig.
2021-06-10Do not expand the file given with -f so it can contain :s.nicm
2021-02-22expand_paths needs the global environment to be set up, do that first.nicm
2021-02-22Move config file path expansion much earlier, keep the list of pathsnicm
around rather than freeing later, and add a config_files format variable containing it. Suggested by kn@ a while back.
2021-01-17Add -N flag to never start server even if command would normally do so,nicm
GitHub issue 2523.
2020-09-22Fix warnings on some platforms with %llx and add a new message to handlenicm
64-bit client flags.
2020-06-02Use CLOCK_MONOTONIC for timer measurement and add a timestamp to controlnicm
mode %output blocks.
2020-05-16Add a -D flag to ask tmux not to daemonize, useful both for running anicm
debugger (lldb does not have follow-fork-mode) and for running with a managed supervisor init system. GitHub issue 2190.
2020-05-16Add 'e' key in buffer mode to open the buffer in an editor.nicm
2020-05-16Build list of paths and weed out duplicates before loading configs, andnicm
add TMUX_SOCK like TMUX_PATH for the socket directory.
2020-04-20Tidy up the terminal detection and feature code and add named sets ofnicm
terminal features, each of which are defined in one place and map to a builtin set of terminfo(5) capabilities. Features can be specified based on TERM with a new terminal-features option or with the -T flag when running tmux. tmux will also detect a few common terminals from the DA and DSR responses. This is intended to make it easier to configure tmux's use of terminfo(5) even in the presence of outdated ncurses(3) or terminfo(5) databases or for features which do not yet have a terminfo(5) entry. Instead of having to grok terminfo(5) capability names and what they should be set to in the terminal-overrides option, the user can hopefully just give tmux a feature name and let it do the right thing. The terminal-overrides option remains both for backwards compatibility and to allow tweaks of individual capabilities. tmux already did much of this already, this makes it tidier and simpler to configure.
2020-04-16Show signal name when process exits rather than number.nicm
2020-04-09More style nits.nicm
2020-03-31Add a way to mark environment variables as "hidden" so they can be usednicm
by tmux but are not passed into the environment of new panes.
2020-03-17Ignore default-shell (and use /bin/sh) if it invalid not just if it isnicm
tmux itself, also refuse to set the option to something invalid in the first place. GitHub issue 2120.
2020-03-12When the server socket is given by the user with -S, create it withnicm
umask 177 instead of 117 because it may not be in a safe directory like the default directory in /tmp. The user can chmod it more open after it is created if they want.
2020-01-28-V also needs to go in usage.nicm
2020-01-28Reduce a difference with portable tmux by adding the -V flag andnicm
#{version} format; on OpenBSD these just report the OpenBSD version.
2019-10-14Memory leaks, from Igor Wong in GitHub issue 1934.nicm
2019-06-20Add a per-pane option set. Pane options inherit from window options (sonicm
there should be no change to existing behaviour) and are set and shown with set-option -p and show-options -p. Change remain-on-exit and window-style/window-active-style to be pane options (some others will be changed later). This makes select-pane -P and -g unnecessary so no longer document them (they still work) and no longer document set-window-option and show-window-options in favour of set-option -w and show-options -w.
2019-04-26Merge hooks into options and make each one an array option. This allowsnicm
multiple commands to be easily bound to one hook. set-hook and show-hooks remain but they are now variants of set-option and show-options. show-options now has a -H flag to show hooks (by default they are not shown).
2018-11-22Do not use PWD unless it actually matches the real working directory.nicm
2018-01-12Improve error message if creating socket parent directory fails, fromnicm
Thomas Adam for GitHub issue 1215.
2018-01-01Prefer PWD for current directory if present in client, from Wei Zhao innicm
GitHub issue 1183.
2017-07-12Make shell_command a global like other stuff rather than making it annicm
exception and using callback argument.
2017-07-03Try C.UTF-8 which is also a commonly useful locale on some platforms,nicm
from Romain Francoise.
2017-04-22Do not need getopt.h.nicm
2017-04-20Use fdforkpty() instead of our own unwrapped versions.nicm
2017-04-19Style nits and a missing cast.nicm
2017-04-16Memory leak, from David CARLIER.nicm
2017-03-21Use uid_t for UID not u_int.nicm
2017-02-16Style nits.nicm
2017-01-23Open /dev/ptm before pledge() and save it to be used for PTMGET laternicm
(this means inlining forkpty()). ok deraadt
2017-01-15Major tidy up and rework of options tree and set-option/show-optionsnicm
commands this pushes more of the code into options.c and ties it more closely to the options table rather than having an unnecessary split. Also add support for array options (will be used later). Only (intentional) user visible change is that show-options output is now passed through vis(3) with VIS_DQ so quotes are escaped.
2017-01-12Simplify appending to string options.nicm
2016-12-09Spacing nits.nicm
2016-10-11Add static in window-*.c and move some internal functions out of tmux.h.nicm
2016-10-10Loads more static, except for cmd-*.c and window-*.c.nicm
2016-05-27Use getprogname() instead of __progname to make portability easier.nicm
2016-05-04Fix up a couple of long lines.nicm
2016-03-05If setlocale("en_US.UTF-8") succeeds, then don't do the check for UTF-8nicm
locale since if it isn't UTF-8 the system is broken anyway. If it fails, try "" and check for UTF-8 with nl_langinfo(CODESET) rather than wcwidth(). Based on a diff from schwarze@, nl_langinfo also suggested by stsp@.
2016-03-05Although we always have en_US.UTF-8 on OpenBSD, some platforms do not,nicm
so fall back to setlocale(LC_CTYPE, ""). tmux requires a UTF-8 locale, so check with wcwidth() on a UTF-8 character after setlocale().
2016-03-01Remove unused variables, from Michal Mazurek.nicm
2016-03-01Use system wcwidth() instead of carrying around UTF-8 width tables.nicm
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-12-08Add hooks infrastructure, basic commands (set-hook, show-hooks) and anicm
couple of not very useful client hooks. This will eventually let commands be run at various points and on notifications. Joint work with Thomas Adam.
2015-11-24Make environ_set va_args and use it to tidy up some calls. Also add anicm
missing word in manpage (from jmc).
2015-11-24Shell command from -c doesn't have to be global, pass it as an argument.nicm
2015-11-24Tidy the code that works out the socket path, and just use the full pathnicm
in the global socket_path rather than copying it.
2015-11-24Remove malloc_options DEBUG bit.nicm