summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Set mode properly before and after redrawing, and don't bothernicm2020-04-171-4/+6
| | | | calculating cursor position if it won't be used.
* Move the UTF-8 flag to terminal flags.nicm2020-04-161-2/+2
|
* When adding a list of commands to the queue, instead of automaticallynicm2020-04-131-2/+2
| | | | | | | creating a new state for each group of commands, require the caller to create one and use it for all the commands in the list. This means the current target works even with list with multiple groups (which can happen if they are defined with newlines).
* Move cmdq_state into cmd-queue.c.nicm2020-04-131-2/+2
|
* Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make itsnicm2020-04-131-6/+5
| | | | use more clearly defined and preparation for some future work).
* Some unnecessary assignments and unused variables.nicm2020-04-091-5/+4
|
* Wait until the initial command sequence is done before sending a devicenicm2020-04-091-1/+3
| | | | | | | attributes request and other bits that prompt a reply from the terminal. This means that stray relies are not left on the terminal if the command has attached and then immediately detached and tmux will not be around to receive them. Prompted by a problem report from espie@.
* Do not ignore triple-click and send to pane.nicm2020-04-011-2/+1
|
* Add a way to mark environment variables as "hidden" so they can be usednicm2020-03-311-2/+3
| | | | by tmux but are not passed into the environment of new panes.
* Add a "second click" key type which is fired for the second click of anicm2020-03-311-9/+56
| | | | | | | double click, even if the timer hasn't expired to confirm it isn't actually a triple click. Provides a way for people who don't care about triple clicks or can make their commands have no side effects to avoid the double click timer delay.
* Move alternate screen into the screen rather than the pane.nicm2020-03-311-2/+2
|
* Add support for overlay popup boxes to show text or output temporarilynicm2020-03-241-27/+51
| | | | | above the normal layout. These work similarly to menus and are created with the display-popup command.
* Ignore default-shell (and use /bin/sh) if it invalid not just if it isnicm2020-03-171-2/+4
| | | | | tmux itself, also refuse to set the option to something invalid in the first place. GitHub issue 2120.
* Send mouse down event immediately rather than waiting for double clicknicm2020-03-161-4/+8
| | | | | to finish which would now mean it was out of order. Reported by Mark Kelly.
* Change how double and triple clicks works so that one or the other isnicm2020-03-121-11/+26
| | | | | fired - a double click is no longer triggered on the way to a triple click.
* A few fixes to make modifier keys and dragging work - need to remove thenicm2020-02-191-4/+6
| | | | | | modifiers before checking for the dragging marker key, and apply them before looking up the end key. Also fix key-to-string with modifiers for special keys.
* Remove unused variables from Ben Boeckel, and a Pp from jmc.nicm2020-02-111-3/+1
|
* Add a define for flags meaning a client is not attached, and fixnicm2020-01-281-3/+3
| | | | unattached counter, reported by Thomas Sattler.
* If /dev/fd/X is a symlink and realpath() expands symlinks, /dev/fd/Xnicm2019-12-161-17/+1
| | | | | | | ends up pointing to the wrong place before it is passed to the client. The path is only used internally so there is no real need for realpath(), remove it and move the get_path function to file.c where all the callers are.
* Instead of using large buffers in imsgs, add the data or path onto the end.nicm2019-12-161-4/+4
|
* Rewrite the code for reading and writing files. Now, if the client isnicm2019-12-121-128/+87
| | | | | | | | | not attached, the server process asks it to open the file, similar to how works for stdin, stdout, stderr. This makes special files like /dev/fd/X work (used by some shells). stdin, stdout and stderr and control mode are now just special cases of the same mechanism. This will also make it easier to use for other commands that read files such as source-file.
* Style nits in function arguments.nicm2019-12-031-2/+2
|
* Long lines and spacing fixes.nicm2019-11-281-2/+3
|
* Make a best effort to set xpixel and ypixel for each pane and addnicm2019-11-281-14/+3
| | | | formats for them.
* Limit lazy resize to panes in attached sessions only - those innicm2019-11-011-4/+18
| | | | | | unattached are likely to have been resized by something like split-window where the user probably wants the resize to happen immediately. GitHub issue 1963.
* Add a "latest" window-size option which tries to size windows based onnicm2019-09-191-1/+22
| | | | | the most recently used client. From Tommie Gannert in GitHub issue 1869 based on earlier changes from me.
* The resize event was never deciding to actually resize the pane if therenicm2019-08-281-32/+45
| | | | | | | was output in the pane faster than the timer would fire, so change how it works to only defer the timer again if the pane was actually resized within the last timer period. Reported by James Tai in GitHub issue 1880.
* Clear overlay on normal key press.nicm2019-07-171-1/+2
|
* Correctly adjust mouse position if the status line is at the top andnicm2019-07-061-4/+5
| | | | more than one line. GitHub issue 1822.
* Command prompt key presses need to avoid the command queue, GitHub issuenicm2019-07-021-20/+18
| | | | 1817. Also a tmux.1 fix from jmc.
* Pass keys that aren't 0-9 on to normal key processing when display-panesnicm2019-06-261-3/+7
| | | | is active (restores previous behaviour).
* Need to always check focus even if not current window.nicm2019-06-201-3/+4
|
* Expand command formats in %if and move the config file loading later (tonicm2019-06-201-19/+22
| | | | | when the first client has identified) so all the client formats are available, fixes problems reported by Thomas Sattler.
* Do not resize panes unless they are in an attached, active window. Fromnicm2019-06-111-2/+9
| | | | Morten M Neergaard in GitHub issue 1782.
* Do not load the config file if the server is exiting because it failednicm2019-06-071-3/+5
| | | | | | to start, otherwise commands like lsk which start the server again can end up looping infinitely. Also make the first client exit correctly. Problem reported by Wael M Nasreddine.
* Merge cmd_list_parse into cmd-parse.y so it can use the new aliasnicm2019-05-251-9/+16
| | | | processing code.
* Replace the various identical error callbacks with a single one in cmd-queue.c.nicm2019-05-201-14/+3
|
* Fix some indentation and dead assignments.nicm2019-05-121-8/+10
|
* Add a flag to redraw only the overlay, and remove the overlay on resize.nicm2019-05-081-3/+10
|
* Move around the display-panes identify code to make it a bit morenicm2019-05-071-49/+34
| | | | | generic and hide the display-panes specific bits into cmd-display-panes.c.
* Treat keys in identify mode (display-panes) specially and handle themnicm2019-05-071-2/+40
| | | | | | immediately rather than queuing them (the command can block the queue which means they were not being seen until it finished which was too late). Reported by denis@ and solene@, ok solene@.
* Allow panes to be empty (no command), output can be piped to them withnicm2019-05-031-3/+2
| | | | split-window or display-message -I.
* Do not store the mouse position we calculate as the start of a drag backnicm2019-05-031-3/+3
| | | | | into the mouse event that later code uses, it has been adjusted and they should use the original position. GitHub issue 1710.
* Fix mouse positioning when the pane is not entirely visible.nicm2019-05-031-2/+2
|
* Instead of processing keys all together, put them up on the clientnicm2019-05-031-25/+40
| | | | | command queue so they are ordered correctly with the commands that they execute.
* Update session activity on focus event, from tafryn at gmail dot com.nicm2019-04-181-1/+2
|
* Add StatusDefault binding for the mouse on any otherwise unassignednicm2019-03-251-19/+71
| | | | parts of the status line, from Avi Halachmi.
* Ignore mouse on status line which are not part of a range, GitHub issue 1649.nicm2019-03-251-10/+10
|
* Extend the #[] style syntax and use that together with previous formatnicm2019-03-181-11/+24
| | | | | | | | | | | | | | | | | | | | changes to allow the status line to be entirely configured with a single option. Now that it is possible to configure their content, enable the existing code that lets the status line be multiple lines in height. The status option can now take a value of 2, 3, 4 or 5 (as well as the previous on or off) to configure more than one line. The new status-format array option configures the format of each line, the default just references the existing status-* options, although some of the more obscure status options may be eliminated in time. Additions to the #[] syntax are: "align" to specify alignment (left, centre, right), "list" for the window list and "range" to configure ranges of text for the mouse bindings. The "align" keyword can also be used to specify alignment of entries in tree mode and the pane status lines.
* Tidy and rename some bits of status line code.nicm2019-03-161-2/+2
|