summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Similarly for MSG_COMMAND - allow full imsg limit not arbitrary 2048.nicm2013-10-101-19/+28
|
* Instead of fixed size buffers for some messages, send only the stringnicm2013-10-101-12/+4
| | | | length.
* retcode -> retval for exit message.nicm2013-10-101-2/+2
|
* Merge IDENTIFY_* flags with CLIENT_* flags.nicm2013-10-101-6/+6
|
* Allow the file descriptor received from the client to be -1.nicm2013-10-101-3/+3
|
* Focus events can cause trouble if left on and they can't be turned offnicm2013-06-231-1/+5
| | | | | during idle periods (like the other states are) because we'd miss events. So add a server option to control them. Defaults to off.
* Always push a focus event when the application turns it on, prompted bynicm2013-06-231-3/+8
| | | | discussion with Hayaki Saito a while ago.
* Don't let server_client_check_focus use a dead bufferevent, from Romainnicm2013-04-211-4/+6
| | | | Francoise.
* Remove some code not needed on OpenBSD.nicm2013-04-101-12/+2
|
* Remove tmux's (already minimal) 88 colour support. Such terminals arenicm2013-03-271-3/+1
| | | | few and unnecessary.
* Sort includes and fix spaces.nicm2013-03-251-3/+3
|
* Use single stdout and stderr for control clients.nicm2013-03-251-2/+5
|
* Send DSC 1000p at the beginning of a -CC client's lifetime and ST andnicm2013-03-251-1/+3
| | | | the end, from George Nachman.
* Add resize-pane -Z to temporary zoom the active pane to occupy the fullnicm2013-03-241-1/+2
| | | | | | | | | | | | | | window or unzoom (restored to the normal layout) if it already zoomed, bound to C-b z by default. The pane is unzoomed on pretty much any excuse whatsoever. We considered making this a new layout but the requirements are quite different from layouts so decided it is better as a special case. Each current layout cell is saved, a temporary one-cell layout generated and all except the active pane set to NULL. Prompted by suggestions and scripts from several. Thanks to Aaron Jensen and Thiago Padilha for testing an earlier version.
* Add a command queue to standardize and simplify commands that call othernicm2013-03-241-73/+12
| | | | | | | | | | | | | | | | | | | | | | commands and allow a command to block execution of subsequent commands. This allows run-shell and if-shell to be synchronous which has been much requested. Each client has a default command queue and commands are consumed one at a time from it. A command may suspend execution from the queue by returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example run-shell does this from the callback that is fired after the job is freed. When the command queue becomes empty, command clients are automatically exited (unless attaching). A callback is also fired - this is used for nested commands in, for example, if-shell which can block execution of the client's cmdq until a new cmdq becomes empty. Also merge all the old error/info/print functions together and lose the old curclient/cmdclient distinction - a cmdq is bound to one client (or none if in the configuration file), this is a command client if c->session is NULL otherwise an attached client.
* Handle focus events from the terminal, from Aaron Jensen.nicm2013-03-241-7/+17
|
* Do pane resize ioctls once at the end of the server loop rather thannicm2013-03-241-2/+34
| | | | immediately.
* Add support for focus notifications when tmux pane changes, based onnicm2013-03-241-3/+47
| | | | work by Aaron Jensen.
* Need to set clients in context before changing their reference count.nicm2013-03-221-3/+2
|
* Remove unnecessary initializers of cmd_ctx.nicm2013-03-221-3/+1
|
* Add functions to allocate and free command contexts rather than doing itnicm2013-03-221-12/+15
| | | | all on the stack.
* 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.