summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Ignore LC_ALL and LC_CTYPE if they are empty as well as unset.nicm2011-10-231-3/+3
|
* Reject $SHELL if it is not a full path.nicm2011-09-251-2/+4
|
* Two fixes by Micah Cowan: make mouse work properly beyond >127 on signednicm2011-03-041-2/+2
| | | | | char architectures and properly parse $TMUX by stopping the socket path at the first comma.
* Set $TMUX without the session when background jobs are run.nicm2011-01-231-37/+10
|
* Use TMPDIR if set, from Han Boetes.nicm2011-01-121-3/+6
|
* Move all calls to fcntl(...O_NONBLOCK) into a function and clear thenicm2011-01-081-8/+18
| | | | | flag on the stdio file descriptors before closing them (fixes things like "tmux ls && cat").
* Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262nicm2011-01-031-1/+2
| | | | | | | | | | and supports larger terminals than the older way. If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all UTF-8 terminals. The option defaults to on if LANG etc are set in the same manner as the utf8 option. With help and based on code from hsim at gmx.li.
* Move the user-visible parts of all options (names, types, limit, defaultnicm2011-01-011-109/+18
| | | | | | values) together into one set of tables in options-table.c. Also clean up and simplify cmd-set-options.c and move a common print function into option-table.c.
* Change from a per-session stack of buffers to one global stack which isnicm2010-12-301-2/+2
| | | | | | | much more convenient and also simplifies lot of code. This renders copy-buffer useless and makes buffer-limit now a server option. By Tiago Cunha.
* Add other-pane-height and other-pane-width options, allowing the widthnicm2010-12-191-1/+3
| | | | | or height of the smaller panes in the main-horizontal and main-vertical layouts to be set. Mostly from David Goodlad.
* In the built-in layouts, distribute the panes more evenly. Set thenicm2010-12-081-2/+2
| | | | default value of main-pane-width to 80, rather than 81. By Micah Cowan.
* Add an option to alert (monitor) for silence (lack of activity) in anicm2010-12-061-1/+3
| | | | window. From Thomas Adam.
* If VISUAL or EDITOR contains "vi", configure mode-keys and status-keysnicm2010-11-291-5/+13
| | | | | | | to vi. Based on a diff from martynas@, previously requested by a couple of other people.
* Add XAUTHORITY to update-environment, requested by Andreas Kloeckner.nicm2010-11-111-3/+6
|
* Merge the before and after attach client code into one in client.cnicm2010-10-181-232/+44
| | | | (instead of two in tmux.c and client.c).
* Make stdio blocking again before calling shell command with -c.nicm2010-10-161-1/+9
|
* Trying to set FD_CLOEXEC on every fd is a lost cause, just usenicm2010-10-161-1/+3
| | | | closefrom() before exec.
* Use an explicit event rather than event_once for the main event so itnicm2010-10-141-4/+9
| | | | can be removed when the client becomes ready.
* Two new options:nicm2010-09-261-1/+3
| | | | | | | | | | | | - server option "exit-unattached" makes the server exit when no clients are attached, even if sessions are present; - session option "destroy-unattached" destroys a session once no clients are attached to it. These are useful for preventing tmux remaining in the background where it is undesirable and when using tmux as a login shell to keep a limit on new sessions.
* Do not call event_del() for signals after fork(), just use sigaction()nicm2010-08-191-3/+3
| | | | | directly instead - calling libevent functions after fork() w/o event_reinit() is a bad idea, even if in this case it was harmless.
* switch back to kqueue for now, since (a) kqueue has been fixed to dealderaadt2010-08-041-4/+1
| | | | | | with strange devices and (b) since there appears to be a bull in the poll code in libevent as well... requested by nicm who is away
* kqueue(2) is currently broken when used with /dev/null and a few othernicm2010-07-241-1/+4
| | | | | | | | devices. An upcoming fix for some problems with the client stdout/stderr handling relies on it working, so make tmux force libevent to use poll(2) via EVENT_NOKQUEUE, until we have fixed kqueue.
* Return the command client return code with MSG_EXIT now that MSG_ERROR andnicm2010-07-111-7/+9
| | | | | | | MSG_PRINT are unused. New clients should be compatible with old tmux servers but vice versa may print an error.
* Send all three of stdin, stdout, stderr from the client to the server, so thatnicm2010-06-281-13/+1
| | | | | | | | 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).
* Store the current working directory in the session, change the default-pathnicm2010-06-271-11/+3
| | | | | option to default to empty and make that mean that the stored session CWD is used.
* New option, detach-on-destroy, to set what happens to a client when the sessionnicm2010-06-271-2/+3
| | | | | it is attached to is destroyed. If on (the default), it is detached; if off, it is switched to the most recently active session.
* Setting the cmdlist pointer in the bind-key to NULL to prevent it being freednicm2010-06-261-2/+2
| | | | | | | | | | | after the command is executing is bogus because it may still be needed if the same command is going to be executed again (for example if you "bind-key a bind-key b ..."). Making a copy is hard, so instead add a reference count to the cmd_list. While here, also print bind-key -n and the rest of the flags properly. Fixes problem reported by mcbride@.
* Colour+attribute options for status line alerts, from Alex Alexander.nicm2010-05-141-1/+4
|
* Put this back in with the initialisation in the right order.nicm2010-05-041-64/+13
|
* Revert last change, it appears to be broken somehow.nicm2010-05-041-17/+64
|
* Make signal handler setup/teardown two common functions instead of six,nicm2010-05-031-64/+17
| | | | | and reset SIGCHLD after fork to fix problems with some shells. From Romain Francois.
* Make the active pane border have a green foreground instead ofnicm2010-04-281-3/+3
| | | | background by default.
* Catch SIGCHLD to avoid a zombie, from patrick keshishian.nicm2010-04-181-1/+10
|
* Option to set the characters considered word separators in copy mode, fromnicm2010-02-221-1/+2
| | | | Micah Cowan.
* Add an option to disable the smcup/rmcup alternate screen behaviour insidenicm2010-02-081-1/+2
| | | | tmux. From clemens fischer.
* Change nested check to compare server socket path rather than just assumingnicm2010-02-061-2/+17
| | | | that if $TMUX is set it is nested. From Micah Cowan.
* Clean up $TMUX parsing, from Micah Cowan, tweaked by me.nicm2010-02-061-18/+32
|
* Instead of bailing out on the first configuration file error, carry on,nicm2010-02-061-7/+2
| | | | | collecting all the errors, then start with the active window in more mode displaying them.
* Read the path from $TMUX if it is present and -L and -S are not given. Based onnicm2010-02-041-7/+24
| | | | a diff from Micah Cowan.
* Option to display the active pane in a different colour with the display-panesnicm2010-02-041-1/+2
| | | | command. From Paul Hoffman, thanks.
* Options to set the colour of the pane borders, with different colours for thenicm2010-01-031-1/+5
| | | | active pane.
* New server option, escape-time, to set the timeout used to detect if escapesnicm2009-12-141-1/+2
| | | | are alone or part of a function key or meta sequence.
* Use quiet variable, and add missing sentinel to options array.nicm2009-12-111-3/+3
|
* Add "server options" which are server-wide and not bound to a session ornicm2009-12-101-5/+9
| | | | | | | window. Set and displayed with "set -s" and "show -s". Currently the only option is "quiet" (like command-line -q, allowing it to be set from .tmux.conf), but others will come along.
* Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastnicm2009-12-031-12/+12
| | | | | 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 */ tonicm2009-11-261-1/+3
| | | | the rest to reduce lint output.
* Two new options, window-status-format and window-status-current-format, whichnicm2009-11-191-1/+3
| | | | | | | | allow the format of each window in the status line window list to be controlled using similar # sequences as status-left/right. This diff also moves part of the way towards UTF-8 support in window names but it isn't quite there yet.
* Revert to xterm-keys off by default. It was on as an experiment to see if thenicm2009-11-191-2/+2
| | | | | option could be removed, but it affects vi, so we have to keep the option, and a conservative default is better.
* Add a per-client log of status line messages displayed while that clientnicm2009-11-181-1/+2
| | | | | | | | exists. A new message-limit session option sets the maximum number of entries and a command, show-messages, shows the log (bound to ~ by default). This (and prompt history) might be better as a single global log but until there are global options it is easier for them to be per client.
* There is no real standard for modifier plus function keys. Previously, tmuxnicm2009-11-101-2/+2
| | | | | | | | output some from rxvt but in other ways did the same as xterm or other terminals, but this is a bit inconsistent. xterm's method is fairly sensible and we already support it (xterm-keys), so enable it by default instead.