summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* No more lint means no more ARGSUSED.nicm2013-03-221-2/+1
|
* Add various checks to turn off bits that can't work in control modenicm2013-03-211-4/+11
| | | | (such as lock).
* Add a format client_prefix which is 1 if prefix key has beennicm2013-03-211-2/+7
| | | | | pressed, used for example #{?client_prefix,X,Y}. Also a few extra server_client_status needed.
* Unused variable/type nit from Thomas Adam.nicm2013-01-301-2/+2
|
* Style nits - return (x) not return x.nicm2013-01-181-4/+4
|
* If timing between keys is less than (by default) 1 millisecond, assumenicm2013-01-151-15/+41
| | | | | the text is being pasted. assume-paste-time option changes the value (0 disables). Based on a diff from Marcin Kulik.
* Make mouse event structure clearer by defining events (up, click, drag)nicm2012-10-261-39/+31
| | | | | and simplifying how buttons and wheels are represented, from Ailin Nemui. Should be no functional changes.
* Do not leak file descriptor if not a tty, reported by Sebastien Marie.nicm2012-09-271-3/+5
|
* Send notifications to control clients. Also don't redraw client whennicm2012-09-031-1/+5
| | | | suspended.
* Make command exec functions return an enum rather than -1/0/1 values andnicm2012-07-111-2/+10
| | | | | | add a new value to mean "leave client running but don't attach" to fix problems with using some commands in a command sequence. Most of the work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
* xfree is not particularly helpful, remove it. From Thomas Adam.nicm2012-07-101-16/+10
|
* Remove a couple of unused variables from redbrain at gcc dot gnu dot org.nicm2012-06-201-3/+1
|
* Add a skeleton mode to tmux (called "control mode") that let's tmuxnicm2012-06-181-1/+15
| | | | | | | commands be sent and output received on stdout. This can be used to integrate with other terminal emulators and should allow some other things to be made simpler later. More to come so doesn't do much yet and deliberately not documented.
* Store client in tty struct directly instead of using a callback functionnicm2012-05-221-10/+6
| | | | pointer.
* Instead of passing stdin/stdout/stderr file descriptors over imsg andnicm2012-05-211-122/+39
| | | | | | | | | | | handling them in the server, handle them in the client and pass buffers over imsg. This is much tidier for some upcoming changes and the performance hit isn't critical. The tty fd is still passed to the server as before. This bumps the tmux protocol version so new clients and old servers are incompatible.
* Add a helper function to open the terminal for attach-/new-session.nicm2012-05-061-1/+20
|
* Stop accepting new clients for 1 second on EMFILE/ENFILE. Based onnicm2012-04-111-1/+3
| | | | ongoing fixes to other daemons by Theo.
* Need to call recalculate_sizes() when changing window with the mouse,nicm2012-03-171-1/+4
| | | | from marcel partap.
* Check event_initialized before event_del if event may not have been setnicm2012-03-171-4/+7
| | | | up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
* Remove some bits leftover from unused backoff code.nicm2012-03-091-2/+1
|
* Do not change pane when changing window with mouse on status line,nicm2012-02-021-1/+3
| | | | pointed out by Romain Francoise.
* Add an option to move the status line to the top of the screen,nicm2012-01-291-41/+68
| | | | requested by many.
* Call bufferevent_free before closing file descriptor associated with itnicm2012-01-291-7/+7
| | | | | or bugs in $EventMechanism on $OtherOS makes libevent get it's knickers in a twist. From Dylan Alex Simon.
* Remove unused backoff code that doesn't do any good.nicm2012-01-211-45/+1
|
* Drop the ability to have a list of keys in the prefix in favour of twonicm2012-01-211-11/+7
| | | | | | | | | | separate options, prefix and prefix2. This simplifies the code and gets rid the data options type which was only used for this one option. Also add a -2 flag to send-prefix to send the secondary prefix key, fixing a cause of minor irritation. People who want three prefix keys are out of luck :-).
* Fix so that when mouse-select-pane and mouse-select-window are bothnicm2011-12-241-1/+3
| | | | | enabled, clicking on the status line does not change the current pane. From Romain Francoise.
* Fix a couple of memory leaks, from marcel partap.nicm2011-08-201-1/+3
|
* Do not continue to send data to suspended/locked clients or there willnicm2011-07-081-1/+4
| | | | | | be a huge rush of it after they are resumed/unlocked. The main output path was fine but status line updates and the terminal state reset code were missed.
* Support xterm(1) cursor colour change sequences through terminfo(5) Ccnicm2011-05-201-2/+2
| | | | | (set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked by me and Ailin Nemui.
* Only select pane on click, not drag. From hsim at gmx.li.nicm2011-05-081-2/+3
|
* Add a new option, mouse-resize-pane. When on, panes may be resized bynicm2011-05-081-2/+18
| | | | dragging their borders. From hsim at gmx.li.
* Change window with mouse wheel over status line if mouse-select-windownicm2011-05-041-4/+17
| | | | is on, from marcel partap.
* Check if mouse-select-pane is ON not off when setting mouse flags,nicm2011-05-041-2/+2
| | | | reported by oga.
* When mode-mouse is on (it is off by default), automatically enter copynicm2011-04-191-10/+18
| | | | | | mode when the mouse is dragged or the mouse wheel is used. Also exit copy mode when the mouse wheel is scrolled off the bottom. Discussed with and written by hsim at gmx dot li.
* Add an option (mouse-select-window) which allows the mouse to be used bynicm2011-04-181-1/+11
| | | | clicking on the status line, written by hsim at gmx dot li.
* Change -t on display-message to be target-pane for the #[A-Z]nicm2011-03-291-2/+2
| | | | replacements and add -c as target-client.
* Simplify the way jobs work and drop the persist type, so all jobs arenicm2011-01-261-6/+6
| | | | | | | | | | | | | | | | | fire-and-forget. Status jobs now managed with two trees of output (new and old), rather than storing the output in the jobs themselves. When the status line is processed any jobs which don't appear in the new tree are started and the output from the old tree displayed. When a job finishes it updates the new tree with its output and that is used for any subsequent redraws. When the status interval expires, the new tree is moved to the old so that all jobs are run again. This fixes the "#(echo %H:%M:%S)" problem which would lead to thousands of identical persistent jobs and high memory use (this can still be achieved by adding "sleep 30" but that is much less likely to happen by accident).
* Only set a mouse mode for mouse-select-pane if none already set by thenicm2011-01-151-2/+7
| | | | mode (any will do).
* Move all calls to fcntl(...O_NONBLOCK) into a function and clear thenicm2011-01-081-17/+17
| | | | | flag on the stdio file descriptors before closing them (fixes things like "tmux ls && cat").
* Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262nicm2011-01-031-1/+16
| | | | | | | | | | and supports larger terminals than the older way. If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all UTF-8 terminals. The option defaults to on if LANG etc are set in the same manner as the utf8 option. With help and based on code from hsim at gmx.li.
* Don't reset the activity timer for unattached sessions every second,nicm2011-01-011-6/+3
| | | | | | | this screws up the choice of most-recently-used. Instead, break the time update into a little function and do it when the session is attached. Pointed out by joshe@.
* Support all four of the xterm mouse modes. Based on a diff from hsim atnicm2010-12-291-2/+2
| | | | gmx.li.
* Use pointer rather than index for the client's last session.nicm2010-12-201-2/+2
|
* Track the last session for a client and add a flag to switch-client andnicm2010-12-111-1/+2
| | | | a key binding (L) to move a client back to its last session.
* Make the prompt history global for all clients which is much more useful than per-client history.nicm2010-12-111-6/+1
|
* Trying to set FD_CLOEXEC on every fd is a lost cause, just usenicm2010-10-161-9/+1
| | | | closefrom() before exec.
* Two new options:nicm2010-09-261-1/+2
| | | | | | | | | | | | - server option "exit-unattached" makes the server exit when no clients are attached, even if sessions are present; - session option "destroy-unattached" destroys a session once no clients are attached to it. These are useful for preventing tmux remaining in the background where it is undesirable and when using tmux as a login shell to keep a limit on new sessions.
* Add missing prototype.nicm2010-08-311-1/+2
|
* Do not need to dup() the tty fd sent from the client because it isnicm2010-08-191-7/+5
| | | | already dup()d again later. Fixes a leak seen by espie@.
* Change the way backoff works. Instead of stopping reading from the ptynicm2010-08-111-1/+49
| | | | | | | | | | when the client tty backs up too much, just stop updating the tty and only update the internal screen. Then when the tty recovers, force a redraw. This prevents a dodgy client from causing other clients to go into backoff while still allowing tmux to be responsive (locally) when seeing lots of output.