Commit graph

  • e9b58d9de4 Update the internal wcwidth(3) table of tmux(1) to match the data 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@ schwarze 2015-11-05 16:44:25 +0000
  • 896581628d Merge branch 'obsd-master' Thomas Adam 2015-11-05 12:01:08 +0000
  • 5577535891 Pass through right click if mouse is on, from Patrick Palka. nicm 2015-11-05 11:05:30 +0000
  • 696826913c Merge branch 'obsd-master' Thomas Adam 2015-11-03 16:01:11 +0000
  • 455284f1c0 Detach the client we are looping over, from Thomas Adam. nicm 2015-11-03 15:07:36 +0000
  • c975de2e07 Merge branch 'obsd-master' Thomas Adam 2015-10-31 23:56:35 +0000
  • ba7fb49fb9 Fall back silently to ~ or / rather than checking -c with access(), this was the old behaviour. nicm 2015-10-31 14:51:15 +0000
  • b0a99e85b6 Don't shift version out of peerid, it is needed later. nicm 2015-10-31 13:43:38 +0000
  • abb4e9e2fa The output log is only useful once and it means creating a file, so open it once at startup instead of in every call to tty_open. nicm 2015-10-31 13:12:03 +0000
  • 17f6c3be8e Merge branch 'obsd-master' Thomas Adam 2015-10-31 10:01:12 +0000
  • 01defc9f49 Because pledge(2) does not allow us to pass directory file descriptors 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). nicm 2015-10-31 08:13:58 +0000
  • e8bb385d6d Merge branch 'obsd-master' Thomas Adam 2015-10-29 10:01:09 +0000
  • 45f3cea263 Break version check into a separate function, and limit version to 8 bits. nicm 2015-10-29 09:35:31 +0000
  • a5e4d3a2d8 Merge branch 'obsd-master' Thomas Adam 2015-10-28 12:01:11 +0000
  • bf9c933cae Like options, move the environ struct into environ.c. nicm 2015-10-28 09:51:55 +0000
  • da1f6fc2c8 Merge branch 'obsd-master' Thomas Adam 2015-10-27 23:27:26 +0000
  • 44657bf932 Move struct options into options.c. nicm 2015-10-27 15:58:42 +0000
  • 67c3a014b9 No more TMPDIR. nicm 2015-10-27 14:51:35 +0000
  • 07b0ea03c3 Break the common process set up, event loop and imsg dispatch code between server and client out into a separate internal API. This will make it easier to add another process. nicm 2015-10-27 13:23:24 +0000
  • 147b5ae514 Merge branch 'obsd-master' Thomas Adam 2015-10-27 10:01:13 +0000
  • 9952201ca7 Count brackets in #{?...} so that nested conditional formats work, from Daniel De Graaf. nicm 2015-10-27 09:28:31 +0000
  • 17c2c4219d The format callback may not always succeed, so we need to check for NULL. From Patrick Palka. nicm 2015-10-27 09:18:06 +0000
  • 3fc001d0a2 Use copy-mode -et= in WheelUpPane binding, from Patrick Palka. nicm 2015-10-27 09:15:21 +0000
  • 9c69a79f9a Merge branch 'obsd-master' Thomas Adam 2015-10-27 00:01:09 +0000
  • 640c6fdd5f If a mouse event has no key binding, pass it through to the pane it happened in, not the active pane like normal key presses. Fixes problems seen by Enrico Ghirardi. nicm 2015-10-26 23:16:18 +0000
  • 380a1ea8ef Default bindings for mouse wheel on status line to change window (like we had before), from Patrick Palka. nicm 2015-10-26 23:06:18 +0000
  • b85be36d1c Handle unknown keys more gracefully, return a string instead of NULL. nicm 2015-10-26 22:03:04 +0000
  • 54a3ed751e Merge branch 'obsd-master' Thomas Adam 2015-10-26 18:01:12 +0000
  • a22fe33aa0 Some extra logging of where keys are actually going. nicm 2015-10-26 17:17:06 +0000
  • e95df0bc39 Merge branch 'obsd-master' Thomas Adam 2015-10-26 02:01:09 +0000
  • c582f7d177 space before punctuation; jmc 2015-10-26 00:15:37 +0000
  • ca29903c82 Merge branch 'obsd-master' Thomas Adam 2015-10-26 00:01:10 +0000
  • e65306d8e7 Extend the modifiers allowed before formats: as well as the existing #{=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}. nicm 2015-10-25 22:29:17 +0000
  • c14fb5b633 -sys/types.h Nicholas Marriott 2015-10-25 09:38:08 +0000
  • ad437f13d5 Add missing headers for getpid() Thomas Adam 2015-10-25 09:34:56 +0000
  • 4681415a15 Merge branch 'master' of github.com:tmux/tmux Thomas Adam 2015-10-25 09:33:11 +0000
  • 7930cb54c0 ifdef __OpenBSD__ around pledge(). Nicholas Marriott 2015-10-25 09:31:46 +0000
  • 91f53d590b __OpenBSD__ around pledge() Thomas Adam 2015-10-25 09:31:07 +0000
  • 3e0d31c4e9 Merge branch 'obsd-master' Thomas Adam 2015-10-25 09:22:20 +0000
  • 4acc8d0ff5 Merge branch 'obsd-master' Thomas Adam 2015-10-25 09:21:37 +0000
  • 3faa51a0ca Pass output from jobs through format_expand() so they are expanded again (this was the previous behaviour). nicm 2015-10-25 08:59:26 +0000
  • 3034a71488 Let's see if anyone screams about not being able to specify $TMPDIR for their tmux sockets. deraadt 2015-10-25 07:48:16 +0000
  • 2e2b8a95bd Pasting mouse escape sequences is unlikely, so skip them when working out whether the user is pasting. nicm 2015-10-23 23:46:36 +0000
  • 26a55ddcf9 Remove some unnecessary checks before free(). nicm 2015-10-23 16:30:15 +0000
  • 1a4ddfa8a7 If $TMUX is set, and we are unsure about the session, use it. nicm 2015-10-23 16:29:07 +0000
  • 5383b047d1 tmux can call pledge() in main with large set and then reduce it slightly in the server to "stdio rpath wpath cpath fattr unix recvfd proc exec tty ps". nicm 2015-10-23 16:07:29 +0000
  • 14da999408 Format for scroll position, from Jorge Morante. nicm 2015-10-23 16:02:21 +0000
  • 63a3fd3c0f Use tty_term_flag not _has for XT, and make -2 force direct use of 256-colour escape sequences (so setaf/setab can be bypassed if needed). nicm 2015-10-23 15:52:54 +0000
  • 8c39813665 Merge branch 'obsd-master' Thomas Adam 2015-10-22 14:01:12 +0100
  • 3ebcf25149 If the pane is still on all_window_panes but not actually connected to 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. nicm 2015-10-22 11:23:00 +0000
  • a05c27a7e1 Unzoom before -LRUD, reported by Andy Weidenbaum. nicm 2015-10-22 11:19:31 +0000
  • 6bc3902f5d Merge branch 'obsd-master' Thomas Adam 2015-10-22 12:01:09 +0100
  • c2c2d44c72 Log identify messages. nicm 2015-10-22 11:00:51 +0000
  • 515dfea4b7 This should not be changed. nicm 2015-10-22 10:48:30 +0000
  • 31fd071faa Rename shutdown to exit. nicm 2015-10-22 10:46:24 +0000
  • 0bfa615997 Merge branch 'obsd-master' Thomas Adam 2015-10-21 16:01:08 +0100
  • 60ca29df64 client_key_table was missing. nicm 2015-10-21 13:14:36 +0000
  • 35f582583a Merge branch 'obsd-master' Thomas Adam 2015-10-21 14:01:09 +0100
  • ddbc4a0f6c By popular demand add a default binding for mouse wheel up to scroll into history (if the mouse is, on of course). nicm 2015-10-21 11:13:47 +0000
  • 1f4a5b5dfe Merge branch 'obsd-master' Thomas Adam 2015-10-21 00:01:19 +0100
  • 076034345a Use client pointer not file descriptor in logging. nicm 2015-10-20 21:12:08 +0000
  • af2d48f4d2 Merge branch 'obsd-master' Thomas Adam 2015-10-20 16:01:11 +0100
  • 8c8cddbe02 The table could change when retrying so don't save it at start of server_client_handle_key. nicm 2015-10-20 14:19:27 +0000
  • bbdc08780c Merge branch 'obsd-master' Thomas Adam 2015-10-18 22:01:08 +0100
  • 174a2ad731 Pass current directory as a string rather than a file descriptor because pledge doesn't let us pass directory file descriptors. nicm 2015-10-18 20:42:42 +0000
  • 7c78b2b756 Start working on tmux 2.2 Thomas Adam 2015-10-18 18:19:08 +0100
  • 310f0a960c Update for 2.1 release. 2.1 Thomas Adam 2015-10-18 18:10:43 +0100
  • 6c3ade76df __OpenBSD__ around pledge(). Nicholas Marriott 2015-10-17 20:16:12 +0100
  • 487285b325 Merge branch 'obsd-master' Thomas Adam 2015-10-17 20:01:08 +0100
  • 9c601ebde8 Add pledge "stdio unix sendfd proc exec tty" to tmux client process, "sendfd" is dropped after first message from the server. nicm 2015-10-17 18:30:43 +0000
  • 0273d809d0 Merge branch 'master' of github.com:tmux/tmux Nicholas Marriott 2015-10-17 18:48:45 +0100
  • e0527d7731 time.h is not needed now tzset() is not in log.c. Nicholas Marriott 2015-10-17 18:48:22 +0100
  • a204595e4c Merge branch 'obsd-master' Thomas Adam 2015-10-16 10:01:09 +0100
  • cf89abb013 Don't free after calling paste_set but do after evbuffer_add, from Theo Buehler. nicm 2015-10-16 07:43:29 +0000
  • c06c14fb29 Some header fixes. Nicholas Marriott 2015-10-15 21:42:17 +0100
  • 716550021e Merge branch 'master' of github.com:tmux/tmux Nicholas Marriott 2015-10-15 09:25:21 +0100
  • f199fb6a2b Fix available_fds when there is no AF_INET, reported by Mathieu Arnold. Nicholas Marriott 2015-10-15 09:24:25 +0100
  • f69e09a67e Merge branch 'obsd-master' Thomas Adam 2015-10-11 02:01:14 +0100
  • 241fd72f75 Userspace doesn't need to use SUN_LEN(): connect() and bind() must accept sizeof(struct sockaddr_un), so do the simple, portable thing guenther 2015-10-11 00:26:23 +0000
  • f37e5ad855 setgid first Nicolas Viennot 2015-10-10 06:41:24 -0400
  • 48ff5669a3 nits Nicolas Viennot 2015-10-10 04:42:28 -0400
  • 5b13dafbab Merge branch 'obsd-master' Thomas Adam 2015-10-07 12:01:21 +0100
  • 7340d5adfd Couple of memory leaks in error paths, from Frederik Vanderstraeten. nicm 2015-10-07 09:52:58 +0000
  • 07ba45297f master -> proxy Nicolas Viennot 2015-10-05 18:39:48 -0700
  • 6c62b10e0a client notification through master Nicolas Viennot 2015-10-05 17:58:53 -0700
  • 51ba50ac0d using bin types when forwarding msg anyways Nicolas Viennot 2015-10-04 10:27:24 -0700
  • 5f607d338c Make it happy on darwin Nicolas Viennot 2015-10-03 14:14:54 -0700
  • 0f7f5a477a Bump to msgpack new lib Nicolas Viennot 2015-10-03 13:36:09 -0700
  • 7c78530344 Use built-in libssh/msgpack Nicolas Viennot 2015-10-02 21:34:14 -0700
  • c570977df3 Sending modes as well Nicolas Viennot 2015-09-29 03:16:07 -0400
  • ea331cead9 snapshot param is only for the history size Nicolas Viennot 2015-09-29 02:39:35 -0400
  • 339464b6cb Remove deadcode Nicolas Viennot 2015-09-29 02:39:31 -0400
  • 7120ab2f16 Merge branch 'obsd-master' Thomas Adam 2015-09-26 02:01:16 +0100
  • 695a591f8e Adding colors=256 to *256color* was always pretty stupid and now it won't work (without adding setaf@:setab@ too). nicm 2015-09-25 23:30:24 +0000
  • 03d7dba5d8 If the terminal has colors=256, only try to use setaf/setab if they exist, reported by Filipe Brandenburger. nicm 2015-09-25 23:30:12 +0000
  • 20c3adca41 Merge branch 'obsd-master' Thomas Adam 2015-09-25 18:01:09 +0100
  • 28f23f18e9 Free the history when it is cleared, based on a diff from Carlo Cannas. nicm 2015-09-25 15:53:07 +0000
  • e5b5c42225 bootstrap Nicolas Viennot 2015-09-25 06:31:26 -0400
  • b0372840e7 Merge branch 'obsd-master' Thomas Adam 2015-09-24 14:01:10 +0100
  • 2a62917444 Don't leak fd and path on failure. nicm 2015-09-24 12:06:20 +0000