summaryrefslogtreecommitdiffstats
path: root/client.c
AgeCommit message (Collapse)Author
2009-08-08Infrastructure and commands to manage the environment for processes startedNicholas Marriott
within tmux. There is a global environment, copied from the external environment when the server is started and each sesssion 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.
2009-08-08Tidy function a little by using a temporary variable.Nicholas Marriott
2009-07-30There aren't many client message types or code to handle them so get rid of theNicholas Marriott
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@.
2009-07-30Tell the server when the client gets SIGTERM so it can clean up the terminalNicholas Marriott
properly, rather than just exiting.
2009-07-26Make all messages sent between the client and server fixed size.Nicholas Marriott
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.
2009-07-23None of the server message functions return anything but 0, so make them allNicholas Marriott
void. Also remove a leftover variable in client.c.
2009-07-23Tidy client message return slightly: convert flags into an enum, and mergeNicholas Marriott
error string into struct client_ctx as well.
2009-07-22Pass a set of flags into client_init rather than just a start_serverNicholas Marriott
variable. Only one flag now but more to come later.
2009-06-25Remove some dead assignments, found by sthen with clang.Nicholas Marriott
2009-06-05Call setproctitle earlier in the client, and include the socket name. Makes itNicholas Marriott
easier to match client to server in ps/pgrep when using several servers.
2009-06-01Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott
terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti