aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master'Thomas Adam2017-05-12
|\
| * ECH needs to use background colour.nicm2017-05-12
| |
* | Merge branch 'obsd-master'Thomas Adam2017-05-11
|\|
| * Make environ_log prefix take a format.nicm2017-05-11
| |
* | Merge branch 'obsd-master'Thomas Adam2017-05-10
|\|
| * Prevent control clients from affecting the session size until they havenicm2017-05-10
| | | | | | | | | | specified a size with refresh-client -C. Prompted by a different change with the same purpose from George Nachman.
* | Merge branch 'obsd-master'Thomas Adam2017-05-10
|\|
| * Insert copy mode bindings at the right place in the command queue.nicm2017-05-10
| |
* | Merge branch 'obsd-master'Thomas Adam2017-05-09
|\|
| * If the current screen was complex enough, it was possible to make redrawnicm2017-05-09
| | | | | | | | | | | | itself hit the "terminal can't keep up" check. To avoid this, record how much data we send during redraw (we know we will be starting with 0) and skip the check until it has been flushed. GitHub issue 912.
* | Merge branch 'obsd-master'Thomas Adam2017-05-09
|\| | | | | | | | | Conflicts: format.c
| * Add a format for the name of the pane's mode, lets it be used as anicm2017-05-07
| | | | | | | | conditional for key bindings.
| * Up to now, tmux sees \033\033[OA as M-Up and since we turned onnicm2017-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xterm-keys by default, generates \033[1;3A instead of \033\033[OA. Unfortunately this confuses vi, which doesn't understand xterm keys and now sees Escape+Up pressed within escape-time as Escape followed by A. The issue doesn't happen in xterm itself because it gets the keys from X and can distinguish between a genuine M-Up and Escape+Up. Because xterm can, tmux can too: xterm will give us \033[1;3A (that is, kUP3) for a real M-Up and \033\033OA for Escape+Up - in fact, we can be sure any \033 preceding an xterm key is a real Escape key press because Meta would be part of the xterm key instead of a separate \033. So change tmux to recognise both sequences as M-Up for its own purposes, but generate the xterm version of M-Up only if it originally received the xterm version from the terminal. This means we will return to sending \033\033OA instead of the xterm key for terminals that do not support xterm keys themselves, but there is no practical way around this because they do not allow us to distinguish between Escape+Up and M-Up. xterm style escape sequences are now the de facto standard for these keys in any case. Problem reported by jsing@ and subsequently by Cecile Tonglet in GitHub issue 907.
* | Merge branch 'obsd-master'Thomas Adam2017-05-04
|\|
| * Some new notifications, mainly for active pane and current window andnicm2017-05-04
| | | | | | | | | | | | | | | | | | | | | | session: pane-mode-changed window-pane-changed client-session-changed session-window-changed From Joshua Brot.
* | Merge branch 'obsd-master'Thomas Adam2017-05-03
|\|
| * Add a format for the last search string in copy mode and fix the promptnicm2017-05-03
| | | | | | | | so it can work when in -I, suggested by Suraj N Kurapati.
* | Merge branch 'obsd-master'Thomas Adam2017-05-01
|\|
| * In order that people can use formats like #D in #() in the status linenicm2017-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and not have to wait for an update when they change pane, we allow commands to run more than once a second if the expanded form changes. Unfortunately this can mean them being run far too often (pretty much continually) when multiple clients exist, because some formats (including #D) will always differ between clients. To avoid this, give each client its own tree of jobs which means that the same command will be different instances for each client - similar to how we have the tag to separate commands for different panes. GitHub issue 889; test case reported by Paul Johnson.
* | Merge branch 'obsd-master'Thomas Adam2017-04-28
|\|
| * Log what is happening with window and session reference counts much morenicm2017-04-28
| | | | | | | | obviously.
* | Merge branch 'obsd-master'Thomas Adam2017-04-25
|\|
| * Make full width panes try to play more nicely with terminal copy andnicm2017-04-25
| | | | | | | | | | paste by avoiding explicit line wraps if we think the terminal will wrap anyway.
| * When we write out the grid including escape sequences, an SGR 0 needs tonicm2017-04-25
| | | | | | | | | | cause the colours to be written again. Also treat colours separately from attributes so that RGB colours will work.
* | Merge branch 'obsd-master'Thomas Adam2017-04-25
|\|
| * Do not update TERM into config file parsing has finished.nicm2017-04-25
| |
* | Merge branch 'obsd-master'Thomas Adam2017-04-22
|\|
| * Get rid of the extra layer of flags and cmd_prepare() and just store thenicm2017-04-22
| | | | | | | | | | | | CMD_FIND_* flags in the cmd_entry and call it for the command. Commands with special requirements call it themselves and update the target for hooks to use.
* | Merge branch 'obsd-master'Thomas Adam2017-04-21
|\|
| * Make the cmd_find_* functions more obvious when looking for a client,nicm2017-04-21
| | | | | | | | | | rather than having it inside other functions. Should be no change to the way targets are resolved just yet.
* | Merge branch 'obsd-master'Thomas Adam2017-04-21
|\|
| * Style nits and an unused struct.nicm2017-04-21
| |
| * Add cmd_find_from_winlink_pane and use it in a couple of places, andnicm2017-04-21
| | | | | | | | make functions that can't fail void.
* | Merge branch 'obsd-master'Thomas Adam2017-04-21
|\|
| * It is annoying that the copy mode key table (or any other key table)nicm2017-04-21
| | | | | | | | | | | | | | | | | | | | | | | | will suppress root key table bindings. So change to always check the root table if no binding is found in the current table (whether it be the prefix table from pressing the prefix or the copy mode table from a pane). A root key binding can be blocked by binding the key to a command that does nothing (like send-keys with no arguments). Problem reported by Thomas Sattler.
* | Merge branch 'obsd-master'Thomas Adam2017-04-21
|\|
| * More unnecessary arguments now winlink points back to session.nicm2017-04-21
| |
| * Store state shared between multiple commands in the queue in a sharednicm2017-04-21
| | | | | | | | structure.
* | Merge branch 'obsd-master'Thomas Adam2017-04-21
|\| | | | | | | | | | | Conflicts: Makefile.am pty.c
| * Use fdforkpty() instead of our own unwrapped versions.nicm2017-04-20
| |
* | Merge branch 'obsd-master'Thomas Adam2017-04-20
|\|
| * Now that struct winlink has a session pointer, can remove some arguments.nicm2017-04-20
| |
| * There is no real need for window_printable_flags to allocate, make itnicm2017-04-20
| | | | | | | | return a buffer from the stack.
| * If a #() command doesn't exit, use its most recent line of output (itnicm2017-04-20
| | | | | | | | | | | | | | must be a full line). Don't let it redraw the status line more than once a second. Requested by someone about 10 years ago...
* | Merge branch 'obsd-master'Thomas Adam2017-04-19
|\|
| * Add a suspend helper function, and do not allow detaching or suspendingnicm2017-04-19
| | | | | | | | while already doing so.
* | Merge branch 'obsd-master'Thomas Adam2017-04-19
|\|
| * When the data we have buffered to write to a terminal grows beyond anicm2017-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reasonable amount (currently width * height * 8 bytes), discard all output to the terminal and start trying to redraw periodically instead. Continue with this until the amount of data we are trying to write falls to a low level again. This helps to prevent tmux sitting on a huge buffer of data when there are processes with fast output running inside tmux but the outside terminal is slow. A new client_discarded format holds the amount of data that has been discarded due to this mechanism. The three variables (when to start this, when to stop, and how often to redraw) are basically "works for me" at the moment, this is going in to see how it goes and if it causes problems for anyone else.
* | Merge branch 'obsd-master'Thomas Adam2017-04-19
|\|
| * Revert use of DECSLRM on iTerm2, it doesn't help as much as we throught,nicm2017-04-18
| | | | | | | | and there are some question marks about it's support.