summaryrefslogtreecommitdiffstats
path: root/server-fn.c
AgeCommit message (Collapse)Author
2009-09-05Only redraw all clients once when the backoff timer expires rather than everyNicholas Marriott
second all the time. Reported by Simon Nicolussi.
2009-09-02When incorrect passwords are entered, behave similarly to login(1) and backoffNicholas Marriott
for a bit. Based on a diff from martynas@.
2009-09-01Use "Password:" with no space for password prompts and don't display a *s forNicholas Marriott
the password, like pretty much everything else. From martynas@ with minor tweaks by me.
2009-08-31Add a new display-panes command, with two options (display-panes-colour andNicholas Marriott
display-panes-time), which displays a visual indication of the number of each pane.
2009-08-11Switch tmux to use imsg. This is the last major change to make theNicholas Marriott
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.
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-07If there is an error in the configuration file, don't just exit(1) as this canNicholas Marriott
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.
2009-07-29Rename struct hdrtype to msgtype which is a better name and can be used evenNicholas Marriott
when struct hdr disappears.
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-20Display the number of failed password attempts (if any) when the server isNicholas Marriott
locked. From Tom Doherty.
2009-07-17Make it so using kill-pane to destroy the last pane in a window destroys theNicholas Marriott
window instead of being an error.
2009-07-17Oops, it is always a good idea to get arguments the right way round.Nicholas Marriott
2009-07-17Memory could be leaked if a second prompt or message appeared while another wasNicholas Marriott
still present, so add a separate prompt free callback and make the _clear function responsible for calling it if necessary (rather than the individual prompt callbacks). Also make both messages and prompts clear any existing when a new is set. In addition, the screen could be modified while the prompt is there, restore the redraw-entire-screen behaviour on prompt clear; add a comment as a reminder.
2009-07-14Need time.h not sys/time.h for time(2).Nicholas Marriott
2009-07-10Add a default-terminal option to set the starting value of $TERM in newNicholas Marriott
windows. This is "screen" by default and must be either that or something closely related. This does makes it easier to customise it if necessary.
2009-06-30When unlocking the server, don't try to clear the prompt on clients without aNicholas Marriott
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).
2009-06-25Miscellaneous unused functions, including one which was basically aNicholas Marriott
duplicate. Found by lint.
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