aboutsummaryrefslogtreecommitdiff
path: root/client.c
Commit message (Collapse)AuthorAge
...
| * Use format_get_command() and some spacing tweaks.nicm2013-10-10
| |
| * We accidentally haven't been using $TMUX to work out the session for anicm2013-10-10
| | | | | | | | | | | | while and in fact it is less useful that using the client ttyname. So don't bother and don't pass it from the client. If we need it in future it is in c->environ.
| * Show session name in detached message. Requested by somebody a fewnicm2013-10-10
| | | | | | | | months ago who didn't bother testing it. But it works for me anyway.
| * Don't look at string[length - 1] if length == 0.nicm2013-10-10
| |
| * Alter how tmux handles the working directory to internally use filenicm2013-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | descriptors rather than strings. - Each session still has a current working directory. - New sessions still get their working directory from the client that created them or its attached session if any. - New windows are created by default in the session working directory. - The -c flag to new, neww, splitw allows the working directory to be overridden. - The -c flag to attach let's the session working directory be changed. - The default-path option has been removed. To get the equivalent to default-path '.', do: bind c neww -c $PWD To get the equivalent of default-path '~', do: bind c neww -c ~ This also changes the client identify protocol to be a set of messages rather than one as well as some other changes that should make it easier to make backwards-compatible protocol changes in future.
| * Similarly for MSG_COMMAND - allow full imsg limit not arbitrary 2048.nicm2013-10-10
| |
| * Remove CMD_SENDENVIRON.nicm2013-10-10
| |
* | We accidentally haven't been using $TMUX to work out the session for a whileNicholas Marriott2013-10-06
| | | | | | | | | | and in fact it is less useful that using the client ttyname. So don't bother and don't pass it from the client. If we need it in future it is in c->environ.
* | Show session name in detached message. Requested by somebody a few months agoNicholas Marriott2013-10-06
| | | | | | | | who didn't bother testing it. But it works for me anyway.
* | Don't look at string[length - 1] if length == 0.Nicholas Marriott2013-10-06
| |
* | Alter how tmux handles the working directory to internally use file descriptorsNicholas Marriott2013-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rather than strings. - Each session still has a current working directory. - New sessions still get their working directory from the client that created them or its attached session if any. - New windows are created by default in the session working directory. - The -c flag to new, neww, splitw allows the working directory to be overridden. - The -c flag to attach let's the session working directory be changed. - The default-path option has been removed. To get the equivalent to default-path '.', do: bind c neww -c $PWD To get the equivalent of default-path '', do: bind c neww -c '#{pane_current_path}' The equivalent of default-path '~' is left as an exercise for the reader. This also changes the client identify protocol to be a set of messages rather than one as well as some other changes that should make it easier to make backwards-compatible protocol changes in future.
* | Similarly for MSG_COMMAND - allow full imsg limit not arbitrary 2048.Nicholas Marriott2013-10-06
| |
* | Instead of fixed size buffers for some messages, send only the string length.Nicholas Marriott2013-10-06
| |
* | Merge IDENTIFY_* flags with CLIENT_* flags.Nicholas Marriott2013-10-06
| |
* | Remove CMD_SENDENVIRON.Nicholas Marriott2013-10-06
| |
* | Add support for Cgywin, apparently it is enough just to open the tty again inNicholas Marriott2013-07-12
| | | | | | | | | | | | the server and fd passing is not necessary. Needs some ifdefs unfortunately but no way around that and some of them can go next time we're willing to do a protocol bump. Patch from J Raynor jxraynor at gmail dot com.
* | Merge branch 'obsd-master'Thomas Adam2013-04-23
|\| | | | | | | Sync from OpenBSD.
| * Use lockf which is more portable than flock, from Dagobert Michelsen.Nicholas Marriott2013-04-22
| |
| * We ignore SIGWINCH until ready, so send a MSG_RESIZE immediately whenNicholas Marriott2013-03-25
| | | | | | | | becoming ready.
| * Rename session idx to session id throughout and add $ prefix to targetsNicholas Marriott2013-03-25
| | | | | | | | to use it, extended from a diff from George Nachman.
| * Send DSC 1000p at the beginning of a -CC client's lifetime and ST andNicholas Marriott2013-03-25
| | | | | | | | the end, from George Nachman.
| * Add a command queue to standardize and simplify commands that call otherNicholas Marriott2013-03-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commands and allow a command to block execution of subsequent commands. This allows run-shell and if-shell to be synchronous which has been much requested. Each client has a default command queue and commands are consumed one at a time from it. A command may suspend execution from the queue by returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example run-shell does this from the callback that is fired after the job is freed. When the command queue becomes empty, command clients are automatically exited (unless attaching). A callback is also fired - this is used for nested commands in, for example, if-shell which can block execution of the client's cmdq until a new cmdq becomes empty. Also merge all the old error/info/print functions together and lose the old curclient/cmdclient distinction - a cmdq is bound to one client (or none if in the configuration file), this is a command client if c->session is NULL otherwise an attached client.
| * No more lint means no more ARGSUSED.Nicholas Marriott2013-03-22
| |
| * If stdin in the client is enable immediately, tmux will eat anythingNicholas Marriott2012-09-03
| | | | | | | | | | | | | | sent to stdin before it is needed, which can be inconvenient (eg pasting commands). Instead, start with stdin disabled and reuse MSG_STDIN from server->client to mean that stdin should be enabled. Based on a diff from Chris Johnsen.
| * Change a log to fprintf that was missed last time around, from Tiago Cunha.Nicholas Marriott2012-08-27
| |
| * xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
| |
| * Actually write all the data to stdout/stderr.Nicholas Marriott2012-06-18
| |
| * Add a skeleton mode to tmux (called "control mode") that let's tmuxNicholas Marriott2012-06-18
| | | | | | | | | | | | | | commands be sent and output received on stdout. This can be used to integrate with other terminal emulators and should allow some other things to be made simpler later. More to come so doesn't do much yet and deliberately not documented.
| * Simplify logging and just fprintf(stderr, ...) for early errors.Nicholas Marriott2012-05-25
| |
| * Instead of passing stdin/stdout/stderr file descriptors over imsg andNicholas Marriott2012-05-21
| | | | | | | | | | | | | | | | | | | | | | handling them in the server, handle them in the client and pass buffers over imsg. This is much tidier for some upcoming changes and the performance hit isn't critical. The tty fd is still passed to the server as before. This bumps the tmux protocol version so new clients and old servers are incompatible.
| * Add missing prototype.Nicholas Marriott2012-04-23
| |
| * Use an enum for client exit reasons, from George Nachman.Nicholas Marriott2012-04-23
| |
| * Add sys/file.h.Nicholas Marriott2012-03-24
| |
| * Move MSG_IDENTIFY to the last sent by the client, this will be needed byNicholas Marriott2012-03-19
| | | | | | | | control clients and irrelevant for others.
| * Use a lock file and flock() to serialize server start, avoids problemsNicholas Marriott2012-03-09
| | | | | | | | | | when running a bunch of tmux from cron at the same time. Based on a diff from Tim Ruehsen.
| * Add a -P option to detach to HUP the client's parent process (usuallyNicholas Marriott2011-03-03
| | | | | | | | causing it to exit as well).
| * Move all calls to fcntl(...O_NONBLOCK) into a function and clear theNicholas Marriott2011-01-08
| | | | | | | | | | flag on the stdio file descriptors before closing them (fixes things like "tmux ls && cat").
| * Merge the before and after attach client code into one in client.cNicholas Marriott2010-10-18
| | | | | | | | (instead of two in tmux.c and client.c).
| * Trying to set FD_CLOEXEC on every fd is a lost cause, just useNicholas Marriott2010-10-16
| | | | | | | | closefrom() before exec.
| * Can't call event_del() without event_set() first - so call event_set()Nicholas Marriott2010-08-23
| | | | | | | | when setting up the client.
| * MSG_EXIT can now have a return code in the message, so check for thatNicholas Marriott2010-08-22
| | | | | | | | size as well. Stops the client fatal()ing on exit.
| * Send all three of stdin, stdout, stderr from the client to the server, so thatNicholas Marriott2010-06-28
| | | | | | | | | | | | | | | | commands can directly make use of them. This means that load-buffer and save-buffer can have "-" as the file to read from stdin or write to stdout. This is a protocol version bump so the tmux server will need to be restarted after upgrade (or an older client used).
| * Fix problems with window sizing seen by Raghavendra D Prabhu whenNicholas Marriott2010-06-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | starting tmux from .xinitrc. One of the very few things the server relies on the client for now is to pass through a message on SIGWINCH, but there is a condition where potentially a SIGWINCH may be lost during the transition from unattached (main.c) to attached (client.c). So trigger a size change immediately after the client installs its SIGWINCH handler. Also, when the terminal is resized, reset the scroll region and cursor position. Previously, we were clearing our saved idea of these, but in fact some terminals do not reset them on resize, so this caused problems during redraw. While here make a resize to the same size not cause a redraw and rename the tmux.out output log file to include the tmux PID.
| * This ioctl(TIOCGWINSZ) call is no longer necessary, the result is neverNicholas Marriott2010-06-05
| | | | | | | | used and the server now does it later on the tty fd directly.
| * Catch SIGHUP and terminate if running as a client. This prevents clientsJoel Sing2010-05-12
| | | | | | | | | | | | | | from being left hanging around when, for example, a SSH session is disconnected. ok nicm@
| * Put this back in with the initialisation in the right order.Nicholas Marriott2010-05-04
| |
| * Revert last change, it appears to be broken somehow.Nicholas Marriott2010-05-04
| |
| * Make signal handler setup/teardown two common functions instead of six,Nicholas Marriott2010-05-03
| | | | | | | | | | and reset SIGCHLD after fork to fix problems with some shells. From Romain Francois.
| * Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott2009-12-03
| | | | | | | | | | time now I've configured emacs to make them displayed in really annoying colours...
| * Remove a couple of unused arguments where possible, and add /* ARGSUSED */ toNicholas Marriott2009-11-26
| | | | | | | | the rest to reduce lint output.