summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.c
AgeCommit message (Collapse)Author
2017-07-12Make shell_command a global like other stuff rather than making it anNicholas Marriott
exception and using callback argument.
2017-07-03Try C.UTF-8 which is also a commonly useful locale on some platforms,Nicholas Marriott
from Romain Francoise.
2017-04-22Do not need getopt.h.Nicholas Marriott
2017-04-20Use fdforkpty() instead of our own unwrapped versions.Nicholas Marriott
2017-04-19Style nits and a missing cast.Nicholas Marriott
2017-04-16Memory leak, from David CARLIER.Nicholas Marriott
2017-03-21Use uid_t for UID not u_int.Nicholas Marriott
2017-02-16Style nits.Nicholas Marriott
2017-01-23Open /dev/ptm before pledge() and save it to be used for PTMGET laterNicholas Marriott
(this means inlining forkpty()). ok deraadt
2017-01-15Major tidy up and rework of options tree and set-option/show-optionsNicholas Marriott
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.Nicholas Marriott
2016-12-09Spacing nits.Nicholas Marriott
2016-10-11Add static in window-*.c and move some internal functions out of tmux.h.Nicholas Marriott
2016-10-10Loads more static, except for cmd-*.c and window-*.c.Nicholas Marriott
2016-05-27Use getprogname() instead of __progname to make portability easier.Nicholas Marriott
2016-05-04Fix up a couple of long lines.Nicholas Marriott
2016-03-05If setlocale("en_US.UTF-8") succeeds, then don't do the check for UTF-8Nicholas Marriott
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,Nicholas Marriott
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.Nicholas Marriott
2016-03-01Use system wcwidth() instead of carrying around UTF-8 width tables.Nicholas Marriott
2016-01-19I no longer use my SourceForge address so replace it.Nicholas Marriott
2015-12-08Add hooks infrastructure, basic commands (set-hook, show-hooks) and aNicholas Marriott
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 aNicholas Marriott
missing word in manpage (from jmc).
2015-11-24Shell command from -c doesn't have to be global, pass it as an argument.Nicholas Marriott
2015-11-24Tidy the code that works out the socket path, and just use the full pathNicholas Marriott
in the global socket_path rather than copying it.
2015-11-24Remove malloc_options DEBUG bit.Nicholas Marriott
2015-11-24Remove the -I part of show-messages which isn't really that useful; theNicholas Marriott
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.Nicholas Marriott
2015-11-22Add getpw to pledge, makes tmux work in YP environments, discovered byNicholas Marriott
matthieu, ok deraadt
2015-11-20Instead of separate tables for different types of options, give eachNicholas Marriott
option a scope type (server, session, window) in one table.
2015-11-15Accidentally turned off pledge, turn it back on.Nicholas Marriott
2015-11-14Push stdout and stderr to clients more aggressively, and add an event toNicholas Marriott
continue if the send fails.
2015-11-12tmux is UTF-8, so if $TMUX is set (tmux running in tmux), the client isNicholas Marriott
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-8Nicholas Marriott
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 saysNicholas Marriott
it supports UTF-8.
2015-10-28Like options, move the environ struct into environ.c.Nicholas Marriott
2015-10-27Move struct options into options.c.Nicholas Marriott
2015-10-27Break the common process set up, event loop and imsg dispatch codeNicholas Marriott
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 $TMPDIRTheo de Raadt
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 itNicholas Marriott
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.Nicholas Marriott
2015-09-03A couple of style nits.Nicholas Marriott
2015-09-01Work out config file when needed not at startup.Nicholas Marriott
2015-08-30Path from $TMUX does not need to be global anymore.Nicholas Marriott
2015-08-30Login shell can be a client flag, and move the exec code into client.c.Nicholas Marriott
2015-08-30Event base does not need to be global.Nicholas Marriott
2015-08-30Some style nits and dead assignments.Nicholas Marriott
2015-07-20Add an option (history-file) for a file to save/restore command promptNicholas Marriott
history, from Olof-Joachim Frahm.
2015-06-04tweak SYNOPSIS and usage();Jason McIntyre
2015-01-19Make a tmux-%u directory under TMUX_TMPDIR, like TMPDIR.Nicholas Marriott