Commit Graph

  • 205d15e82d All these return values from utf8_* are confusing, use an enum. nicm 2015-11-14 11:45:43 +00:00
  • 7b4b78b419 Merge branch 'obsd-master' Thomas Adam 2015-11-14 11:38:52 +00:00
  • 7b749eff35 Merge branch 'obsd-master' Thomas Adam 2015-11-14 11:38:30 +00:00
  • f401791a56 Rename a variable in utf8_combine for consistency and use 0xfffd for unknown Unicode. nicm 2015-11-14 11:13:44 +00:00
  • dab63b029e Couple of assignments to remove compiler warnings. nicm 2015-11-14 10:57:59 +00:00
  • 64333e3ef8 Be more strict about invalid UTF-8. nicm 2015-11-14 10:56:31 +00:00
  • c56b81a2ce Push stdout and stderr to clients more aggressively, and add an event to continue if the send fails. nicm 2015-11-14 09:41:06 +00:00
  • 23266e8e09 Merge branch 'master' of github.com:tmux/tmux Nicholas Marriott 2015-11-14 09:04:41 +00:00
  • 31d880f751 Update the TODO file. Nicholas Marriott 2015-11-14 09:04:13 +00:00
  • 908e6bb68f Log more of UTF-8 input. nicm 2015-11-14 08:25:12 +00:00
  • 276ca5f04c Merge branch 'obsd-master' Thomas Adam 2015-11-13 18:01:13 +00:00
  • c4893d8efd Log option names in fatal() for missing option. nicm 2015-11-13 16:06:43 +00:00
  • 1016f112bf Merge branch 'master' of github.com:tmux/tmux Nicholas Marriott 2015-11-13 16:06:11 +00:00
  • b7397bf413 utf8 option is gone. Nicholas Marriott 2015-11-13 16:05:58 +00:00
  • 45a10dde95 Merge branch 'obsd-master' Thomas Adam 2015-11-13 14:01:10 +00:00
  • 88aa1c8dc3 Two spacing and spelling nits. nicm 2015-11-13 12:18:52 +00:00
  • e2917b2627 Merge branch 'obsd-master' Thomas Adam 2015-11-13 10:43:07 +00:00
  • 3df4959f51 Merge branch 'obsd-master' Thomas Adam 2015-11-13 10:42:45 +00:00
  • 531869bd92 Add window_visible_layout which ignores zoomed panes and use it for control mode (which needs to know all panes), from George Nachman. nicm 2015-11-13 10:00:26 +00:00
  • c5689a5a40 Long overdue change to the way we store cells in the grid: now, instead of storing a full grid_cell with UTF-8 data and everything, store a new type grid_cell_entry. This can either be the cell itself (for ASCII cells), or an offset into an extended array (per line) for UTF-8 data. nicm 2015-11-13 08:09:28 +00:00
  • a7027ed8e5 Merge branch 'obsd-master' Thomas Adam 2015-11-13 00:01:15 +00:00
  • e71a915412 Rename overly-long utf8data to ud throughout. nicm 2015-11-12 22:04:37 +00:00
  • b2f19c9d06 Merge branch 'obsd-master' Thomas Adam 2015-11-12 16:01:09 +00:00
  • f2d03f4fdd grid_put_utf8 is unused, remove it. nicm 2015-11-12 14:50:57 +00:00
  • 4f88344df3 Merge branch 'obsd-master' Thomas Adam 2015-11-12 14:01:14 +00:00
  • a209ea3953 Add utf8_padcstr and use it to align columns in list-keys. nicm 2015-11-12 12:43:36 +00:00
  • 1da7475d0e tweak previous; ok nicm jmc 2015-11-12 12:36:34 +00:00
  • d6daf37df4 Tidy utf8.c a little: build table on first use, and make utf8_width take a u_int rather than splitting and then combining again in utf8_split. nicm 2015-11-12 12:19:57 +00:00
  • 5f483499f3 Merge branch 'obsd-master' Thomas Adam 2015-11-12 12:01:17 +00:00
  • 0cc812ae34 tmux is UTF-8, so if $TMUX is set (tmux running in tmux), the client is UTF-8. Also try to make the existing checks more readable. nicm 2015-11-12 11:24:08 +00:00
  • c41673f3fa If we know the terminal outside tmux is not UTF-8, replace UTF-8 in error messages and whatnot with underscores the same as we do when we draw UTF-8 characters as part of the screen. nicm 2015-11-12 11:10:50 +00:00
  • 1b86f520ea Nuke the utf8 and status-utf8 options and make tmux only a UTF-8 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). nicm 2015-11-12 11:09:11 +00:00
  • a0f3999ce7 Remove the mouse_utf8_flag format as well. nicm 2015-11-12 11:07:10 +00:00
  • 69e0b8326a Support UTF-8 key bindings by expanding the key type from int to 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.) nicm 2015-11-12 11:05:34 +00:00
  • 333da3b64b Merge branch 'obsd-master' Thomas Adam 2015-11-12 10:01:09 +00:00
  • 7062b0e65d Default history-file should be "" not NULL, from Greg Onufe. nicm 2015-11-12 08:19:18 +00:00
  • f2e4aa8d1c Merge branch 'obsd-master' Thomas Adam 2015-11-12 00:01:10 +00:00
  • 00c34df186 Drop mouse-utf8 option and always turn on UTF-8 mouse if the client says it supports UTF-8. nicm 2015-11-11 23:23:33 +00:00
  • 35fd6d134a Merge branch 'obsd-master' Thomas Adam 2015-11-11 08:14:36 +00:00
  • 6f3475c6c7 If realpath() fails just try the original path. nicm 2015-11-10 22:33:47 +00:00
  • 005e462e01 Handle absolute paths properly, and don't use resolved path in realpath() fails. nicm 2015-11-10 22:29:33 +00:00
  • dcdccf8333 Same bug as last commit, but in the other copy of the loop in this file... nicm 2015-11-05 23:32:21 +00:00
  • 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 +00:00
  • 896581628d Merge branch 'obsd-master' Thomas Adam 2015-11-05 12:01:08 +00:00
  • 5577535891 Pass through right click if mouse is on, from Patrick Palka. nicm 2015-11-05 11:05:30 +00:00
  • 696826913c Merge branch 'obsd-master' Thomas Adam 2015-11-03 16:01:11 +00:00
  • 455284f1c0 Detach the client we are looping over, from Thomas Adam. nicm 2015-11-03 15:07:36 +00:00
  • c975de2e07 Merge branch 'obsd-master' Thomas Adam 2015-10-31 23:56:35 +00:00
  • ba7fb49fb9 Fall back silently to ~ or / rather than checking -c with access(), this was the old behaviour. nicm 2015-10-31 14:51:15 +00:00
  • b0a99e85b6 Don't shift version out of peerid, it is needed later. nicm 2015-10-31 13:43:38 +00:00
  • 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 +00:00
  • 17f6c3be8e Merge branch 'obsd-master' Thomas Adam 2015-10-31 10:01:12 +00:00
  • 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 +00:00
  • e8bb385d6d Merge branch 'obsd-master' Thomas Adam 2015-10-29 10:01:09 +00:00
  • 45f3cea263 Break version check into a separate function, and limit version to 8 bits. nicm 2015-10-29 09:35:31 +00:00
  • a5e4d3a2d8 Merge branch 'obsd-master' Thomas Adam 2015-10-28 12:01:11 +00:00
  • bf9c933cae Like options, move the environ struct into environ.c. nicm 2015-10-28 09:51:55 +00:00
  • da1f6fc2c8 Merge branch 'obsd-master' Thomas Adam 2015-10-27 23:27:26 +00:00
  • 44657bf932 Move struct options into options.c. nicm 2015-10-27 15:58:42 +00:00
  • 67c3a014b9 No more TMPDIR. nicm 2015-10-27 14:51:35 +00:00
  • 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 +00:00
  • 147b5ae514 Merge branch 'obsd-master' Thomas Adam 2015-10-27 10:01:13 +00:00
  • 9952201ca7 Count brackets in #{?...} so that nested conditional formats work, from Daniel De Graaf. nicm 2015-10-27 09:28:31 +00:00
  • 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 +00:00
  • 3fc001d0a2 Use copy-mode -et= in WheelUpPane binding, from Patrick Palka. nicm 2015-10-27 09:15:21 +00:00
  • 9c69a79f9a Merge branch 'obsd-master' Thomas Adam 2015-10-27 00:01:09 +00:00
  • 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 +00:00
  • 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 +00:00
  • b85be36d1c Handle unknown keys more gracefully, return a string instead of NULL. nicm 2015-10-26 22:03:04 +00:00
  • 54a3ed751e Merge branch 'obsd-master' Thomas Adam 2015-10-26 18:01:12 +00:00
  • a22fe33aa0 Some extra logging of where keys are actually going. nicm 2015-10-26 17:17:06 +00:00
  • e95df0bc39 Merge branch 'obsd-master' Thomas Adam 2015-10-26 02:01:09 +00:00
  • c582f7d177 space before punctuation; jmc 2015-10-26 00:15:37 +00:00
  • ca29903c82 Merge branch 'obsd-master' Thomas Adam 2015-10-26 00:01:10 +00:00
  • 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 +00:00
  • c14fb5b633 -sys/types.h Nicholas Marriott 2015-10-25 09:38:08 +00:00
  • ad437f13d5 Add missing headers for getpid() Thomas Adam 2015-10-25 09:34:56 +00:00
  • 4681415a15 Merge branch 'master' of github.com:tmux/tmux Thomas Adam 2015-10-25 09:33:11 +00:00
  • 7930cb54c0 ifdef __OpenBSD__ around pledge(). Nicholas Marriott 2015-10-25 09:31:46 +00:00
  • 91f53d590b __OpenBSD__ around pledge() Thomas Adam 2015-10-25 09:31:07 +00:00
  • 3e0d31c4e9 Merge branch 'obsd-master' Thomas Adam 2015-10-25 09:22:20 +00:00
  • 4acc8d0ff5 Merge branch 'obsd-master' Thomas Adam 2015-10-25 09:21:37 +00:00
  • 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 +00:00
  • 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 +00:00
  • 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 +00:00
  • 26a55ddcf9 Remove some unnecessary checks before free(). nicm 2015-10-23 16:30:15 +00:00
  • 1a4ddfa8a7 If $TMUX is set, and we are unsure about the session, use it. nicm 2015-10-23 16:29:07 +00:00
  • 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 +00:00
  • 14da999408 Format for scroll position, from Jorge Morante. nicm 2015-10-23 16:02:21 +00:00
  • 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 +00:00
  • 8c39813665 Merge branch 'obsd-master' Thomas Adam 2015-10-22 14:01:12 +01:00
  • 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 +00:00
  • a05c27a7e1 Unzoom before -LRUD, reported by Andy Weidenbaum. nicm 2015-10-22 11:19:31 +00:00
  • 6bc3902f5d Merge branch 'obsd-master' Thomas Adam 2015-10-22 12:01:09 +01:00
  • c2c2d44c72 Log identify messages. nicm 2015-10-22 11:00:51 +00:00
  • 515dfea4b7 This should not be changed. nicm 2015-10-22 10:48:30 +00:00
  • 31fd071faa Rename shutdown to exit. nicm 2015-10-22 10:46:24 +00:00
  • 0bfa615997 Merge branch 'obsd-master' Thomas Adam 2015-10-21 16:01:08 +01:00
  • 60ca29df64 client_key_table was missing. nicm 2015-10-21 13:14:36 +00:00
  • 35f582583a Merge branch 'obsd-master' Thomas Adam 2015-10-21 14:01:09 +01:00