#
8716c6a6 |
| 17-Feb-2014 |
nicm <nicm@openbsd.org> |
Don't crash when given a invalid colour, reported by Felix Rosencrantz, fix from Thomas Adam.
|
#
f3715830 |
| 14-Feb-2014 |
nicm <nicm@openbsd.org> |
Style nit - no space between function name and bracket.
|
#
a8c9f839 |
| 28-Jan-2014 |
nicm <nicm@openbsd.org> |
Allow replacing each of the many sets of separate foo-{fg,bg,attr} options with a single foo-style option. For example:
set -g status-fg yellow set -g status-bg red set -g status-attr bl
Allow replacing each of the many sets of separate foo-{fg,bg,attr} options with a single foo-style option. For example:
set -g status-fg yellow set -g status-bg red set -g status-attr blink
Becomes:
set -g status-style fg=yellow,bg=red,blink
The -a flag to set can be used to add to rather than replace a style. So:
set -g status-bg red
Becomes:
set -ag status-style bg=red
Currently this is fully backwards compatible (all *-{fg,bg,attr} options remain) but the plan is to deprecate them over time.
From Tiago Cunha.
show more ...
|
#
1fe07f53 |
| 10-Oct-2013 |
nicm <nicm@openbsd.org> |
Remove the barely-used and unnecessary command check() function.
|
#
40286825 |
| 05-Jul-2013 |
nicm <nicm@openbsd.org> |
Clarify error messages when setting options, from Thomas Adam.
|
#
17f4074a |
| 24-Mar-2013 |
nicm <nicm@openbsd.org> |
Add a -o option to set-option to prevent setting an option already set, from Thiago Padilha.
|
#
175d36cc |
| 24-Mar-2013 |
nicm <nicm@openbsd.org> |
Add a command queue to standardize and simplify commands that call other commands and allow a command to block execution of subsequent commands. This allows run-shell and if-shell to be synchronous w
Add a command queue to standardize and simplify commands that call other 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.
show more ...
|
#
9037b439 |
| 21-Mar-2013 |
nicm <nicm@openbsd.org> |
Add user options, prefixed with @. May be set to any arbitrary string.
|
#
991a85d0 |
| 21-Mar-2013 |
nicm <nicm@openbsd.org> |
Add -v to set and setw to show only option value.
|
#
a224d0d3 |
| 11-Jul-2012 |
nicm <nicm@openbsd.org> |
Make command exec functions return an enum rather than -1/0/1 values and add a new value to mean "leave client running but don't attach" to fix problems with using some commands in a command sequence
Make command exec functions return an enum rather than -1/0/1 values and add a new value to mean "leave client running but don't attach" to fix problems with using some commands in a command sequence. Most of the work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
show more ...
|
#
7d053cf9 |
| 10-Jul-2012 |
nicm <nicm@openbsd.org> |
xfree is not particularly helpful, remove it. From Thomas Adam.
|
#
c459a51c |
| 08-Apr-2012 |
nicm <nicm@openbsd.org> |
Do not fire name timer when automatic-rename is off, from Tim Ruehsen a while ago.
|
#
560f645d |
| 17-Mar-2012 |
nicm <nicm@openbsd.org> |
Add -q option to set-option to turn off info message, from marcel partap.
|
#
cd0b6533 |
| 25-Feb-2012 |
nicm <nicm@openbsd.org> |
Allow a single option to be specified to show-options to show just that option.
|
#
f193b8ed |
| 21-Jan-2012 |
nicm <nicm@openbsd.org> |
Drop the ability to have a list of keys in the prefix in favour of two separate options, prefix and prefix2. This simplifies the code and gets rid the data options type which was only used for this o
Drop the ability to have a list of keys in the prefix in favour of two separate options, prefix and prefix2. This simplifies the code and gets rid the data options type which was only used for this one option.
Also add a -2 flag to send-prefix to send the secondary prefix key, fixing a cause of minor irritation.
People who want three prefix keys are out of luck :-).
show more ...
|
#
2ff59e8b |
| 05-Apr-2011 |
nicm <nicm@openbsd.org> |
Add a flag to cmd_find_session so that attach-session can prefer unattached sessions when choosing the most recently used (if -t is not given). Suggested by claudio@.
|
#
c5150901 |
| 29-Mar-2011 |
nicm <nicm@openbsd.org> |
For convenience, work out what type of option is being set by name regardless of the -s or -w flags (these remain documented however).
|
#
acb55a81 |
| 29-Mar-2011 |
nicm <nicm@openbsd.org> |
Checking for particular options and redrawing is not necessary as we already redraw unconditionally.
|
#
edaa5fb5 |
| 29-Mar-2011 |
nicm <nicm@openbsd.org> |
Update an out-of-date and inaccurate comment.
|
#
fc92b485 |
| 26-Jan-2011 |
nicm <nicm@openbsd.org> |
Simplify the way jobs work and drop the persist type, so all jobs are fire-and-forget.
Status jobs now managed with two trees of output (new and old), rather than storing the output in the jobs them
Simplify the way jobs work and drop the persist type, so all jobs are fire-and-forget.
Status jobs now managed with two trees of output (new and old), rather than storing the output in the jobs themselves. When the status line is processed any jobs which don't appear in the new tree are started and the output from the old tree displayed. When a job finishes it updates the new tree with its output and that is used for any subsequent redraws. When the status interval expires, the new tree is moved to the old so that all jobs are run again.
This fixes the "#(echo %H:%M:%S)" problem which would lead to thousands of identical persistent jobs and high memory use (this can still be achieved by adding "sleep 30" but that is much less likely to happen by accident).
show more ...
|
#
71730f13 |
| 04-Jan-2011 |
nicm <nicm@openbsd.org> |
Now that parsing is common, merge some of the small, related commands together to use the same code.
Also add some arguments (such as -n and -p) to some commands to match existing commands.
|
#
8b73f353 |
| 04-Jan-2011 |
nicm <nicm@openbsd.org> |
argc will be 1 not 2 with no option value.
|
#
ca7befcc |
| 04-Jan-2011 |
nicm <nicm@openbsd.org> |
Clean up and simplify tmux command argument parsing.
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
Clean up and simplify tmux command argument parsing.
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.
show more ...
|
#
3affa6cb |
| 01-Jan-2011 |
nicm <nicm@openbsd.org> |
Move the user-visible parts of all options (names, types, limit, default values) together into one set of tables in options-table.c. Also clean up and simplify cmd-set-options.c and move a common pri
Move the user-visible parts of all options (names, types, limit, default 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.
show more ...
|
#
eca05f1f |
| 30-Dec-2010 |
nicm <nicm@openbsd.org> |
Change from a per-session stack of buffers to one global stack which is much more convenient and also simplifies lot of code. This renders copy-buffer useless and makes buffer-limit now a server opti
Change from a per-session stack of buffers to one global stack which is 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.
show more ...
|