aboutsummaryrefslogtreecommitdiff
path: root/server-fn.c
Commit message (Collapse)AuthorAge
...
* Sync OpenBSD patchset 243:Tiago Cunha2009-08-14
| | | | | | | | | | | | | | | | | | | Switch tmux to use imsg. This is the last major change to make the client-server protocol more resilient and make the protocol versioning work properly. In future, the only things requiring a protocol version bump will be changes in the message structs, and (when both client and server have this change) mixing different versions should nicely report an error message. As a side effect this also makes the code tidier, fixes a problem with the way errors reported during server startup were handled, and supports fd passing (which will be used in future). Looked over by eric@, thanks. Please note that mixing a client with this change with an older server or vice versa may cause tmux to crash or hang - tmux should be completely exited before upgrading.
* Sync OpenBSD patchset 231:Tiago Cunha2009-08-09
| | | | | | | | | | | | | | | | | Infrastructure and commands to manage the environment for processes started within tmux. There is a global environment, copied from the external environment when the server is started and each session has an (initially empty) session environment which overrides it. New commands set-environment and show-environment manipulate or display the environments. A new session option, update-environment, is a space-separated list of variables which are updated from the external environment into the session environment every time a new session is created - the default is DISPLAY.
* Sync OpenBSD patchset 225:Tiago Cunha2009-08-09
| | | | | | | | | | | | | If there is an error in the configuration file, don't just exit(1) as this can cause the client to hang. Instead, send the error message, then mark the client as bad and start a normal shutdown so the server exits once the error is written. This also allows some code duplicating daemon(3) to be trimmed and logging to begin earlier. Prompted by Theo noticing the behaviour on error wasn't documented.
* Sync OpenBSD patchset 196:Tiago Cunha2009-07-30
| | | | | | Rename struct hdrtype to msgtype which is a better name and can be used even when struct hdr disappears.
* Sync OpenBSD patchset 181:Tiago Cunha2009-07-28
| | | | | | | | | | | | | | | | | Make all messages sent between the client and server fixed size. This is the first of two changes to make the protocol more resilient and less sensitive to other changes in the code, particularly with commands. The client now packs argv into a buffer and sends it to the server for parsing, rather than doing it itself and sending the parsed command data. As a side-effect this also removes a lot of now-unused command marshalling code. Mixing a server without this change and a client with or vice versa will cause tmux to hang or crash, please ensure that tmux is entirely killed before upgrading.
* Sync OpenBSD patchset 148:Tiago Cunha2009-07-20
| | | | | | Display the number of failed password attempts (if any) when the server is locked. From Tom Doherty.
* Make it so using kill-pane to destroy the last pane in a window destroys theNicholas Marriott2009-07-18
| | | | | window instead of being an error.
* A similar for fix for window_choose: don't rely on the callback always beingNicholas Marriott2009-07-17
| | | | | | called to free data, have a separate free callback and call it from the mode cleanup code.
* Oops, it is always a good idea to get arguments the right way round.Nicholas Marriott2009-07-17
|
* Memory could be leaked if a second prompt or message appeared while another wasNicholas Marriott2009-07-17
| | | | | | still present, so add a separate prompt free callback and make the _clear function responsible for calling it if necessary (rather than the individual
* Need time.h not sys/time.h for time(2).Nicholas Marriott2009-07-14
|
* Add a default-terminal option to set the starting value of $TERM in newNicholas Marriott2009-07-12
| | | | | windows.
* Bring spacing into line.Nicholas Marriott2009-07-08
|
* Whoops, that shouldn't have been there.Nicholas Marriott2009-07-08
|
* Fix $Id$.Nicholas Marriott2009-07-08
|
* When unlocking the server, don't try to clear the prompt on clients without aNicholas Marriott2009-07-08
| | | | | | | | prompt (such as the one issuing the unlock request). This caused the server to die if the wrong password was entered when unlocking from the command line with -U (nasty).
* When unlocking the server, don't try to clear the prompt on clients without aNicholas Marriott2009-07-01
| | | | | | | | prompt (such as the one issuing the unlock request). This caused the server to die if the wrong password was entered when unlocking from the command line with -U (nasty).
* Start of portability update: bitstring.h.Nicholas Marriott2009-06-25
|
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* Miscellaneous unused functions, including one which was basically aNicholas Marriott2009-06-25
| | | | | duplicate. Found by lint.
* Clear status line on incorrect password.Nicholas Marriott2009-05-29
|
* Reset activity time to avoid relock on -U.Nicholas Marriott2009-05-28
|
* Convert hidden flag to a full flags word for the status line and add a flag toNicholas Marriott2009-04-27
| | | | | | accept after only one key. Use this so don't need to press enter after y/n for confirm-before.
* If redrawing the region would mean redrawing > half the pane, just schedule toNicholas Marriott2009-04-02
| | | | | | | redraw the entire window. Also add a flag to skip updating the window any further if it is scheduled to be redrawn. This has the effect of batching multiple redraws together.
* char not char *...Nicholas Marriott2009-03-07
|
* Put socket path in $TMUX.Nicholas Marriott2009-03-04
|
* Don't segfault on lock when no sessions attached.Nicholas Marriott2009-02-27
|
* Move status prompt/message init and teardown into status.c.Nicholas Marriott2009-02-13
|
* Server locking. set-password and lock-server commands, plus automatic locking.Nicholas Marriott2009-01-11
|
* Change server-info format.Nicholas Marriott2009-01-10
|
* Prompt history.Nicholas Marriott2009-01-06
|
* Support OS X by moving to gettimeofday(2) and adding poll compat from OpenSSH.Nicholas Marriott2008-08-28
|
* Missing time.h.Nicholas Marriott2008-06-22
|
* Freeze output when showing display line, fixes problems when no status line.Nicholas Marriott2008-06-20
|
* display-time option to set message display time.Nicholas Marriott2008-06-19
|
* Hide cursor with flag.Nicholas Marriott2008-06-19
|
* Command prompt for interactive commands.Nicholas Marriott2008-06-19
|
* Editable prompt. Not used for anything yet. More to come.Nicholas Marriott2008-06-19
|
* Show status messages without blocking the server.Nicholas Marriott2008-06-19
|
* Informational messages on window option changes.Nicholas Marriott2008-06-16
|
* New window options: force-width and force-height. This will force a window toNicholas Marriott2008-06-14
| | | | | | | | | an arbitrary width and height (0 for the default unlimited). This is neat for emacs which doesn't have a sensible way to force hard wrapping at 80 columns. Also, don't try to be clever and use clr_eol when redrawing the whole screen, it causes trouble since the redraw functions are used to draw the blank areas too.
* Clear clients with flag too.Nicholas Marriott2008-06-07
|
* Be more conservative about redrawing using flags.Nicholas Marriott2008-06-07
|
* Per-session configuration options.Nicholas Marriott2008-06-03
|
* Move -s and -c down a level so handling them is the responsibility of the ↵Nicholas Marriott2008-06-02
| | | | command (with some helper functions), rather than the top-level. This changes the action command syntax so that -s and -c must be after the command rather than before.
* Major reorganisation of screen handling.Nicholas Marriott2007-12-06
|
* Big internal reorganisation to move tty control into parent.Nicholas Marriott2007-11-27
|
* Reset before calling window_draw otherwise it'll have the wrong idea of the ↵Nicholas Marriott2007-11-24
| | | | current state (since it copies from screen).
* Don't stop until after everything else done.Nicholas Marriott2007-11-24
|
* Use screen_draw_* to write message, avoids leaving attribute changes around.Nicholas Marriott2007-11-24
|