Commit Graph

  • dcf537519f Fix default values for new escape sequences. Nicholas Marriott 2020-05-15 17:48:21 +01:00
  • c364a7142c Only forward extended keys if the application has requested them, even though we use the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as well. Nicholas Marriott 2020-05-15 17:40:24 +01:00
  • 3a4f3ee087 Mask off flags bits in menu keys. Nicholas Marriott 2020-05-15 16:17:20 +01:00
  • 6d92b99dbc Add a terminal feature for enable/disable extended keys (supported by xterm and mintty) and add an option to make tmux send it. Nicholas Marriott 2020-05-15 16:15:24 +01:00
  • e6b17e77db C-M-S keys need the implied flag also. Nicholas Marriott 2020-05-15 15:11:08 +01:00
  • e23c73457a Stop at end of buffer. Nicholas Marriott 2020-05-15 15:05:49 +01:00
  • 3e60ab1caf Send conventional \033 sequences for keys with just Meta even if they came in as an extended CSI u key sequence. It is much more useful for applications that don't understand CSI u to receive \033> for M-S-. rather than \033[62;3u. Nicholas Marriott 2020-05-15 13:15:12 +01:00
  • 7501e297dd Send CSI u sequences for any keys that do not have a defined sequence already - this should only be similar sequences sent by the terminal outside tmux if enabled. Nicholas Marriott 2020-05-15 12:39:37 +01:00
  • 340fd691cb Separate key flags and modifiers, log key flags, make the "xterm" flag more explicit and fix M- keys with a leading escape. Nicholas Marriott 2020-05-15 12:16:41 +01:00
  • 031d4864a9 Rename KEYC_ESCAPE to KEYC_META. Nicholas Marriott 2020-05-15 11:24:30 +01:00
  • 2cf967ee67 Always set xterm flag. Nicholas Marriott 2020-05-15 11:20:12 +01:00
  • e95b644139 Recognise extended key sequences on input (both the forms xterm offers). Nicholas Marriott 2020-05-15 11:09:32 +01:00
  • 5ee4d991b6 xterm-keys has been on by default for 5 years and all other modern terminals use these key sequences by default. Merge the code into the main tty and input tree processing (convering the latter to use a tree rather than a table at the same time) and make the option a no-op. Nicholas Marriott 2020-05-15 10:31:54 +01:00
  • c4d8100b2f Draw outside correctly with pane numbers. Nicholas Marriott 2020-05-14 16:58:14 +01:00
  • bef70132ac Check if outside the window before checking if on the border so that cells that are outside in one direction but not the other are not given the wrong type. Nicholas Marriott 2020-05-14 16:53:04 +01:00
  • 31621036ad Add an option to set the pane border lines style from a choice of single lines (ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or number (the pane numbers). Lines that won't work on a non-UTF-8 terminal are translated back into ACS when they are output. Nicholas Marriott 2020-05-14 16:49:08 +01:00
  • 97c8374855 Tweak CHANGES. Nicholas Marriott 2020-05-14 14:07:26 +01:00
  • 4dc0f3ee6b Update CHANGES. Nicholas Marriott 2020-05-14 14:01:32 +01:00
  • 09a66451ce Add screen write flags instead of individual bits and fix line length calculation with padding. Nicholas Marriott 2020-05-14 13:18:05 +01:00
  • 0bdbf47ef9 Add a client flag 'active-pane' which stores the active pane in the client and allows it to be changed independently from the real active pane stored in the window. This is can be used with session groups which allow an independent current window (although it would be nice to have a flag for this too and remove session groups). The client active pane is only really useful interactively, many things (hooks, window-style, zooming) still use the window active pane. Nicholas Marriott 2020-05-14 11:18:19 +01:00
  • 12eceaf2b3 Expand target from client and use it to expand the prompt. Nicholas Marriott 2020-05-14 10:35:26 +01:00
  • 09a2246b00 Use safe loop for freeing client files. Nicholas Marriott 2020-05-13 21:11:46 +01:00
  • e6d9f3f90c Add -Z to customize-mode binding. Nicholas Marriott 2020-05-13 20:58:42 +01:00
  • 3f55d05386 Tidy up border redrawing, fix some errors in how the window border connects with panes. Nicholas Marriott 2020-05-13 17:49:37 +01:00
  • 4cb1d3d7a9 Move editor stuff to common code in popup.c. Nicholas Marriott 2020-05-13 06:58:07 +01:00
  • 6214cd0726 Add a mark in copy mode. Set with set-mark command (bound to 'X') by default and the mark and cursor position are swapped with 'jump-to-mark' (bound to M-x). The line containing the mark is shown in copy-mode-mark-style with the horizontal position in reverse. Nicholas Marriott 2020-05-13 06:29:57 +01:00
  • 9d44df9da9 Merge branch 'master' of github.com:tmux/tmux Thomas Adam 2020-05-13 01:15:31 +01:00
  • 212cf53ea9 Merge branch 'obsd-master' Thomas Adam 2020-05-13 01:05:04 +01:00
  • ba20e46bdc Do not log NULL text. Nicholas Marriott 2020-05-12 10:36:31 +01:00
  • 8d238491d0 Show default key bindings in customize mode. Nicholas Marriott 2020-05-12 10:20:58 +01:00
  • 5a34f51d33 Include key bindings in customize mode. Nicholas Marriott 2020-05-12 08:57:55 +01:00
  • c489bf0a1e Support embedded styles in the display-message message, GitHub issue 2206. Nicholas Marriott 2020-05-11 09:18:00 +01:00
  • 8502517d30 Add to CHANGES. Nicholas Marriott 2020-05-10 17:06:31 +01:00
  • 0070313e28 Fix comparison of tty name. Nicholas Marriott 2020-05-10 16:57:33 +01:00
  • d01e7aac89 Add a -D flag to ask tmux not to daemonize, useful both for running a debugger (lldb does not have follow-fork-mode) and for running with a managed supervisor init system. GitHub issue 2190. Nicholas Marriott 2020-05-10 16:52:46 +01:00
  • 5fa377d927 Do not loop forever when search finds an empty match, GitHub issue 2203. Nicholas Marriott 2020-05-10 09:59:34 +01:00
  • 79a9a7b931 Fix next-matching-bracket logic, from Chris Barber. Nicholas Marriott 2020-05-09 16:14:45 +01:00
  • 532d06c399 Initialize return code in case something mysterious happens. Nicholas Marriott 2020-05-09 16:07:30 +01:00
  • 013d857ef8 Wrap all lines in customize mode, not just the description. Nicholas Marriott 2020-05-09 15:29:14 +01:00
  • 690d72adb3 Remove unused variables. Nicholas Marriott 2020-05-09 14:38:00 +01:00
  • ca18990826 Fix some warnings, from Jan Polensky. Nicholas Marriott 2020-05-09 14:33:25 +01:00
  • 5e97d79eb1 Fix some customize mode drawing nits. Nicholas Marriott 2020-05-08 22:09:31 +01:00
  • a61cbf1c33 Add a customize mode where options may be browsed and changed, includes adding a brief description of each option. Bound to "C" by default. Nicholas Marriott 2020-05-08 19:10:09 +01:00
  • aa7dccf8e1 imsg.h needs uio.h, pointed out by deraadt nicm 2020-05-08 14:15:11 +00:00
  • 708e9bc072 Allow a custom time format to be given to the t format modifier. Nicholas Marriott 2020-05-07 11:04:43 +01:00
  • b0fa36734e Fix pretty time function to actually work and allow time format to be applied to any string that is suitable. Nicholas Marriott 2020-05-07 09:55:06 +01:00
  • 63e17d8cad Do not use client if NULL, from Thomas Adam. Nicholas Marriott 2020-05-07 05:55:42 +01:00
  • 66ecb1dff4 Update CHANGES. Nicholas Marriott 2020-05-06 15:48:27 +01:00
  • 7a95e9bf7e Change message log to be per server rather than per client and include every command that is run. Nicholas Marriott 2020-05-06 13:43:22 +01:00
  • c80fc6bf9e Add M-+ and M-- to expand and collapse all items in tree mode. Nicholas Marriott 2020-05-05 16:33:58 +01:00
  • 2f89d2e7d8 Change the existing client flags for control mode to apply for any client, use the same mechanism for the read-only flag and add an ignore-size flag. Nicholas Marriott 2020-05-05 15:42:20 +01:00
  • deacfedc65 Remove an extra space in clients output. Nicholas Marriott 2020-05-05 13:34:53 +01:00
  • 32c134f5a9 Wrap a line. Nicholas Marriott 2020-05-05 12:39:20 +01:00
  • 23b4e1b9d8 pane_path is not #T, from Chris Rawnsley. Nicholas Marriott 2020-05-05 11:35:33 +01:00
  • e810f15272 Store and restore cursor position when copy mode is resized, from Anindya Mukherjee. Nicholas Marriott 2020-05-05 10:20:57 +01:00
  • 1f6c00f8ef Only redraw popup on the client it belongs to. Nicholas Marriott 2020-05-05 10:02:47 +01:00
  • 63390d2dd6 Export TERM_PROGRAM and TERM_PROGRAM_VERSION like various other terminals. Nicholas Marriott 2020-05-05 06:31:14 +01:00
  • 9991a14e81 Add formats for after hook command arguments. Nicholas Marriott 2020-05-05 06:19:29 +01:00
  • fc13e9bc2b Turn off cursor in menus again. Nicholas Marriott 2020-05-04 17:37:03 +01:00
  • a08f1c8c59 Merge branch '3.1b-rc' Nicholas Marriott 2020-05-04 09:14:36 +01:00
  • a10c4c60cb Add to CHANGES. Nicholas Marriott 2020-05-04 09:06:57 +01:00
  • c89ed7c092 Try to search the entire history first for up to 200 ms so a search count can be shown. If it takes too long, search the visible text only. Nicholas Marriott 2020-05-03 15:58:29 +01:00
  • e7aeb77bd9 Use the cursor position not the current position when working out which marks are current. Nicholas Marriott 2020-05-03 15:44:38 +01:00
  • cb09705df3 Need musl-gcc for static also. Nicholas Marriott 2020-05-03 12:37:38 +01:00
  • 4fcbd6700f Add musl builds. Nicholas Marriott 2020-05-03 12:33:47 +01:00
  • ff5e3d1a88 Ugh, enable not with. Nicholas Marriott 2020-05-03 12:20:08 +01:00
  • fbc8fca067 Use termcap instead. Nicholas Marriott 2020-05-03 12:18:04 +01:00
  • 1cfa6b0d5c Try w/o database. Nicholas Marriott 2020-05-03 12:12:47 +01:00
  • b203f7f19f Better ncurses URL and some other fixes. Nicholas Marriott 2020-05-03 12:03:50 +01:00
  • 97d490204b Add build of everything. Nicholas Marriott 2020-05-03 11:47:28 +01:00
  • 55901367d0 Add more stuff. Nicholas Marriott 2020-05-03 11:16:30 +01:00
  • ff250aa30e Fix exclude. Nicholas Marriott 2020-05-03 11:12:51 +01:00
  • 955d9d22b9 Add static build. Nicholas Marriott 2020-05-03 11:09:36 +01:00
  • daef6f6b67 Merge branch '3.1b-rc' Nicholas Marriott 2020-05-03 10:49:35 +01:00
  • 846b99e0cb Portable does not need sys/queue.h. Nicholas Marriott 2020-05-03 10:49:16 +01:00
  • d9a4449307 Do not need to work out status line offset, we already have it. Nicholas Marriott 2020-05-02 16:44:31 +01:00
  • af69289e0e Clamping to area needs to use the offset without the status line, since that is where the window offsets are based. Nicholas Marriott 2020-05-02 16:17:44 +01:00
  • cb1131a294 menu_mode_cb needs to return a screen also. Nicholas Marriott 2020-05-02 15:15:52 +01:00
  • e078f975c5 Update CHANGES. Nicholas Marriott 2020-05-01 18:24:20 +01:00
  • bf84359dfb Use VIS_CSTYLE for paste buffers also. Nicholas Marriott 2020-05-01 17:59:13 +01:00
  • 1fa9bcc183 Turn off overlay check when we know we are inside. Nicholas Marriott 2020-05-01 17:55:08 +01:00
  • 3f1fc9cde3 Get the whole overlay screen not just the mode so cursor changes are included. Nicholas Marriott 2020-05-01 17:30:28 +01:00
  • 8110c7a25f Do not hoke into struct window_pane from the tty code and instead set everything up in tty_ctx. Provide a way to initialize the tty_ctx from a callback and use it to let popups draw directly through input_parse in the same way as panes do, rather than forcing a full redraw on every change. Nicholas Marriott 2020-05-01 17:01:36 +01:00
  • dbebdb2d36 Rename tty_pane_full_width to tty_full_width. Nicholas Marriott 2020-05-01 13:22:08 +01:00
  • 93dca5ab3f Move size to tty_ctx. Nicholas Marriott 2020-05-01 13:19:05 +01:00
  • 5ce194f15d Rename some tty_ctx members. Nicholas Marriott 2020-05-01 13:01:38 +01:00
  • af21e76fdb Add -e for new-session. Nicholas Marriott 2020-05-01 12:01:58 +01:00
  • ec61aa3025 Solaris at least does not have _PATH_VI. Nicholas Marriott 2020-05-01 09:11:56 +01:00
  • 5c888e168e Typo in man page. Nicholas Marriott 2020-05-01 09:05:56 +01:00
  • cc19203be2 Add 'e' key in buffer mode to open the buffer in an editor. Nicholas Marriott 2020-05-01 09:02:44 +01:00
  • 7af5817245 Merge branch 'obsd-master' Thomas Adam 2020-04-30 16:01:27 +01:00
  • 3d33a19102 Merge tag '3.1b' Nicholas Marriott 2020-04-30 15:21:47 +01:00
  • 6a33a12798 Do not remove the automatic-rename option from the global set, only from the window (it must stay in the global set or tmux will crash). GitHub issue 2188. 3.1b Nicholas Marriott 2020-04-30 15:20:08 +01:00
  • 8e01221d02 Allow formats for message-style. Nicholas Marriott 2020-04-30 14:59:58 +01:00
  • 272f3dbf2e Use format for status-style. Nicholas Marriott 2020-04-30 14:56:46 +01:00
  • 048f1ff18a Do not remove the automatic-rename option from the global set, only from the window (it must stay in the global set or tmux will crash). GitHub issue 2188. nicm 2020-04-30 13:31:22 +00:00
  • 66bab1f6cf Complete partial window indexes properly. Nicholas Marriott 2020-04-30 13:05:21 +01:00
  • 25487757bc Add -W and -T flags to command-prompt to only complete a window and a target. Nicholas Marriott 2020-04-30 12:02:21 +01:00
  • 5af6943940 Complete aliases as well as commands. Nicholas Marriott 2020-04-29 19:55:20 +01:00
  • 7324442b42 Add to CHANGES. Nicholas Marriott 2020-04-29 19:48:11 +01:00