aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
Commit message (Collapse)AuthorAge
...
* Add cmd_find_from_winlink_pane and use it in a couple of places, andnicm2017-04-21
| | | | make functions that can't fail void.
* 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.
* 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.
* Use fdforkpty() instead of our own unwrapped versions.nicm2017-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...
* Add a suspend helper function, and do not allow detaching or suspendingnicm2017-04-19
| | | | while already doing so.
* 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.
* 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.
* Detect iTerm2 and use DECSLRM for it as well.nicm2017-04-18
|
* Add a format for number of bytes writtent to client, useful for debugging.nicm2017-04-18
|
* Remove a couple of redraw flags that no longer have any effect.nicm2017-04-17
|
* Give each client a name. This defaults to the tty name as before butnicm2017-04-05
| | | | | | | falls back to an alternative if the tty name is not available. This is clearer than overloading the client ttyname member and allows us to remove the path stored in the tty struct, it should always be the same as the client.
* Add support for the strikethrough attribute (SGR 9), using the new smxxnicm2017-03-22
| | | | | terminfo capability. This means there are now nine attribute bits, so anything above 0xff uses an extended cell.
* Move the client identify (display-panes) code into server-client.c.nicm2017-03-09
|
* Move server_fill_environ into environ.c and move some other common codenicm2017-03-09
| | | | into it.
* Add a helper function for the most common format_create/defaults/expandnicm2017-03-08
| | | | pattern.
* If splitw -b is used, insert the new pane before the current one in thenicm2017-02-27
| | | | | | pane list. This means the numbering is in order (for example for display-panes) and fixes a problem with redrawing the active pane borders.
* Don't need is1,is2,is3 so remove them.nicm2017-02-21
|
* Make source-file look for files relative to the client working directorynicm2017-02-14
| | | | | (like load-buffer and save-buffer), from Chris Pickel. Also break the where-is-this-file code out into its own function for loadb and saveb.
* Don't use a bufferevent for the tty, so we can keep better track of whatnicm2017-02-10
| | | | | | is being written and when. Also a manpage typo fix from jmc@.
* Instead of numbering session groups, give them a name which may be givennicm2017-02-09
| | | | | to -t instead of a target session. Also allow them to contain only one session.
* Break the message storage function into its own function, useful fornicm2017-02-09
| | | | debugging.
* Another helper function to write to terminal and log.nicm2017-02-08
|
* Add support for scroll up escape sequence (CSI S) and use it whennicm2017-02-08
| | | | possible instead of sending individual line feeds.
* Collect sequences of printable ASCII characters and process themnicm2017-02-08
| | | | | | | | | | | | | | | together instead of handling them one by one. This is significantly faster. Sequences are terminated when we reach the end of the line, fill the internal buffer, or a different character is seen by the input parser (an escape sequence, or UTF-8). Rather than writing collected sequences out immediately, hold them until it is necessary (another screen modification, or we consume all available data). This means we can discard changes that would have no effect (for example, lines that would just be scrolled off the screen or cleared). This reduces the total amount of data we write out to the terminal - not important for fast terminals, but a big help with slow (like xterm).
* Trying to avoid the occasional newline by saving the last cell on screennicm2017-02-08
| | | | | is not actually helping us much and just adds complexity, so don't bother.
* Remove event watermarks, don't work well enough to be worth it.nicm2017-02-08
|
* Use DECFRA on VT420 compatible terminals (so, xterm) and ED on allnicm2017-02-06
| | | | others for clearing panes.
* Do not go through the whole attributes setting process if the new cellnicm2017-02-06
| | | | is the same as the previous one.
* Add BCE for clear to start of screen, which was somehow missed.nicm2017-02-06
|
* Cancel key table when switching session, unless the key is going tonicm2017-02-06
| | | | repeat. Reported by Amos Bird.
* Only redraw the modified character when adding combining characters, notnicm2017-02-06
| | | | the whole line.
* Cache status line position to reduce option lookups during output.nicm2017-02-03
|
* Add a window or pane id "tag" to each format tree and use it to separatenicm2017-02-03
| | | | | | jobs, this means that if the same job is used for different windows or panes (for example in pane-border-format), it will be run separately for each pane.
* Implement "all event" (1003) mouse mode but in a way that works. Thenicm2017-02-01
| | | | | | | | | | | main issue is that if we have two panes, A with 1002 and B with 1003, we need to set 1003 outside tmux in order to get all the mouse events, but then we need to suppress the ones that pane A doesn't want. This is easy in SGR mouse mode, because buttons == 3 is only used for movement events (for other events the trailing m/M marks a release instead), but in normal mouse mode we can't tell so easily. So for that, look at the previous event instead - if it is drag+release as well, then the current event is a movement event.
* When a flag option is used in a format, it should use the number formnicm2017-01-30
| | | | not string.
* Revert previous for now, it will break TERM=screen.nicm2017-01-25
|
* If xterm-keys is on, use xterm(1) style keys for Home and End as well asnicm2017-01-25
| | | | modified keys.
* Make update-environment an array as well.nicm2017-01-24
|
* Add support for custom command aliases, this is an array option whichnicm2017-01-24
| | | | | contains items of the form "alias=command". This is consulted when an unknown command is parsed.
* If given an array option without an index either show or set all items,nicm2017-01-24
| | | | | | and support -a for array options. Allow the separator for set to be specified in the options table (will be used for backwards compatibility later).
* Open /dev/ptm before pledge() and save it to be used for PTMGET laternicm2017-01-23
| | | | | | (this means inlining forkpty()). ok deraadt
* Plain stravis() because it will mangle UTF-8 characters, so addnicm2017-01-18
| | | | utf8_stravis() which calls our existing utf8_strvis() and use it instead
* Revert WIP parts of previous I didn't mean to commit yet.nicm2017-01-16
|
* getopt() has a struct option so just return to using options_entry.nicm2017-01-16
|
* It is silly for cmd_list_parse to return an integer error when it couldnicm2017-01-15
| | | | just return NULL.
* Major tidy up and rework of options tree and set-option/show-optionsnicm2017-01-15
| | | | | | | | commands this pushes more of the code into options.c and ties it more closely to the options table rather than having an unnecessary split. Also add support for array options (will be used later). Only (intentional) user visible change is that show-options output is now passed through vis(3) with VIS_DQ so quotes are escaped.