aboutsummaryrefslogtreecommitdiff
path: root/server.c
Commit message (Collapse)AuthorAge
...
| * Free the pane bufferevent when the fd is closed (the signal could come beforeNicholas Marriott2009-11-11
| | | | | | | | the error callback).
| * Only need to chmod +x or -x the socket when a client is created, lost orNicholas Marriott2009-11-11
| | | | | | | | attached, rather than every event loop.
| * EVLOOP_ONCE takes care of the wakeup, so no need to call event_loopexit(NULL).Nicholas Marriott2009-11-05
| |
| * Now all timers are events, there is no longer any need to wake up every 50 ms -Nicholas Marriott2009-11-05
| | | | | | | | only wake up when an event happens.
| * Move status timer check into the global once-per-second timer, this could maybeNicholas Marriott2009-11-04
| | | | | | | | be done better but one every second is better than once every 50 ms.
| * Don't reenlist the client imsg event every loop, instead have a small functionNicholas Marriott2009-11-04
| | | | | | | | to it and call it after the event triggers or after a imsg is added.
| * Tell the client to exit on configuration file error.Nicholas Marriott2009-11-04
| |
| * Convert the window pane (pty master side) fd over to use a bufferevent.Nicholas Marriott2009-11-04
| | | | | | | | | | The evbuffer API is very similar to the existing tmux buffer API so this was remarkably painless. Not many possible ways to do it, I suppose.
| * Call event_init() before loading the config file, since potentially it couldNicholas Marriott2009-11-04
| | | | | | | | set up events.
| * Switch jobs over to use a bufferevent.Nicholas Marriott2009-11-04
| |
| * Initial changes to move tmux to libevent.Nicholas Marriott2009-11-04
| | | | | | | | | | | | | | | | | | This moves the client-side loops are pretty much fully over to event-based only (tmux.c and client.c) but server-side (server.c and friends) treats libevent as a sort of clever poll, waking up after every event to run various things. Moving the server stuff over to bufferevents and timers and so on will come later.
| * Change session and client activity and creation time members to have moreNicholas Marriott2009-11-03
| | | | | | | | | | | | | | | | meaningful names. Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session.
| * Reorder slightly to tidy code.Nicholas Marriott2009-11-02
| |
| * Move the poll registration functions into the server-*.c files.Nicholas Marriott2009-10-27
| |
| * tabs are better; ok nicmTheo Deraadt2009-10-26
| |
| * Clear signal flags /before/ taking action and continue afterwards to reduceNicholas Marriott2009-10-26
| | | | | | | | chance of dropping signals. Pointed out by deraadt@.
| * Split the server code handling clients, jobs and windows off into separateNicholas Marriott2009-10-22
| | | | | | | | | | | | | | | | | | files from server.c (merging server-msg.c into the client file) and rather than iterating over each set after poll(), allow a callback to be specified when the fd is added and just walk once over the returned pollfds calling each callback where needed. More to come, getting this in so it is tested.
| * When a session is unattached, reset its activity timer to prevent it lockingNicholas Marriott2009-10-13
| | | | | | | | instantly when reattached.
| * Similarly add a tty_cursor_pane function to tidy up most of the calls.Nicholas Marriott2009-10-12
| |
| * _absolute is redundant, just use tty_region.Nicholas Marriott2009-10-12
| |
| * Cleanup: use two functions for region setting, one for absolute and one insideNicholas Marriott2009-10-12
| | | | | | | | pane.
| * Add a pipe-pane command to allow a pane to be piped to a shell command, forNicholas Marriott2009-10-11
| | | | | | | | | | | | | | | | | | | | | | example: pipe-pane 'cat >~/out' No arguments stops outputing and closes the pipe; the -o flag toggles a pipe and on and off (useful for key bindings). Suggested by espie@.
| * Switch run-shell over to queue the command in the background like #().Nicholas Marriott2009-10-11
| |
| * Collect status from dead jobs and don't invoke the callback until bothNicholas Marriott2009-10-11
| | | | | | | | all input (the socket is closed) and status is available.
| * Clean up by introducing a wrapper struct for mouse clicks rather than passingNicholas Marriott2009-10-11
| | | | | | | | | | | | | | three u_chars around. As a side-effect this fixes incorrectly rejecting high cursor positions (because it was comparing them as signed char), reported by Tom Doherty.
| * Braek some bits out of server_fill_client() that aren't really related toNicholas Marriott2009-10-11
| | | | | | | | polling into their own function.
| * Put all jobs on a global all_jobs list and use that in server.c instead ofNicholas Marriott2009-10-10
| | | | | | | | running through all the clients.
| * Rather than running status-left, status-right and window title #() with popenNicholas Marriott2009-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | immediately every redraw, queue them up and run them in the background, starting each once every status-interval. The actual status line uses the output from the last run. This brings several advantages: - tmux itself may be called from inside #() without causing the server to hang; - likewise, sleep or similar doesn't cause the server to block; - commands aren't run excessively often when redrawing; - commands shared by status-left and status-right, or used multiple times, will only be run once. run-shell and if-shell still use system()/popen() but will be changed over to use this too later.
| * New option, mouse-select-pane. If on, the mouse may be used to select theNicholas Marriott2009-10-10
| | | | | | | | | | | | current pane. Suggested by sthen@ and also by someone else ages ago who I have forgotten.
| * Add "grouped sessions" which have independent name, options, current window andNicholas Marriott2009-10-10
| | | | | | | | | | | | | | | | so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session. Had this around for a while, tested by a couple of people.
| * Support for individual session idle time locking. May be enabled by turning offNicholas Marriott2009-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | the lock-server option (it is on by default). When this is off, each session locks when it has been idle for the lock-after-time setting. When on, the entire server locks when ALL sessions have been idle for their individual lock-after-time settings. This replaces one global-only option (lock-after-time) with another (lock-server), but the default behaviour is usually preferable so there don't seem to be many alternatives. Diff/idea largely from Thomas Adam, tweaked by me.
| * Instead of passing a struct pollfd ** around through various functions, buildNicholas Marriott2009-10-10
| | | | | | | | | | | | | | them into a tree and then convert into a flat poll array before and after poll. This adds a little code but should reduce annoying problems with ordering when adding new things that also need to be polled.
| * If no target client is specified to commands which accept one, try to guess theNicholas Marriott2009-10-05
| | | | | | | | | | | | current client, in a similar manner to how sessions already work: if the current session can be established and has only one client, use that; otherwise use the most recently created client.
| * Don't allow locked or suspended clients to limit the size of active clients.Nicholas Marriott2009-09-24
| |
| * On SIGTERM, just abandon any suspended/locked clients and leave them to it,Nicholas Marriott2009-09-23
| | | | | | | | | | otherwise the server will hang around (refusing new connections) until they exit properly.
| * Remove the internal tmux locking and instead detach each client and run theNicholas Marriott2009-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | command specified by a new option "lock-command" (by default "lock -np") in each client. This means each terminal has to be unlocked individually but simplifies the code and allows the system password to be used to unlock. Note that the set-password command is gone, so it will need to be removed from configuration files, and the -U command line flag has been removed. This is the third protocol version change so again it is best to stop the tmux server before upgrading.
| * Permit multiple prefix keys to be defined, separated by commas, for example:Nicholas Marriott2009-09-22
| | | | | | | | | | | | | | set -g prefix ^a,^b Any key in the list acts as the prefix. The send-prefix command always sends the first key in the list.
| * Regularise some fatal messages.Nicholas Marriott2009-09-20
| |
| * New option, set-titles-string, to allow the window title to be specified (asNicholas Marriott2009-09-18
| | | | | | | | | | for status-left/right) if set-titles is on. Also only update the title when the status line is being redrawn.
| * The default terminal size should be 80x24, not 80x25.Nicholas Marriott2009-09-15
| |
| * Nuke unused server_client_index function, pointed out by martynas@.Nicholas Marriott2009-09-14
| |
| * Doh, trim variables unused now.Nicholas Marriott2009-09-12
| |
| * Tidy some common code for destroying sessions into a new function.Nicholas Marriott2009-09-12
| |
| * Permit options such as status-bg to be configured using the entire 256 colourNicholas Marriott2009-09-10
| | | | | | | | palette by setting "colour0" to "colour255".
| * While the display-panes indicator is on screen, make the number keys select theNicholas Marriott2009-09-07
| | | | | | | | pane with that index.
| * Reference count clients and sessions rather than relying on a saved index forNicholas Marriott2009-09-07
| | | | | | | | cmd-choose-*.
| * Tiny cleanup.Matthias Kilian2009-09-07
| | | | | | | | ok nicm@
| * Only redraw all clients once when the backoff timer expires rather than everyNicholas Marriott2009-09-05
| | | | | | | | | | | | second all the time. Reported by Simon Nicolussi.
| * Tell the user when sleeping due to password backoff.Nicholas Marriott2009-09-04
| |
| * When shutting down the server, expect clients to be polite and exit when askedNicholas Marriott2009-09-02
| | | | | | | | with the right message.