<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rtmux.git/cmd-next-window.c, branch master</title>
<subtitle>Tmux with Rahm's extra hacks.</subtitle>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/'/>
<entry>
<title>Sync OpenBSD patchset 831:</title>
<updated>2011-01-07T15:02:38+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2011-01-07T15:02:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=ca413cf270d001df59a13dc1978236b2de8261e4'/>
<id>ca413cf270d001df59a13dc1978236b2de8261e4</id>
<content type='text'>
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.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.

</pre>
</div>
</content>
</entry>
<entry>
<title>Sync OpenBSD patchset 829:</title>
<updated>2011-01-07T14:45:34+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2011-01-07T14:45:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=1df427bc7b1a458f4d3fe6f9255010708a8d8634'/>
<id>1df427bc7b1a458f4d3fe6f9255010708a8d8634</id>
<content type='text'>
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.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.

</pre>
</div>
</content>
</entry>
<entry>
<title>Sync OpenBSD patchset 539:</title>
<updated>2009-11-14T17:56:39+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2009-11-14T17:56:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=e35f5b35bd9a6a85eb314bfb642998267b2d475d'/>
<id>e35f5b35bd9a6a85eb314bfb642998267b2d475d</id>
<content type='text'>
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.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.

</pre>
</div>
</content>
</entry>
<entry>
<title>Sync OpenBSD patchset 181:</title>
<updated>2009-07-28T22:12:16+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2009-07-28T22:12:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=d637cb33da212a74636984be0ce9dfface6be6b4'/>
<id>d637cb33da212a74636984be0ce9dfface6be6b4</id>
<content type='text'>
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.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.

</pre>
</div>
</content>
</entry>
<entry>
<title>Sync OpenBSD patchset 151:</title>
<updated>2009-07-22T16:24:59+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2009-07-22T16:24:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=a734488a4b84752000ee511b57f07d91ddc28a6d'/>
<id>a734488a4b84752000ee511b57f07d91ddc28a6d</id>
<content type='text'>
Tidy up keys: use an enum for the key codes, and remove the macros which just
wrap flag sets/clears/tests.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tidy up keys: use an enum for the key codes, and remove the macros which just
wrap flag sets/clears/tests.

</pre>
</div>
</content>
</entry>
<entry>
<title>Having fixed flags for single-character getopt options is a bit hard to</title>
<updated>2009-07-14T06:43:33+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-07-14T06:43:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=097b96ea44d5a09ac1f3553f1789ef6e932a9eba'/>
<id>097b96ea44d5a09ac1f3553f1789ef6e932a9eba</id>
<content type='text'>
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.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.

</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing -a flag.</title>
<updated>2009-06-25T15:29:34+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-06-25T15:29:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=3d7cf00359bce020135b46a4feae9d0603387850'/>
<id>3d7cf00359bce020135b46a4feae9d0603387850</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Key repeating is now a property of the key binding not of the command. Repeat</title>
<updated>2009-03-28T14:08:09+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-03-28T14:08:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=cb2ac5c269d42d1f95e6dc6e5585c4ac01a360e4'/>
<id>cb2ac5c269d42d1f95e6dc6e5585c4ac01a360e4</id>
<content type='text'>
is turned on when the key is bound with the -r flag to bind-key. next/previous-
window no longer repeat by default as it turned out to annoy me.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
is turned on when the key is bound with the -r flag to bind-key. next/previous-
window no longer repeat by default as it turned out to annoy me.

</pre>
</div>
</content>
</entry>
<entry>
<title>Pass return code from _exec; allow command sequences to work from the command line.</title>
<updated>2009-01-19T18:23:40+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-01-19T18:23:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=93230a64bc9369c726cc68d3f539b3bf66cff069'/>
<id>93230a64bc9369c726cc68d3f539b3bf66cff069</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>-a flags to next/previous window.</title>
<updated>2009-01-18T18:31:45+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-01-18T18:31:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=d1a5fde3d074a0aa6d87f3f7494f01554eff17c6'/>
<id>d1a5fde3d074a0aa6d87f3f7494f01554eff17c6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
