#
1.34 |
|
21-Aug-2021 |
nicm |
Add args parsing callback for some future work, currently unused.
|
Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
|
#
1.33 |
|
13-Apr-2020 |
nicm |
Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make its use more clearly defined and preparation for some future work).
|
#
1.32 |
|
13-Apr-2020 |
nicm |
Make struct cmd local to cmd.c and move it out of tmux.h.
|
#
1.31 |
|
12-Apr-2020 |
nicm |
Add a -f filter argument to the list commands like choose-tree.
|
Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.30 |
|
18-Oct-2018 |
nicm |
Support for windows larger than visible on the attached client. This has been a limitation for a long time.
There are two new options, window-size and default-size, and a new command, resize-window. The force-width and force-height options and the session_width and session_height formats have been removed.
The new window-size option tells tmux how to work out the size of windows: largest means it picks the size of the largest session, smallest the smallest session (similar to the old behaviour) and manual means that it does not automatically resize windows. The default is currently largest but this may change. aggressive-resize modifies the choice of session for largest and smallest as it did before.
If a window is in a session attached to a client that is too small, only part of the window is shown. tmux attempts to keep the cursor visible, so the part of the window displayed is changed as the cursor moves (with a small delay, to try and avoid excess redrawing when applications redraw status lines or similar that are not currently visible). The offset of the visible portion of the window is shown in status-right.
Drawing windows which are larger than the client is not as efficient as those which fit, particularly when the cursor moves, so it is recommended to avoid using this on slow machines or networks (set window-size to smallest or manual).
The resize-window command can be used to resize a window manually. If it is used, the window-size option is automatically set to manual for the window (undo this with "setw -u window-size"). resize-window works in a similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and -A flags. -a sets the window to the size of the smallest client (what it would be if window-size was smallest) and -A the largest.
For the same behaviour as force-width or force-height, use resize-window -x or -y, and "setw -u window-size" to revert to automatic sizing..
If the global window-size option is set to manual, the default-size option is used for new windows. If -x or -y is used with new-session, that sets the default-size option for the new session.
The maximum size of a window is 10000x10000. But expect applications to complain and much higher memory use if making a window excessively big. The minimum size is the size required for the current layout including borders.
The refresh-client command can be used to pan around a window, -U -D -L -R moves up, down, left or right and -c returns to automatic cursor tracking. The position is reset when the current window is changed.
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.29 |
|
01-May-2017 |
nicm |
In order that people can use formats like #D in #() in the status line and not have to wait for an update when they change pane, we allow commands to run more than once a second if the expanded form changes. Unfortunately this can mean them being run far too often (pretty much continually) when multiple clients exist, because some formats (including #D) will always differ between clients.
To avoid this, give each client its own tree of jobs which means that the same command will be different instances for each client - similar to how we have the tag to separate commands for different panes.
GitHub issue 889; test case reported by Paul Johnson.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.28 |
|
03-Feb-2017 |
nicm |
Add a window or pane id "tag" to each format tree and use it to separate jobs, this means that if the same job is used for different windows or panes (for example in pane-border-format), it will be run separately for each pane.
|
#
1.27 |
|
16-Oct-2016 |
nicm |
Mass rename struct cmd_q to struct cmdq_item and related.
|
#
1.26 |
|
14-Oct-2016 |
nicm |
Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling.
|
#
1.25 |
|
10-Oct-2016 |
nicm |
Add static in cmd-* and fix a few other nits.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.24 |
|
19-Jan-2016 |
nicm |
I no longer use my SourceForge address so replace it.
|
#
1.23 |
|
13-Dec-2015 |
nicm |
Use member names in cmd_entry definitions so I stop getting confused about the order.
|
#
1.22 |
|
11-Dec-2015 |
nicm |
Add cmdq as an argument to format_create and add a format for the command name (will also be used for more later).
|
#
1.21 |
|
08-Dec-2015 |
nicm |
Remove format_create_flags and just pass flags to format_create.
|
#
1.20 |
|
25-Oct-2015 |
nicm |
Extend the modifiers allowed before formats: as well as the existing #{=10:...} length limit, add #{t:...} to convert a time_t format to a string, #{b:...} for basename and #{d:...} for dirname. Remove all the foo_string time formats as they can now be replaced by "t:", for example #{window_activity_string} becomes #{t:window_activity}.
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.19 |
|
05-Feb-2015 |
nicm |
Wrap all the individual format_* calls in a single format_defaults functions.
|
#
1.18 |
|
20-Oct-2014 |
nicm |
Move template defines back into .c files.
|
#
1.17 |
|
20-Oct-2014 |
nicm |
Instead of setting up the default keys by building the key struct directly with a helper function in the cmd_entry, include a table of bind-key commands and pass them through the command parser and a temporary cmd_q.
As well as being smaller, this will allow default bindings to be command sequences which will probably be needed soon.
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.16 |
|
10-Oct-2013 |
nicm |
Remove the barely-used and unnecessary command check() function.
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.15 |
|
24-Mar-2013 |
nicm |
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.
|
Revision tags: OPENBSD_5_3_BASE
|
#
1.14 |
|
14-Aug-2012 |
nicm |
Use a separate define for each default format template and strip clutter from the choose-tree defaults.
|
Revision tags: OPENBSD_5_2_BASE
|
#
1.13 |
|
11-Jul-2012 |
nicm |
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.
|
#
1.12 |
|
10-Jul-2012 |
nicm |
xfree is not particularly helpful, remove it. From Thomas Adam.
|
#
1.11 |
|
22-May-2012 |
nicm |
Switch all of the various choose- and list- commands over to the format infrastructure, from Thomas Adam.
|
Revision tags: OPENBSD_5_1_BASE
|
#
1.10 |
|
26-Aug-2011 |
nicm |
Add initial framework for more powerful formatting of command output and use it for list-{panes,windows,sessions}. This allows more descriptive replacements (such as #{session_name}) and conditionals.
Later this will be used for status_replace and list-keys and other places.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
|
#
1.9 |
|
04-Jan-2011 |
nicm |
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.
|
#
1.8 |
|
21-Dec-2010 |
nicm |
Store sessions in an RB tree by name rather than a list, this is tidier and allows them to easily be shown sorted in various lists (list-sessions/choose-sessions).
Keep a session index which is used in a couple of places internally but make it an ever-increasing number rather than filling in gaps with new sessions.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.7 |
|
26-Nov-2009 |
nicm |
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
|
#
1.6 |
|
13-Nov-2009 |
nicm |
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.
|
#
1.5 |
|
03-Nov-2009 |
nicm |
Change session and client activity and creation time members to have more meaningful names.
Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session.
|
#
1.4 |
|
10-Oct-2009 |
nicm |
Add "grouped sessions" which have independent name, options, current window and so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session.
Had this around for a while, tested by a couple of people.
|
#
1.3 |
|
26-Jul-2009 |
nicm |
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.
|
#
1.2 |
|
13-Jul-2009 |
nicm |
Having fixed flags for single-character getopt options is a bit hard to 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.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.1 |
|
01-Jun-2009 |
nicm |
Import tmux, a terminal multiplexor allowing (among other things) a single 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
|
#
1.33 |
|
13-Apr-2020 |
nicm |
Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make its use more clearly defined and preparation for some future work).
|
#
1.32 |
|
13-Apr-2020 |
nicm |
Make struct cmd local to cmd.c and move it out of tmux.h.
|
#
1.31 |
|
12-Apr-2020 |
nicm |
Add a -f filter argument to the list commands like choose-tree.
|
Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.30 |
|
18-Oct-2018 |
nicm |
Support for windows larger than visible on the attached client. This has been a limitation for a long time.
There are two new options, window-size and default-size, and a new command, resize-window. The force-width and force-height options and the session_width and session_height formats have been removed.
The new window-size option tells tmux how to work out the size of windows: largest means it picks the size of the largest session, smallest the smallest session (similar to the old behaviour) and manual means that it does not automatically resize windows. The default is currently largest but this may change. aggressive-resize modifies the choice of session for largest and smallest as it did before.
If a window is in a session attached to a client that is too small, only part of the window is shown. tmux attempts to keep the cursor visible, so the part of the window displayed is changed as the cursor moves (with a small delay, to try and avoid excess redrawing when applications redraw status lines or similar that are not currently visible). The offset of the visible portion of the window is shown in status-right.
Drawing windows which are larger than the client is not as efficient as those which fit, particularly when the cursor moves, so it is recommended to avoid using this on slow machines or networks (set window-size to smallest or manual).
The resize-window command can be used to resize a window manually. If it is used, the window-size option is automatically set to manual for the window (undo this with "setw -u window-size"). resize-window works in a similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and -A flags. -a sets the window to the size of the smallest client (what it would be if window-size was smallest) and -A the largest.
For the same behaviour as force-width or force-height, use resize-window -x or -y, and "setw -u window-size" to revert to automatic sizing..
If the global window-size option is set to manual, the default-size option is used for new windows. If -x or -y is used with new-session, that sets the default-size option for the new session.
The maximum size of a window is 10000x10000. But expect applications to complain and much higher memory use if making a window excessively big. The minimum size is the size required for the current layout including borders.
The refresh-client command can be used to pan around a window, -U -D -L -R moves up, down, left or right and -c returns to automatic cursor tracking. The position is reset when the current window is changed.
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.29 |
|
01-May-2017 |
nicm |
In order that people can use formats like #D in #() in the status line and not have to wait for an update when they change pane, we allow commands to run more than once a second if the expanded form changes. Unfortunately this can mean them being run far too often (pretty much continually) when multiple clients exist, because some formats (including #D) will always differ between clients.
To avoid this, give each client its own tree of jobs which means that the same command will be different instances for each client - similar to how we have the tag to separate commands for different panes.
GitHub issue 889; test case reported by Paul Johnson.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.28 |
|
03-Feb-2017 |
nicm |
Add a window or pane id "tag" to each format tree and use it to separate jobs, this means that if the same job is used for different windows or panes (for example in pane-border-format), it will be run separately for each pane.
|
#
1.27 |
|
16-Oct-2016 |
nicm |
Mass rename struct cmd_q to struct cmdq_item and related.
|
#
1.26 |
|
14-Oct-2016 |
nicm |
Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling.
|
#
1.25 |
|
10-Oct-2016 |
nicm |
Add static in cmd-* and fix a few other nits.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.24 |
|
19-Jan-2016 |
nicm |
I no longer use my SourceForge address so replace it.
|
#
1.23 |
|
13-Dec-2015 |
nicm |
Use member names in cmd_entry definitions so I stop getting confused about the order.
|
#
1.22 |
|
11-Dec-2015 |
nicm |
Add cmdq as an argument to format_create and add a format for the command name (will also be used for more later).
|
#
1.21 |
|
08-Dec-2015 |
nicm |
Remove format_create_flags and just pass flags to format_create.
|
#
1.20 |
|
25-Oct-2015 |
nicm |
Extend the modifiers allowed before formats: as well as the existing #{=10:...} length limit, add #{t:...} to convert a time_t format to a string, #{b:...} for basename and #{d:...} for dirname. Remove all the foo_string time formats as they can now be replaced by "t:", for example #{window_activity_string} becomes #{t:window_activity}.
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.19 |
|
05-Feb-2015 |
nicm |
Wrap all the individual format_* calls in a single format_defaults functions.
|
#
1.18 |
|
20-Oct-2014 |
nicm |
Move template defines back into .c files.
|
#
1.17 |
|
20-Oct-2014 |
nicm |
Instead of setting up the default keys by building the key struct directly with a helper function in the cmd_entry, include a table of bind-key commands and pass them through the command parser and a temporary cmd_q.
As well as being smaller, this will allow default bindings to be command sequences which will probably be needed soon.
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.16 |
|
10-Oct-2013 |
nicm |
Remove the barely-used and unnecessary command check() function.
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.15 |
|
24-Mar-2013 |
nicm |
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.
|
Revision tags: OPENBSD_5_3_BASE
|
#
1.14 |
|
14-Aug-2012 |
nicm |
Use a separate define for each default format template and strip clutter from the choose-tree defaults.
|
Revision tags: OPENBSD_5_2_BASE
|
#
1.13 |
|
11-Jul-2012 |
nicm |
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.
|
#
1.12 |
|
10-Jul-2012 |
nicm |
xfree is not particularly helpful, remove it. From Thomas Adam.
|
#
1.11 |
|
22-May-2012 |
nicm |
Switch all of the various choose- and list- commands over to the format infrastructure, from Thomas Adam.
|
Revision tags: OPENBSD_5_1_BASE
|
#
1.10 |
|
26-Aug-2011 |
nicm |
Add initial framework for more powerful formatting of command output and use it for list-{panes,windows,sessions}. This allows more descriptive replacements (such as #{session_name}) and conditionals.
Later this will be used for status_replace and list-keys and other places.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
|
#
1.9 |
|
04-Jan-2011 |
nicm |
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.
|
#
1.8 |
|
21-Dec-2010 |
nicm |
Store sessions in an RB tree by name rather than a list, this is tidier and allows them to easily be shown sorted in various lists (list-sessions/choose-sessions).
Keep a session index which is used in a couple of places internally but make it an ever-increasing number rather than filling in gaps with new sessions.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.7 |
|
26-Nov-2009 |
nicm |
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
|
#
1.6 |
|
13-Nov-2009 |
nicm |
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.
|
#
1.5 |
|
03-Nov-2009 |
nicm |
Change session and client activity and creation time members to have more meaningful names.
Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session.
|
#
1.4 |
|
10-Oct-2009 |
nicm |
Add "grouped sessions" which have independent name, options, current window and so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session.
Had this around for a while, tested by a couple of people.
|
#
1.3 |
|
26-Jul-2009 |
nicm |
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.
|
#
1.2 |
|
13-Jul-2009 |
nicm |
Having fixed flags for single-character getopt options is a bit hard to 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.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.1 |
|
01-Jun-2009 |
nicm |
Import tmux, a terminal multiplexor allowing (among other things) a single 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
|
#
1.31 |
|
12-Apr-2020 |
nicm |
Add a -f filter argument to the list commands like choose-tree.
|
Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.30 |
|
18-Oct-2018 |
nicm |
Support for windows larger than visible on the attached client. This has been a limitation for a long time.
There are two new options, window-size and default-size, and a new command, resize-window. The force-width and force-height options and the session_width and session_height formats have been removed.
The new window-size option tells tmux how to work out the size of windows: largest means it picks the size of the largest session, smallest the smallest session (similar to the old behaviour) and manual means that it does not automatically resize windows. The default is currently largest but this may change. aggressive-resize modifies the choice of session for largest and smallest as it did before.
If a window is in a session attached to a client that is too small, only part of the window is shown. tmux attempts to keep the cursor visible, so the part of the window displayed is changed as the cursor moves (with a small delay, to try and avoid excess redrawing when applications redraw status lines or similar that are not currently visible). The offset of the visible portion of the window is shown in status-right.
Drawing windows which are larger than the client is not as efficient as those which fit, particularly when the cursor moves, so it is recommended to avoid using this on slow machines or networks (set window-size to smallest or manual).
The resize-window command can be used to resize a window manually. If it is used, the window-size option is automatically set to manual for the window (undo this with "setw -u window-size"). resize-window works in a similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and -A flags. -a sets the window to the size of the smallest client (what it would be if window-size was smallest) and -A the largest.
For the same behaviour as force-width or force-height, use resize-window -x or -y, and "setw -u window-size" to revert to automatic sizing..
If the global window-size option is set to manual, the default-size option is used for new windows. If -x or -y is used with new-session, that sets the default-size option for the new session.
The maximum size of a window is 10000x10000. But expect applications to complain and much higher memory use if making a window excessively big. The minimum size is the size required for the current layout including borders.
The refresh-client command can be used to pan around a window, -U -D -L -R moves up, down, left or right and -c returns to automatic cursor tracking. The position is reset when the current window is changed.
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.29 |
|
01-May-2017 |
nicm |
In order that people can use formats like #D in #() in the status line and not have to wait for an update when they change pane, we allow commands to run more than once a second if the expanded form changes. Unfortunately this can mean them being run far too often (pretty much continually) when multiple clients exist, because some formats (including #D) will always differ between clients.
To avoid this, give each client its own tree of jobs which means that the same command will be different instances for each client - similar to how we have the tag to separate commands for different panes.
GitHub issue 889; test case reported by Paul Johnson.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.28 |
|
03-Feb-2017 |
nicm |
Add a window or pane id "tag" to each format tree and use it to separate jobs, this means that if the same job is used for different windows or panes (for example in pane-border-format), it will be run separately for each pane.
|
#
1.27 |
|
16-Oct-2016 |
nicm |
Mass rename struct cmd_q to struct cmdq_item and related.
|
#
1.26 |
|
14-Oct-2016 |
nicm |
Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling.
|
#
1.25 |
|
10-Oct-2016 |
nicm |
Add static in cmd-* and fix a few other nits.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.24 |
|
19-Jan-2016 |
nicm |
I no longer use my SourceForge address so replace it.
|
#
1.23 |
|
13-Dec-2015 |
nicm |
Use member names in cmd_entry definitions so I stop getting confused about the order.
|
#
1.22 |
|
11-Dec-2015 |
nicm |
Add cmdq as an argument to format_create and add a format for the command name (will also be used for more later).
|
#
1.21 |
|
08-Dec-2015 |
nicm |
Remove format_create_flags and just pass flags to format_create.
|
#
1.20 |
|
25-Oct-2015 |
nicm |
Extend the modifiers allowed before formats: as well as the existing #{=10:...} length limit, add #{t:...} to convert a time_t format to a string, #{b:...} for basename and #{d:...} for dirname. Remove all the foo_string time formats as they can now be replaced by "t:", for example #{window_activity_string} becomes #{t:window_activity}.
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.19 |
|
05-Feb-2015 |
nicm |
Wrap all the individual format_* calls in a single format_defaults functions.
|
#
1.18 |
|
20-Oct-2014 |
nicm |
Move template defines back into .c files.
|
#
1.17 |
|
20-Oct-2014 |
nicm |
Instead of setting up the default keys by building the key struct directly with a helper function in the cmd_entry, include a table of bind-key commands and pass them through the command parser and a temporary cmd_q.
As well as being smaller, this will allow default bindings to be command sequences which will probably be needed soon.
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.16 |
|
10-Oct-2013 |
nicm |
Remove the barely-used and unnecessary command check() function.
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.15 |
|
24-Mar-2013 |
nicm |
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.
|
Revision tags: OPENBSD_5_3_BASE
|
#
1.14 |
|
14-Aug-2012 |
nicm |
Use a separate define for each default format template and strip clutter from the choose-tree defaults.
|
Revision tags: OPENBSD_5_2_BASE
|
#
1.13 |
|
11-Jul-2012 |
nicm |
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.
|
#
1.12 |
|
10-Jul-2012 |
nicm |
xfree is not particularly helpful, remove it. From Thomas Adam.
|
#
1.11 |
|
22-May-2012 |
nicm |
Switch all of the various choose- and list- commands over to the format infrastructure, from Thomas Adam.
|
Revision tags: OPENBSD_5_1_BASE
|
#
1.10 |
|
26-Aug-2011 |
nicm |
Add initial framework for more powerful formatting of command output and use it for list-{panes,windows,sessions}. This allows more descriptive replacements (such as #{session_name}) and conditionals.
Later this will be used for status_replace and list-keys and other places.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
|
#
1.9 |
|
04-Jan-2011 |
nicm |
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.
|
#
1.8 |
|
21-Dec-2010 |
nicm |
Store sessions in an RB tree by name rather than a list, this is tidier and allows them to easily be shown sorted in various lists (list-sessions/choose-sessions).
Keep a session index which is used in a couple of places internally but make it an ever-increasing number rather than filling in gaps with new sessions.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.7 |
|
26-Nov-2009 |
nicm |
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
|
#
1.6 |
|
13-Nov-2009 |
nicm |
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.
|
#
1.5 |
|
03-Nov-2009 |
nicm |
Change session and client activity and creation time members to have more meaningful names.
Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session.
|
#
1.4 |
|
10-Oct-2009 |
nicm |
Add "grouped sessions" which have independent name, options, current window and so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session.
Had this around for a while, tested by a couple of people.
|
#
1.3 |
|
26-Jul-2009 |
nicm |
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.
|
#
1.2 |
|
13-Jul-2009 |
nicm |
Having fixed flags for single-character getopt options is a bit hard to 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.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.1 |
|
01-Jun-2009 |
nicm |
Import tmux, a terminal multiplexor allowing (among other things) a single 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
|
#
1.30 |
|
18-Oct-2018 |
nicm |
Support for windows larger than visible on the attached client. This has been a limitation for a long time.
There are two new options, window-size and default-size, and a new command, resize-window. The force-width and force-height options and the session_width and session_height formats have been removed.
The new window-size option tells tmux how to work out the size of windows: largest means it picks the size of the largest session, smallest the smallest session (similar to the old behaviour) and manual means that it does not automatically resize windows. The default is currently largest but this may change. aggressive-resize modifies the choice of session for largest and smallest as it did before.
If a window is in a session attached to a client that is too small, only part of the window is shown. tmux attempts to keep the cursor visible, so the part of the window displayed is changed as the cursor moves (with a small delay, to try and avoid excess redrawing when applications redraw status lines or similar that are not currently visible). The offset of the visible portion of the window is shown in status-right.
Drawing windows which are larger than the client is not as efficient as those which fit, particularly when the cursor moves, so it is recommended to avoid using this on slow machines or networks (set window-size to smallest or manual).
The resize-window command can be used to resize a window manually. If it is used, the window-size option is automatically set to manual for the window (undo this with "setw -u window-size"). resize-window works in a similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and -A flags. -a sets the window to the size of the smallest client (what it would be if window-size was smallest) and -A the largest.
For the same behaviour as force-width or force-height, use resize-window -x or -y, and "setw -u window-size" to revert to automatic sizing..
If the global window-size option is set to manual, the default-size option is used for new windows. If -x or -y is used with new-session, that sets the default-size option for the new session.
The maximum size of a window is 10000x10000. But expect applications to complain and much higher memory use if making a window excessively big. The minimum size is the size required for the current layout including borders.
The refresh-client command can be used to pan around a window, -U -D -L -R moves up, down, left or right and -c returns to automatic cursor tracking. The position is reset when the current window is changed.
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.29 |
|
01-May-2017 |
nicm |
In order that people can use formats like #D in #() in the status line and not have to wait for an update when they change pane, we allow commands to run more than once a second if the expanded form changes. Unfortunately this can mean them being run far too often (pretty much continually) when multiple clients exist, because some formats (including #D) will always differ between clients.
To avoid this, give each client its own tree of jobs which means that the same command will be different instances for each client - similar to how we have the tag to separate commands for different panes.
GitHub issue 889; test case reported by Paul Johnson.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.28 |
|
03-Feb-2017 |
nicm |
Add a window or pane id "tag" to each format tree and use it to separate jobs, this means that if the same job is used for different windows or panes (for example in pane-border-format), it will be run separately for each pane.
|
#
1.27 |
|
16-Oct-2016 |
nicm |
Mass rename struct cmd_q to struct cmdq_item and related.
|
#
1.26 |
|
14-Oct-2016 |
nicm |
Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling.
|
#
1.25 |
|
10-Oct-2016 |
nicm |
Add static in cmd-* and fix a few other nits.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.24 |
|
19-Jan-2016 |
nicm |
I no longer use my SourceForge address so replace it.
|
#
1.23 |
|
13-Dec-2015 |
nicm |
Use member names in cmd_entry definitions so I stop getting confused about the order.
|
#
1.22 |
|
11-Dec-2015 |
nicm |
Add cmdq as an argument to format_create and add a format for the command name (will also be used for more later).
|
#
1.21 |
|
08-Dec-2015 |
nicm |
Remove format_create_flags and just pass flags to format_create.
|
#
1.20 |
|
25-Oct-2015 |
nicm |
Extend the modifiers allowed before formats: as well as the existing #{=10:...} length limit, add #{t:...} to convert a time_t format to a string, #{b:...} for basename and #{d:...} for dirname. Remove all the foo_string time formats as they can now be replaced by "t:", for example #{window_activity_string} becomes #{t:window_activity}.
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.19 |
|
05-Feb-2015 |
nicm |
Wrap all the individual format_* calls in a single format_defaults functions.
|
#
1.18 |
|
20-Oct-2014 |
nicm |
Move template defines back into .c files.
|
#
1.17 |
|
20-Oct-2014 |
nicm |
Instead of setting up the default keys by building the key struct directly with a helper function in the cmd_entry, include a table of bind-key commands and pass them through the command parser and a temporary cmd_q.
As well as being smaller, this will allow default bindings to be command sequences which will probably be needed soon.
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.16 |
|
10-Oct-2013 |
nicm |
Remove the barely-used and unnecessary command check() function.
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.15 |
|
24-Mar-2013 |
nicm |
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.
|
Revision tags: OPENBSD_5_3_BASE
|
#
1.14 |
|
14-Aug-2012 |
nicm |
Use a separate define for each default format template and strip clutter from the choose-tree defaults.
|
Revision tags: OPENBSD_5_2_BASE
|
#
1.13 |
|
11-Jul-2012 |
nicm |
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.
|
#
1.12 |
|
10-Jul-2012 |
nicm |
xfree is not particularly helpful, remove it. From Thomas Adam.
|
#
1.11 |
|
22-May-2012 |
nicm |
Switch all of the various choose- and list- commands over to the format infrastructure, from Thomas Adam.
|
Revision tags: OPENBSD_5_1_BASE
|
#
1.10 |
|
26-Aug-2011 |
nicm |
Add initial framework for more powerful formatting of command output and use it for list-{panes,windows,sessions}. This allows more descriptive replacements (such as #{session_name}) and conditionals.
Later this will be used for status_replace and list-keys and other places.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
|
#
1.9 |
|
04-Jan-2011 |
nicm |
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.
|
#
1.8 |
|
21-Dec-2010 |
nicm |
Store sessions in an RB tree by name rather than a list, this is tidier and allows them to easily be shown sorted in various lists (list-sessions/choose-sessions).
Keep a session index which is used in a couple of places internally but make it an ever-increasing number rather than filling in gaps with new sessions.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.7 |
|
26-Nov-2009 |
nicm |
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
|
#
1.6 |
|
13-Nov-2009 |
nicm |
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.
|
#
1.5 |
|
03-Nov-2009 |
nicm |
Change session and client activity and creation time members to have more meaningful names.
Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session.
|
#
1.4 |
|
10-Oct-2009 |
nicm |
Add "grouped sessions" which have independent name, options, current window and so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session.
Had this around for a while, tested by a couple of people.
|
#
1.3 |
|
26-Jul-2009 |
nicm |
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.
|
#
1.2 |
|
13-Jul-2009 |
nicm |
Having fixed flags for single-character getopt options is a bit hard to 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.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.1 |
|
01-Jun-2009 |
nicm |
Import tmux, a terminal multiplexor allowing (among other things) a single 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
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.29 |
|
01-May-2017 |
nicm |
In order that people can use formats like #D in #() in the status line and not have to wait for an update when they change pane, we allow commands to run more than once a second if the expanded form changes. Unfortunately this can mean them being run far too often (pretty much continually) when multiple clients exist, because some formats (including #D) will always differ between clients.
To avoid this, give each client its own tree of jobs which means that the same command will be different instances for each client - similar to how we have the tag to separate commands for different panes.
GitHub issue 889; test case reported by Paul Johnson.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.28 |
|
03-Feb-2017 |
nicm |
Add a window or pane id "tag" to each format tree and use it to separate jobs, this means that if the same job is used for different windows or panes (for example in pane-border-format), it will be run separately for each pane.
|
#
1.27 |
|
16-Oct-2016 |
nicm |
Mass rename struct cmd_q to struct cmdq_item and related.
|
#
1.26 |
|
14-Oct-2016 |
nicm |
Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling.
|
#
1.25 |
|
10-Oct-2016 |
nicm |
Add static in cmd-* and fix a few other nits.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.24 |
|
19-Jan-2016 |
nicm |
I no longer use my SourceForge address so replace it.
|
#
1.23 |
|
13-Dec-2015 |
nicm |
Use member names in cmd_entry definitions so I stop getting confused about the order.
|
#
1.22 |
|
11-Dec-2015 |
nicm |
Add cmdq as an argument to format_create and add a format for the command name (will also be used for more later).
|
#
1.21 |
|
08-Dec-2015 |
nicm |
Remove format_create_flags and just pass flags to format_create.
|
#
1.20 |
|
25-Oct-2015 |
nicm |
Extend the modifiers allowed before formats: as well as the existing #{=10:...} length limit, add #{t:...} to convert a time_t format to a string, #{b:...} for basename and #{d:...} for dirname. Remove all the foo_string time formats as they can now be replaced by "t:", for example #{window_activity_string} becomes #{t:window_activity}.
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.19 |
|
05-Feb-2015 |
nicm |
Wrap all the individual format_* calls in a single format_defaults functions.
|
#
1.18 |
|
20-Oct-2014 |
nicm |
Move template defines back into .c files.
|
#
1.17 |
|
20-Oct-2014 |
nicm |
Instead of setting up the default keys by building the key struct directly with a helper function in the cmd_entry, include a table of bind-key commands and pass them through the command parser and a temporary cmd_q.
As well as being smaller, this will allow default bindings to be command sequences which will probably be needed soon.
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.16 |
|
10-Oct-2013 |
nicm |
Remove the barely-used and unnecessary command check() function.
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.15 |
|
24-Mar-2013 |
nicm |
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.
|
Revision tags: OPENBSD_5_3_BASE
|
#
1.14 |
|
14-Aug-2012 |
nicm |
Use a separate define for each default format template and strip clutter from the choose-tree defaults.
|
Revision tags: OPENBSD_5_2_BASE
|
#
1.13 |
|
11-Jul-2012 |
nicm |
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.
|
#
1.12 |
|
10-Jul-2012 |
nicm |
xfree is not particularly helpful, remove it. From Thomas Adam.
|
#
1.11 |
|
22-May-2012 |
nicm |
Switch all of the various choose- and list- commands over to the format infrastructure, from Thomas Adam.
|
Revision tags: OPENBSD_5_1_BASE
|
#
1.10 |
|
26-Aug-2011 |
nicm |
Add initial framework for more powerful formatting of command output and use it for list-{panes,windows,sessions}. This allows more descriptive replacements (such as #{session_name}) and conditionals.
Later this will be used for status_replace and list-keys and other places.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
|
#
1.9 |
|
04-Jan-2011 |
nicm |
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.
|
#
1.8 |
|
21-Dec-2010 |
nicm |
Store sessions in an RB tree by name rather than a list, this is tidier and allows them to easily be shown sorted in various lists (list-sessions/choose-sessions).
Keep a session index which is used in a couple of places internally but make it an ever-increasing number rather than filling in gaps with new sessions.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.7 |
|
26-Nov-2009 |
nicm |
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
|
#
1.6 |
|
13-Nov-2009 |
nicm |
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.
|
#
1.5 |
|
03-Nov-2009 |
nicm |
Change session and client activity and creation time members to have more meaningful names.
Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session.
|
#
1.4 |
|
10-Oct-2009 |
nicm |
Add "grouped sessions" which have independent name, options, current window and so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session.
Had this around for a while, tested by a couple of people.
|
#
1.3 |
|
26-Jul-2009 |
nicm |
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.
|
#
1.2 |
|
13-Jul-2009 |
nicm |
Having fixed flags for single-character getopt options is a bit hard to 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.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.1 |
|
01-Jun-2009 |
nicm |
Import tmux, a terminal multiplexor allowing (among other things) a single 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
|