summaryrefslogtreecommitdiffstats
path: root/tmux.c
AgeCommit message (Collapse)Author
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
2015-11-24Remove the -I part of show-messages which isn't really that useful; thenicm
server start time can now be accessed with a new start_time format (use: tmux display -p '#{t:start_time}')
2015-11-24Make the log stuff a bit tidier with some helper functions.nicm
2015-11-22Add getpw to pledge, makes tmux work in YP environments, discovered bynicm
matthieu, ok deraadt
2015-11-20Instead of separate tables for different types of options, give eachnicm
option a scope type (server, session, window) in one table.
2015-11-15Accidentally turned off pledge, turn it back on.nicm
2015-11-14Push stdout and stderr to clients more aggressively, and add an event tonicm
continue if the send fails.
2015-11-12tmux is UTF-8, so if $TMUX is set (tmux running in tmux), the client isnicm
UTF-8. Also try to make the existing checks more readable.
2015-11-12Nuke the utf8 and status-utf8 options and make tmux only a UTF-8nicm
terminal. We still support non-UTF-8 terminals outside tmux, but inside it is always UTF-8 (as when the utf8 and status-utf8 options were on).
2015-11-11Drop mouse-utf8 option and always turn on UTF-8 mouse if the client saysnicm
it supports UTF-8.
2015-10-28Like options, move the environ struct into environ.c.nicm
2015-10-27Move struct options into options.c.nicm
2015-10-27Break the common process set up, event loop and imsg dispatch codenicm
between server and client out into a separate internal API. This will make it easier to add another process.
2015-10-25Let's see if anyone screams about not being able to specify $TMPDIRderaadt
for their tmux sockets. (Over the years, I have seen $TMPDIR set up worse than /tmp many times, and don't know how this practice infected other parts of the system. Nothing uses tmpdir(3), nor a huge-temporary-file program like sort.) ok nicm
2015-10-23tmux can call pledge() in main with large set and then reduce itnicm
slightly in the server to "stdio rpath wpath cpath fattr unix recvfd proc exec tty ps".
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