summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-set-window-option.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Now that parsing is common, merge some of the small, related commandsnicm2011-01-041-46/+0
| | | | | | | together to use the same code. Also add some arguments (such as -n and -p) to some commands to match existing commands.
* Clean up and simplify tmux command argument parsing.nicm2011-01-041-8/+7
| | | | | | | | | | | | | | | | | | | Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.
* Eliminate duplicate code and ease the passage for server-wide options by addingnicm2009-12-031-161/+4
| | | | | | | 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.
* Two new options, window-status-format and window-status-current-format, whichnicm2009-11-191-1/+35
| | | | | | | | 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.
* Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in thenicm2009-11-131-6/+6
| | | | command entry structs and a couple of functions to check/set the flags.
* Add a simple synchronize-panes window option: when set, all input to any panenicm2009-10-091-1/+2
| | | | | that is part of the window is also sent to all other panes in the same window. Suggested by several, most recently Tomasz Pajor.
* Permit multiple prefix keys to be defined, separated by commas, for example:nicm2009-09-221-3/+3
| | | | | | | 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.
* Add flags for 1+2 and 2 arguments to the generic target code, use it fornicm2009-08-111-20/+20
| | | | | cmd-set-environment/option/window-option and remove the generic options parsing.
* Add a -a flag to set-option and set-window-option to append to an existingnicm2009-08-041-4/+5
| | | | string value, useful for terminal-overrides.
* Add a mode-mouse option to prevent tmux taking over the mouse in choice or copynicm2009-07-301-1/+2
| | | | modes.
* Make all messages sent between the client and server fixed size.nicm2009-07-261-3/+1
| | | | | | | | | | | | | | 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.
* New options, window-status-current-{fg,bg,attr}, to set the fg, bg andnicm2009-07-201-1/+4
| | | | | attributes with which the current window is shown in the status line. From Johan Friis, thanks.
* Having to update NSETOPTION/NSETWINDOWOPTION when adding new options is a bitnicm2009-07-151-7/+7
| | | | | | 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.
* Add main-pane-height to the options list (was missed before).nicm2009-07-141-1/+2
|
* Having fixed flags for single-character getopt options is a bit hard tonicm2009-07-131-5/+5
| | | | | | | | | 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.
* Rename the global options variables to be shorter and to make session optionsnicm2009-07-071-2/+2
| | | | | clear. No functional change, getting this out of the way to make later options changes easier.
* Unused prototypes. Found by lint, no binary change.nicm2009-06-251-6/+1
|
* Import tmux, a terminal multiplexor allowing (among other things) a singlenicm2009-06-011-0/+170
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