aboutsummaryrefslogtreecommitdiff
path: root/cmd-set-option.c
Commit message (Collapse)AuthorAge
* Sync OpenBSD patchset 653:Tiago Cunha2010-02-26
| | | | | | Option to set the characters considered word separators in copy mode, from Micah Cowan.
* Sync OpenBSD patchset 642:Tiago Cunha2010-02-08
| | | | | | Add an option to disable the smcup/rmcup alternate screen behaviour inside tmux. From clemens fischer.
* Sync OpenBSD patchset 632:Tiago Cunha2010-02-05
| | | | | | Option to display the active pane in a different colour with the display-panes command. From Paul Hoffman, thanks.
* Sync OpenBSD patchset 597:Tiago Cunha2010-01-05
| | | | | | Options to set the colour of the pane borders, with different colours for the active pane.
* Sync OpenBSD patchset 587:Tiago Cunha2009-12-16
| | | | | | New server option, escape-time, to set the timeout used to detect if escapes are alone or part of a function key or meta sequence.
* Sync OpenBSD patchset 586:Tiago Cunha2009-12-12
| | | | | Use quiet variable, and add missing sentinel to options array.
* Sync OpenBSD patchset 585:Tiago Cunha2009-12-10
| | | | | | | | | Add "server options" which are server-wide and not bound to a session or 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.
* Sync OpenBSD patchset 581:Tiago Cunha2009-12-04
| | | | | | | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
* Sync OpenBSD patchset 580:Tiago Cunha2009-12-04
| | | | | | | | | Eliminate duplicate code and ease the passage for server-wide options by adding a -w flag to set-option and show-options and making setw and showw aliases to set -w and show -w. Note: setw and showw are still there, but now aliases for set -w and show -w.
* Sync OpenBSD patchset 546:Tiago Cunha2009-11-19
| | | | | | | | | | Add a per-client log of status line messages displayed while that client 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.
* Sync OpenBSD patchset 539:Tiago Cunha2009-11-14
| | | | | | Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the command entry structs and a couple of functions to check/set the flags.
* Sync OpenBSD patchset 475:Tiago Cunha2009-11-02
| | | | | | | | | Add a flag for jobs that shouldn't be freed after they've died and use it for status jobs, then only kill those jobs when status-left, status-right or set-titles-string is changed. Fixes problems with changing options from inside #().
* Sync OpenBSD patchset 374:Tiago Cunha2009-10-11
| | | | | | | | | | | | | | | | | | | Rather than running status-left, status-right and window title #() with popen immediately every redraw, queue them up and run them in the background, starting each once every status-interval. The actual status line uses the output from the last run. This brings several advantages: - tmux itself may be called from inside #() without causing the server to hang; - likewise, sleep or similar doesn't cause the server to block; - commands aren't run excessively often when redrawing; - commands shared by status-left and status-right, or used multiple times, will only be run once. run-shell and if-shell still use system()/popen() but will be changed over to use this too later.
* Sync OpenBSD patchset 373:Tiago Cunha2009-10-11
| | | | | | | | New option, mouse-select-pane. If on, the mouse may be used to select the current pane. Suggested by sthen@ and also by someone else ages ago who I have forgotten.
* Sync OpenBSD patchset 370:Tiago Cunha2009-10-11
| | | | | | | | | | | | | | | Support for individual session idle time locking. May be enabled by turning off the lock-server option (it is on by default). When this is off, each session locks when it has been idle for the lock-after-time setting. When on, the entire server locks when ALL sessions have been idle for their individual lock-after-time settings. This replaces one global-only option (lock-after-time) with another (lock-server), but the default behaviour is usually preferable so there don't seem to be many alternatives. Diff/idea largely from Thomas Adam, tweaked by me.
* Sync OpenBSD patchset 347:Tiago Cunha2009-09-23
| | | | | | | | | | | | | | | | Remove the internal tmux locking and instead detach each client and run the command specified by a new option "lock-command" (by default "lock -np") in each client. This means each terminal has to be unlocked individually but simplifies the code and allows the system password to be used to unlock. Note that the set-password command is gone, so it will need to be removed from configuration files, and the -U command line flag has been removed. This is the third protocol version change so again it is best to stop the tmux server before upgrading.
* Sync OpenBSD patchset 343:Tiago Cunha2009-09-22
| | | | | | | | | | Permit multiple prefix keys to be defined, separated by commas, for example: set -g prefix ^a,^b Any key in the list acts as the prefix. The send-prefix command always sends the first key in the list.
* Sync OpenBSD patchset 331:Tiago Cunha2009-09-19
| | | | | | | New option, set-titles-string, to allow the window title to be specified (as for status-left/right) if set-titles is on. Also only update the title when the status line is being redrawn.
* Sync OpenBSD patchset 305:Tiago Cunha2009-09-02
| | | | | | | | | | | | | | When using tmux as a login shell, there is currently no way to specify a shell to be used as a login shell inside tmux, so add a default-shell session option. This sets the shell invoked as a login shell when the default-command option is empty. The default option value is whichever of $SHELL, getpwuid(getuid())'s pw_shell or /bin/sh is valid first. Based on a diff from martynas@, changed by me to be a session option rather than a window option.
* Sync OpenBSD patchset 302:Tiago Cunha2009-08-31
| | | | | | | Add a new display-panes command, with two options (display-panes-colour and display-panes-time), which displays a visual indication of the number of each pane.
* Sync OpenBSD patchset 257:Tiago Cunha2009-08-16
| | | | | | Add a base-index session option to specify the first index checked when looking for an index for a new window.
* Sync from OpenBSD:Nicholas Marriott2009-08-11
| | | | | | | Add flags for 1+2 and 2 arguments to the generic target code, use it for cmd-set-environment/option/window-option and remove the generic options parsing.
* 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 229:Tiago Cunha2009-08-09
| | | | | | Options to set the colours and attributes for status-left/-right. From Thomas Adam, thanks.
* Sync OpenBSD patchset 219:Tiago Cunha2009-08-09
| | | | | | Add a -a flag to set-option and set-window-option to append to an existing string value, useful for terminal-overrides.
* Sync OpenBSD patchset 211:Tiago Cunha2009-08-09
| | | | | | | | | | Add a terminal-overrides session option allowing individual terminfo(5) entries to be overridden. The 88col/256col checks are now moved into the default setting and out of the code. Also remove a couple of old workarounds for xterm and rxvt which are no longer necessary (tmux can emulate them if missing).
* 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 147:Tiago Cunha2009-07-20
| | | | | | Add a status-justify option to allow the window list in the status line to be positioned at the left, centre, or right.
* Add three new session options: visual-activity, visual-bell, visual-content.Tiago Cunha2009-07-19
| | | | | | | | | | If these are enabled (and the monitor-activity, bell-action and monitor-content options are configurated appropriately), when activity, a bell, or content is detected, a message is shown. Also tidy up the bell/activity/content code in server.c slightly and fix a couple of errors.
* Having to update NSETOPTION/NSETWINDOWOPTION when adding new options is a bitNicholas Marriott2009-07-15
| | | | | | | annoying and it is only use for iterating, so use a sentinel to mark the end of each array instead. Different fix for a problem pointed out by Kalle Olavi Niemitalo.
* Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott2009-07-14
| | | | | | | | | | maintain and is only going to get worse as more are used. So instead, add a new uint64_t member to cmd_entry which is a bitmask of upper and lowercase options accepted by the command. This means new single character options can be used without the need to add it explicitly to the list.
* Add a default-terminal option to set the starting value of $TERM in newNicholas Marriott2009-07-12
| | | | | windows.
* Fix $Id$.Nicholas Marriott2009-07-08
|
* Rename the global options variables to be shorter and to make session optionsNicholas Marriott2009-07-08
| | | | | | clear. No functional change, getting this out of the way to make later options changes easier.
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* New session option, status-utf8, to control the interpretation of top-bit-setNicholas Marriott2009-06-25
| | | | | | characters in status-left and status-right (if on, they are treated as UTF-8; otherwise passed through).
* * New session flag "set-remain-on-exit" to set remain-on-exit flag for new ↵Nicholas Marriott2009-03-21
| | | | windows created in that session (like "remain-by-default" used to do). Not perfectly happy about this, but until I can think of a good way to introduce it generically (maybe a set of options in the session) this will do. Fixes SF request 2527847.
* Redo mode keys slightly more cleanly and apply them to command prompt ↵Nicholas Marriott2009-02-13
| | | | editing. vi or emacs mode is controlled by the session option status-keys.
* Set colour of window entry in status line based on window options.Nicholas Marriott2009-01-30
|
* Allow status, mode and message attributes to be changed by three new ↵Nicholas Marriott2009-01-27
| | | | | | | options: status-attr, mode-attr, message-attr. A comma-separataed list is accepted containing: bright, dim, underscore, blink, reverse, hidden, italics, for example: set -g status-attr bright,blink From Josh Elsasser, thanks!
* Raise some limits to INT_MAX, SHRT_MAX is too low.Nicholas Marriott2009-01-23
|
* Pass return code from _exec; allow command sequences to work from the ↵Nicholas Marriott2009-01-19
| | | | command line.
* Rework the prefix-time stuff. The option is now call repeat-time and ↵Nicholas Marriott2009-01-14
| | | | defaults to 500 ms. However, it only applies to a small subset of commands, currently: up-pane, down-pane, next-window, previous-window, resize-pane-up, resize-pane-down. These are the commands for which it is obviously useful, having it for everything else was just bloody annoying.
* Using the rigth option name would help...Nicholas Marriott2009-01-14
|
* prefix-time option to allow multiple commands without additional prefixes.Nicholas Marriott2009-01-12
|
* Server locking. set-password and lock-server commands, plus automatic locking.Nicholas Marriott2009-01-11
|
* Pick up cwd from environment,.Nicholas Marriott2009-01-10
|
* Trim spaces.Nicholas Marriott2009-01-10
|
* Some options tidying/code shrinkage. Also add -u option to unset non-global ↵Nicholas Marriott2009-01-07
| | | | options (allowing them to inherit), and some extra info.
* Import OpenBSD's getopt(3) to workaround broken glibc version.Nicholas Marriott2008-12-10
|