summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-11-12Support UTF-8 key bindings by expanding the key type from int tonicm
uint64_t and converting UTF-8 to Unicode on input and the reverse on output. (This allows key bindings, there are still omissions - the largest being that the various prompts do not accept UTF-8.)
2015-11-12Default history-file should be "" not NULL, from Greg Onufe.nicm
2015-11-11Drop mouse-utf8 option and always turn on UTF-8 mouse if the client saysnicm
it supports UTF-8.
2015-11-10If realpath() fails just try the original path.nicm
2015-11-10Handle absolute paths properly, and don't use resolved path innicm
realpath() fails.
2015-11-05Same bug as last commit, but in the other copy of the loop in this file...nicm
2015-11-05Update the internal wcwidth(3) table of tmux(1) to match the dataschwarze
in /usr/src/share/locale/ctype/en_US.UTF-8.src, with one single exception: Keep U+00AD SOFT HYPHEN at width 1 rather than moving it to width 0, a tradition already observed in the old https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c . While here, manually rebalance the btree for optimal lookup speed. OK nicm@
2015-11-05Pass through right click if mouse is on, from Patrick Palka.nicm
2015-11-03Detach the client we are looping over, from Thomas Adam.nicm
2015-10-31Fall back silently to ~ or / rather than checking -c with access(), thisnicm
was the old behaviour.
2015-10-31Don't shift version out of peerid, it is needed later.nicm
2015-10-31The output log is only useful once and it means creating a file, so opennicm
it once at startup instead of in every call to tty_open.
2015-10-31Because pledge(2) does not allow us to pass directory file descriptorsnicm
around, we can't use file descriptors for the working directory because we will be unable to pass it to a privileged process to tell it where to read or write files or spawn children. So move tmux back to using strings for the current working directory. We try to check it exists with access() when it is set but ultimately fall back to ~ if it fails at time of use (or / if that fails too).
2015-10-29Break version check into a separate function, and limit version to 8 bits.nicm
2015-10-28Like options, move the environ struct into environ.c.nicm
2015-10-27Move struct options into options.c.nicm
2015-10-27No more TMPDIR.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-27Count brackets in #{?...} so that nested conditional formats work, fromnicm
Daniel De Graaf.
2015-10-27The format callback may not always succeed, so we need to check fornicm
NULL. From Patrick Palka.
2015-10-27Use copy-mode -et= in WheelUpPane binding, from Patrick Palka.nicm
2015-10-26If a mouse event has no key binding, pass it through to the pane itnicm
happened in, not the active pane like normal key presses. Fixes problems seen by Enrico Ghirardi.
2015-10-26Default bindings for mouse wheel on status line to change window (likenicm
we had before), from Patrick Palka.
2015-10-26Handle unknown keys more gracefully, return a string instead of NULL.nicm
2015-10-26Some extra logging of where keys are actually going.nicm
2015-10-26space before punctuation;jmc
2015-10-25Extend the modifiers allowed before formats: as well as the existingnicm
#{=10:...} length limit, add #{t:...} to convert a time_t format to a string, #{b:...} for basename and #{d:...} for dirname. Remove all the foo_string time formats as they can now be replaced by "t:", for example #{window_activity_string} becomes #{t:window_activity}.
2015-10-25Pass output from jobs through format_expand() so they are expanded againnicm
(this was the previous behaviour).
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-23Pasting mouse escape sequences is unlikely, so skip them when workingnicm
out whether the user is pasting.
2015-10-23Remove some unnecessary checks before free().nicm
2015-10-23If $TMUX is set, and we are unsure about the session, use it.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-10-23Format for scroll position, from Jorge Morante.nicm
2015-10-23Use tty_term_flag not _has for XT, and make -2 force direct use ofnicm
256-colour escape sequences (so setaf/setab can be bypassed if needed).
2015-10-22If the pane is still on all_window_panes but not actually connected tonicm
window or session (which can happen if it is killed during a command sequence and something else has a reference), fall back to the best effort. Fixes "tmux killw\; detach" for Rudis Muiznieks.
2015-10-22Unzoom before -LRUD, reported by Andy Weidenbaum.nicm
2015-10-22Log identify messages.nicm
2015-10-22This should not be changed.nicm
2015-10-22Rename shutdown to exit.nicm
2015-10-21client_key_table was missing.nicm
2015-10-21By popular demand add a default binding for mouse wheel up to scrollnicm
into history (if the mouse is, on of course).
2015-10-20Use client pointer not file descriptor in logging.nicm
2015-10-20The table could change when retrying so don't save it at start ofnicm
server_client_handle_key.
2015-10-18Pass current directory as a string rather than a file descriptor becausenicm
pledge doesn't let us pass directory file descriptors.
2015-10-17Add pledge "stdio unix sendfd proc exec tty" to tmux client process,nicm
"sendfd" is dropped after first message from the server.
2015-10-16Don't free after calling paste_set but do after evbuffer_add, from Theonicm
Buehler.
2015-10-11Userspace doesn't need to use SUN_LEN(): connect() and bind() must acceptguenther
sizeof(struct sockaddr_un), so do the simple, portable thing ok beck@ deraadt@
2015-10-07Couple of memory leaks in error paths, from Frederik Vanderstraeten.nicm
2015-09-25Adding colors=256 to *256color* was always pretty stupid and now itnicm
won't work (without adding setaf@:setab@ too).