aboutsummaryrefslogtreecommitdiff
path: root/client.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 230:Tiago Cunha2009-08-09
| | | | | Tidy function a little by using a temporary variable.
* Sync OpenBSD patchset 202:Tiago Cunha2009-07-30
| | | | | | | | | | | | There aren't many client message types or code to handle them so get rid of the lookup table and use a switch, merge the tiny handler functions into it, and move the whole lot to client.c. Also change client_msg_dispatch to consume as many messages as possible and move the call to it to the right place so it checks for signals afterwards. Prompted by suggestions from eric@.
* Sync OpenBSD patchset 201:Tiago Cunha2009-07-30
| | | | | | Tell the server when the client gets SIGTERM so it can clean up the terminal properly, rather than just exiting.
* 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.
* Sync OpenBSD patchset 172:Tiago Cunha2009-07-23
| | | | | | Tidy client message return slightly: convert flags into an enum, and merge error string into struct client_ctx as well.
* Sync OpenBSD patchset 166:Tiago Cunha2009-07-23
| | | | | | Pass a set of flags into client_init rather than just a start_server variable. Only one flag now but more to come later.
* $Id$.Nicholas Marriott2009-07-01
|
* Status line fixes: don't truncate status-right now the length calculation isNicholas Marriott2009-06-26
| | | | | | done for UTF-8, limit to the maximum length correctly when printing, and always print a space even if the left string is longer than the width available.
* Remove some dead assignments, found by sthen with clang.no_author2009-06-26
|
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* Call setproctitle earlier in the client, and include the socket name. Makes itNicholas Marriott2009-06-25
| | | | | easier to match client to server in ps/pgrep when using several servers.
* Rename all feature flags to HAVE_* and move out of makefiles into a configureNicholas Marriott2009-05-13
| | | | | | | | | script which must be run before building. Still two makefiles but they are a hell of a lot simpler. HAVE_* also will make it easier to move to $buildsystem if necessary later.
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* FD_CLOEXEC more fds. Still one I can't find...Nicholas Marriott2009-03-31
|
* Not const.Nicholas Marriott2009-03-27
|
* Use lstat. No change yet due to realpath call in tmux.c.Nicholas Marriott2009-03-27
|
* Continue process if suspended.Nicholas Marriott2009-02-08
|
* Handle SIGTERM (and kill-server which uses it), a bit more neatly - tidy upNicholas Marriott2009-01-21
| | | | | properly and print a nicer message. Same effect though :-)
* Start the first client with a special socketpair so it is already known to theNicholas Marriott2009-01-19
| | | | | | | | server rather than playing silly games to get them synchronised before doing anything. Change attach-session to start the server.
* suspend-client command and suspend client when ^Z key binding is used.Nicholas Marriott2009-01-18
|
* Increment retries.Nicholas Marriott2009-01-15
|
* Retry properly when failed to connect.Nicholas Marriott2009-01-15
|
* Server locking. set-password and lock-server commands, plus automatic locking.Nicholas Marriott2009-01-11
|
* Pick up cwd from environment,.Nicholas Marriott2009-01-10
|
* Initial UTF-8 support.Nicholas Marriott2008-09-09
|
* Protocol versioning, version is checked on identify message.Nicholas Marriott2008-07-01
|
* IRIX fixes thanks to Elias Pipping.Nicholas Marriott2008-06-23
|
* Stupid ncurses.Nicholas Marriott2008-06-19
|
* More Solaris stuff. Use ttyname, use ncurses,h.Nicholas Marriott2008-06-18
|
* Start of Solaris port.Nicholas Marriott2008-06-18
|
* Use a socketpair to synchronise server startup.Nicholas Marriott2008-06-07
|
* Last bits of basic configuration file. By default in ~/.tmux.conf or ↵Nicholas Marriott2008-06-02
| | | | specified with -f. Just a list of tmux commands executed when the server is started and before and any session/window is created.
* Prepare TERM in buffer before sending; this allows size to be part of cmd ↵Nicholas Marriott2008-06-01
| | | | and prevents it being split. This is the only place this happens so remove it from todo.
* Don't hang when window closes early; also add lots more debugging.Nicholas Marriott2008-05-31
|
* Major reorganisation of screen handling.Nicholas Marriott2007-12-06
|
* Better error messages with no server.Nicholas Marriott2007-12-01
|
* Big internal reorganisation to move tty control into parent.Nicholas Marriott2007-11-27
|
* Add ^A && ^E to copy mode. Also use STDIN instead of STDOUT in a couple of ↵Nicholas Marriott2007-11-26
| | | | places.
* realpath the socket path; also sprinkle some const.Nicholas Marriott2007-11-12
|
* Check for required term capabilities on start.Nicholas Marriott2007-11-08
|
* Make it build/run on Linux.Nicholas Marriott2007-10-31
|
* Close memory leaks.Nicholas Marriott2007-10-24
|
* Tweak a couple of variable names.Nicholas Marriott2007-10-23
|
* List client command.Nicholas Marriott2007-10-23
|
* Return 0 on lost server so pkill works okay if scripted.Nicholas Marriott2007-10-22
|
* Clean up pause/exit mess with flags.Nicholas Marriott2007-10-05
|
* Incomplete resize support.Nicholas Marriott2007-10-04
|