Commit Graph

  • d53e1fedd5 Add TMUX_SOCK like TMUX_PATH for the socket directory. Nicholas Marriott 2020-04-23 18:15:02 +01:00
  • 0d3fdae7b6 Build list of paths and weed out duplicates before loading configs. Nicholas Marriott 2020-04-23 17:56:45 +01:00
  • f87be8d052 Add XDG_CONFIG home to the configuration search paths. Nicholas Marriott 2020-04-23 17:27:39 +01:00
  • 351c5423f0 time.h is needed. Nicholas Marriott 2020-04-23 16:55:20 +01:00
  • ac91635f82 Add extension terminfo(5) capabilities for margins. Nicholas Marriott 2020-04-23 12:11:14 +01:00
  • 0c73dbb7e1 Response is iTerm2 not not ITerm2. Nicholas Marriott 2020-04-23 11:59:13 +01:00
  • 5653bc8287 Merge branch 'obsd-master' Thomas Adam 2020-04-23 12:01:26 +01:00
  • 766b425d05 Overrides need to be applied both before and after features in case they change flags used to detect a feature. nicm 2020-04-23 10:22:53 +00:00
  • c74572da92 Remove support for iTerm2's DSR 1337 extension and use the CSI > q extension now supported by a few different terminals. Nicholas Marriott 2020-04-23 10:22:27 +01:00
  • e94a15b3d6 Merge branch 'obsd-master' Thomas Adam 2020-04-23 10:01:26 +01:00
  • 1a612a5936 Add an attribute for ACS. Nicholas Marriott 2020-04-23 07:15:17 +01:00
  • e25fa4ba1b Fix a couple of memory leaks, one when creating a new pane and one when adding formats onto the queue item. nicm 2020-04-23 05:48:42 +00:00
  • 906dfe9f5c Fix a couple of memory leaks, one when creating a new pane and one when adding formats onto the queue item. nicm 2020-04-23 05:48:42 +00:00
  • 106e5d07be Tweak the default choose modes formats: Nicholas Marriott 2020-04-23 06:30:15 +01:00
  • 63f2034f29 Merge branch 'obsd-master' Thomas Adam 2020-04-23 04:01:30 +01:00
  • cf5f93b2b3 Merge branch 'obsd-master' Thomas Adam 2020-04-23 02:01:33 +01:00
  • e46cf86d30 Improve join-pane, move-pane and break-pane: nicm 2020-04-22 21:15:33 +00:00
  • 4a31eedc26 Merge branch 'obsd-master' Thomas Adam 2020-04-22 22:01:35 +01:00
  • 4b21fd2ed1 Indicate the marked pane in choose mode in reverse and add key to set and clear it (m and M) and a key to jump to the starting pane (H). nicm 2020-04-22 21:01:28 +00:00
  • 950af33636 Improve join-pane, move-pane and break-pane: nicm 2020-04-22 21:15:33 +00:00
  • 899b3d2436 Indicate the marked pane in choose mode in reverse and add key to set and clear it (m and M) and a key to jump to the starting pane (H). nicm 2020-04-22 21:01:28 +00:00
  • 662728d6c7 Add a session_marked format like window_marked. nicm 2020-04-22 20:47:00 +00:00
  • b4a21b5d80 Merge branch 'obsd-master' Thomas Adam 2020-04-22 14:01:33 +01:00
  • bb31776dd3 Merge branch '3.1-rc' Nicholas Marriott 2020-04-22 13:00:43 +01:00
  • ccd7368cc5 Update CHANGES. Nicholas Marriott 2020-04-22 12:59:50 +01:00
  • ecb6db6b6a Update CHANGES. Nicholas Marriott 2020-04-22 12:59:10 +01:00
  • d4826aa1aa Nope, OS X kqueue is still broken... Nicholas Marriott 2020-04-22 12:18:11 +01:00
  • df1bce40f0 Call the event_init wrapper again. Nicholas Marriott 2020-04-22 12:09:04 +01:00
  • 8ae3915cc2 Merge branch 'obsd-master' Thomas Adam 2020-04-22 12:01:38 +01:00
  • 4b5a16567a Update the cursor position when deleting lines from screens without history, GitHub issue 2173. nicm 2020-04-22 08:48:44 +00:00
  • 5935100181 Change so main-pane-width and height can be given as a percentage. nicm 2020-04-22 06:57:13 +00:00
  • b72498c4ff Update the cursor position when deleting lines from screens without history, GitHub issue 2173. nicm 2020-04-22 08:48:44 +00:00
  • de5163a634 Change so main-pane-width and height can be given as a percentage. nicm 2020-04-22 06:57:13 +00:00
  • dd5299841a Merge branch 'obsd-master' Thomas Adam 2020-04-21 16:01:30 +01:00
  • 445dfa8512 Move the background colour to clear with (if any) up as well as the data when scrolling, redraw problem reported by sthen@. nicm 2020-04-21 13:48:56 +00:00
  • 291b85746f Merge branch 'obsd-master' Thomas Adam 2020-04-21 14:01:25 +01:00
  • 2cbca7ce16 Merge branch 'obsd-master' Thomas Adam 2020-04-21 12:01:35 +01:00
  • 9a60d41db4 256 and RGB features can imply AX (for aixterm colours). nicm 2020-04-21 10:37:11 +00:00
  • 985bc0ee4a Merge branch 'obsd-master' Thomas Adam 2020-04-21 08:01:30 +01:00
  • 18671a27b6 Turn off the block flag to reset the state or the cursor will not be moved back to the right place. nicm 2020-04-21 06:34:13 +00:00
  • d524cb64e7 Do not clear client pane redraw flags until the redraw actually happens. nicm 2020-04-21 06:32:40 +00:00
  • bd91015b13 256 and RGB features can imply AX (for aixterm colours). nicm 2020-04-21 10:37:11 +00:00
  • 57bd6e0447 Turn off the block flag to reset the state or the cursor will not be moved back to the right place. nicm 2020-04-21 06:34:13 +00:00
  • d0b8f5340e Do not clear client pane redraw flags until the redraw actually happens. nicm 2020-04-21 06:32:40 +00:00
  • 1cabccbb2b xterm* needs XT also. nicm 2020-04-21 05:26:13 +00:00
  • 32c3fe40eb Merge branch 'obsd-master' Thomas Adam 2020-04-20 17:43:20 +01:00
  • c706aadf52 Merge branch 'obsd-master' Thomas Adam 2020-04-20 17:42:29 +01:00
  • 4a5182e665 Always start sync for output in panes that are not the active pane. nicm 2020-04-20 15:49:05 +00:00
  • 117ec1b2e6 Apply terminal-overrides after terminal detection, it always takes precedence. nicm 2020-04-20 15:37:32 +00:00
  • 2083a6ea20 Change how sync works to always send the end sequence after all output is done when we are returning to the event loop (since we always move the cursor at that point). Also a man fix from jmc. nicm 2020-04-20 14:59:31 +00:00
  • 135bb1edee Change the Sync capability to be a string instead of a flag. nicm 2020-04-20 13:38:48 +00:00
  • c91b4b2e14 Tidy up the terminal detection and feature code and add named sets of terminal features, each of which are defined in one place and map to a builtin set of terminfo(5) capabilities. Features can be specified based on TERM with a new terminal-features option or with the -T flag when running tmux. tmux will also detect a few common terminals from the DA and DSR responses. nicm 2020-04-20 13:25:36 +00:00
  • 3898d4e7c8 Merge branch 'obsd-master' Thomas Adam 2020-04-20 12:01:32 +01:00
  • 86862c976a Also redraw panes which aren't pane 0. Problem reported by tb@. nicm 2020-04-20 09:07:55 +00:00
  • b1be668a3e Merge branch 'obsd-master' Thomas Adam 2020-04-20 08:01:31 +01:00
  • b846ec2665 Only trim blank lines when the source pane is not the target pane, otherwise the cursor moves which is a bit strange. nicm 2020-04-20 06:08:37 +00:00
  • 4bc0a83d51 Need to check for pane redrawing even if just the window flag is set (the pane flag may not have been previously set to avoid looping the windows). nicm 2020-04-20 06:07:39 +00:00
  • 8c9bbc3749 Merge branch 'obsd-master' Thomas Adam 2020-04-19 00:01:31 +01:00
  • 62ff5e4b01 The PANE_REDRAW flag bit might be needed by other panes so we can't clear it on the first redraw, and it can't be set when we are finished or they would be redrawn again, so if the redraw is deferred for a client, copy the redraw flag into a separate set of bits just for that client. nicm 2020-04-18 21:35:32 +00:00
  • 7da5418758 Merge branch 'obsd-master' Thomas Adam 2020-04-18 20:01:29 +01:00
  • 100db552d1 A resize can realloc so cannot cache the value of the list pointer. nicm 2020-04-18 17:20:25 +00:00
  • 2b83ee5557 Merge branch 'obsd-master' Thomas Adam 2020-04-18 18:01:28 +01:00
  • deffef6f13 Reset background colour on scrolled line. nicm 2020-04-18 15:22:05 +00:00
  • ea5fdd5331 There is no point in keeping a bunch of different text buffers for each line when writing, we only need one as big as the line width - there can't be any more text than that since newer will overwrite older. nicm 2020-04-18 15:12:28 +00:00
  • 2ccf15e5d8 Merge branch 'obsd-master' Thomas Adam 2020-04-18 16:01:34 +01:00
  • 4a93294152 Use size_t not u_int for the bytes counters and fix a const missing. nicm 2020-04-18 14:21:39 +00:00
  • d55510ebc8 Merge branch 'obsd-master' Thomas Adam 2020-04-18 12:01:31 +01:00
  • 94c90385d2 Apple appear to have fixed kqueue in some OS X version (will wonder never cease!) so use it since it appears to be faster. Nicholas Marriott 2020-04-18 11:45:49 +01:00
  • e1799ed7c8 Merge branch 'obsd-master' Thomas Adam 2020-04-18 10:01:31 +01:00
  • c87595326c Use peek line function instead of hoking in the array directly. nicm 2020-04-18 09:00:31 +00:00
  • b0a37e7514 Bring back previons fix to only redraw panes that need it after a redraw is deferred, but clear the pane flags when they are actually redrawn rather than every time. nicm 2020-04-18 07:32:53 +00:00
  • e153b928ff Add formats for pane written/skipped bytes for debugging. nicm 2020-04-18 07:19:28 +00:00
  • 349617a818 Merge branch 'obsd-master' Thomas Adam 2020-04-18 08:01:37 +01:00
  • baf1fca273 Only update mode when actually going to redraw something. nicm 2020-04-18 06:52:36 +00:00
  • 1d2bd864f2 Add a flag to protect against nested syncs and add some extra logging to redrawing. nicm 2020-04-18 06:20:50 +00:00
  • d94bdf7420 Revert previous, there is still a problem. nicm 2020-04-18 06:15:07 +00:00
  • 5289d4ed13 When a redraw is deferred because the terminal hasn't finished reading the data from the last one, other panes could update while waiting, so we set the flag to redraw them all when the new redraw actually happened. But this means a lot of redrawing panes unnecessarily if they haven't changed - so instead set a flag to say "at least one pane needs to be redrawed" then look at the invidual pane flags to see which ones need it. nicm 2020-04-18 06:10:15 +00:00
  • 87d79e6d36 Merge branch 'obsd-master' Thomas Adam 2020-04-18 00:01:30 +01:00
  • a7a9460d27 Set mode properly before and after redrawing, and don't bother calculating cursor position if it won't be used. nicm 2020-04-17 22:16:28 +00:00
  • a877a5d8c9 Do not move the cursor to the existing y position if it is invalid, go home instead. nicm 2020-04-17 21:33:18 +00:00
  • 857fca1095 Merge branch 'obsd-master' Thomas Adam 2020-04-17 18:01:30 +01:00
  • bbd6e899a8 There is no point allocating a new item and putting it on the list when the whole line is cleared line, there is never any point in doing it more than once. Instead store the background colour alone. nicm 2020-04-17 15:44:58 +00:00
  • 7a21e911e1 Merge branch 'obsd-master' Thomas Adam 2020-04-17 16:01:33 +01:00
  • 282a7a8d96 Make sure the cursor position is still on screen after we have trimmed empty lines. Also improve some log messages. nicm 2020-04-17 14:06:42 +00:00
  • abeb31dd3d Merge branch 'obsd-master' Thomas Adam 2020-04-17 12:01:30 +01:00
  • 7f2925a01d Support the application escape sequence mintty (means tmux doesn't have to delay to wait for Escape). nicm 2020-04-17 09:06:10 +00:00
  • 413c4cfd1b Merge branch 'obsd-master' Thomas Adam 2020-04-17 10:01:38 +01:00
  • 5aba26f2cb Add a copy-command option and change copy-pipe and friends to pipe to it if used without arguments, allows all copy key bindings to be changed to pipe with one option. nicm 2020-04-17 08:03:22 +00:00
  • 2846be326a Merge branch 'obsd-master' Thomas Adam 2020-04-17 00:01:35 +01:00
  • 5f18844b32 Return to sending sync around clears. nicm 2020-04-16 21:46:43 +00:00
  • d8433add47 Do not need to set up a tty context for clearing lines now. nicm 2020-04-16 21:16:24 +00:00
  • d90ca7ecd6 Collect up line clears like text within the available data so we don't need to flush everything. nicm 2020-04-16 20:32:51 +00:00
  • 9edef17698 Merge branch 'obsd-master' Thomas Adam 2020-04-16 20:01:31 +01:00
  • c1b015f24e Log what caused a flush for better visibility on what could be improved. nicm 2020-04-16 17:24:28 +00:00
  • 9311ed049b Start menu with top item selected if no mouse, GitHub issue 2169. nicm 2020-04-16 17:20:23 +00:00
  • 21eb2ba419 Merge branch 'obsd-master' Thomas Adam 2020-04-16 18:01:32 +01:00
  • 2e347d6a38 Only start and stop sync for operations like clear and scroll where there is a better chance more data will be on the way. nicm 2020-04-16 16:13:56 +00:00
  • 363d950ac0 Send secondary device attributes instead of primary which gives us a bit more useful information on some terminals. nicm 2020-04-16 15:14:25 +00:00
  • 5e38d26257 Merge branch 'obsd-master' Thomas Adam 2020-04-16 16:01:35 +01:00
  • 5ec80bd249 Move the UTF-8 flag to terminal flags. nicm 2020-04-16 14:25:35 +00:00