aboutsummaryrefslogtreecommitdiff
path: root/server-msg.c
Commit message (Collapse)AuthorAge
* Sync OpenBSD patchset 289:Tiago Cunha2009-08-24
| | | | | | The cursession member in struct cmd_ctx is always either curclient->session or NULL when curclient is also NULL, so just eliminate it.
* Sync OpenBSD patchset 251:Tiago Cunha2009-08-14
| | | | | | | If the client passes zero for the window size in the identify message (which it can, for example on serial terminals), reset it to 80x25, same as for resize messages. Problem reported by kettenis@.
* Sync OpenBSD patchset 246:Tiago Cunha2009-08-14
| | | | | | | | | | | Have the client pass its stdin fd to the server when identifying itself and have the server use that rather than reopening the tty. If the fd isn't given, use the old behaviour (so no need for a version change). This allows tmux to be used as the shell, so also change so that when working out the command to execute if default-command is empty (the default), tmux will try not execute itself.
* Sync OpenBSD patchset 244:Tiago Cunha2009-08-14
| | | | | | Drop the no_stop argument to tty_close and tty_free in favour of a flag in the tty struct.
* 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 203:Tiago Cunha2009-07-30
| | | | | | Similar changes for server_msg_dispatch: use a switch instead of a lookup table and merge smaller functions inline.
* 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 173:Tiago Cunha2009-07-23
| | | | | | | | None of the server message functions return anything but 0, so make them all void. Also remove a leftover variable in client.c.
* Fix $Id$.Nicholas Marriott2009-07-08
|
* Handle empty or unset TERM correctly; also fix a fatal() message while here.Nicholas Marriott2009-07-08
|
* When sending a "protocol mismatch" error message, tell the client to exitNicholas Marriott2009-07-08
| | | | | afterwards, otherwise it hangs.
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* Terminate cwd buffer before running xstrdup on it.Nicholas Marriott2009-06-25
|
* If the prompt is hidden or a password is sent with -U, zero it before freeingNicholas Marriott2009-06-25
| | | | | it.
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* Support for 88 colour terminals.Nicholas Marriott2009-03-07
|
* strdup() not necessary here.Nicholas Marriott2009-02-16
|
* Move sx,sy into tty rather than client.Nicholas Marriott2009-02-11
|
* Exit properly when bas password.Nicholas Marriott2009-01-28
|
* Die properly with warning.Nicholas Marriott2009-01-20
|
* Pass return code from _exec; allow command sequences to work from the ↵Nicholas Marriott2009-01-19
| | | | command line.
* Reset tty saved data on resize.Nicholas Marriott2009-01-18
|
* suspend-client command and suspend client when ^Z key binding is used.Nicholas Marriott2009-01-18
|
* Window splitting. Two vertical panes fixed 50% each. This is a huge diff, ↵Nicholas Marriott2009-01-11
| | | | still a couple of bugs (notably heap corruption somewhere causing segfault on exit).
* Server locking. set-password and lock-server commands, plus automatic locking.Nicholas Marriott2009-01-11
|
* Pick up cwd from environment,.Nicholas Marriott2009-01-10
|
* Minor tidying; remove some old debugging messages.Nicholas Marriott2009-01-07
|
* Introduce nitems() and use it; use bsearch.Nicholas Marriott2009-01-07
|
* Trim.Nicholas Marriott2008-09-26
|
* Internal screen data rewrite for better 256 colour/UTF-8 support.Nicholas Marriott2008-09-25
|
* Initial UTF-8 support.Nicholas Marriott2008-09-09
|
* Protocol versioning, version is checked on identify message.Nicholas Marriott2008-07-01
|
* Lose unnecessary flags on context.Nicholas Marriott2008-06-21
|
* Trimify.Nicholas Marriott2008-06-18
|
* Informational messages on window option changes.Nicholas Marriott2008-06-16
|
* Clear msgdata where it is unavailable.Nicholas Marriott2008-06-02
|
* 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.
* Sync with Makefile.Nicholas Marriott2007-12-13
|
* Don't free twice when exiting.Nicholas Marriott2007-12-12
|
* Only close the tty during exit process and leave freeing it to when the ↵Nicholas Marriott2007-12-06
| | | | socket is lost.
* Major reorganisation of screen handling.Nicholas Marriott2007-12-06
|
* Three-stage exit process so that [] message printing works on detach etc.Nicholas Marriott2007-11-27
|
* Big internal reorganisation to move tty control into parent.Nicholas Marriott2007-11-27
|
* Always redraw requesting client on resize.Nicholas Marriott2007-11-24
|
* Check for NULL clients.Nicholas Marriott2007-11-21
|
* The CLIENT_HOLD hack can go bye-bye.Nicholas Marriott2007-11-21
|
* Initial history support.Nicholas Marriott2007-11-21
|
* Fix a format string bug and sprinkle some printflikes.Nicholas Marriott2007-11-20
|