Code Log


Commit Date  
[b43388] (3.3 kB) by Nicholas Marriott Nicholas Marriott

We can't tell what the terminal has done with a DCS string, so reset the
cursor and attributes afterwards.

2012-09-05 09:59:41 View
Download
[1f5e6e] (3.3 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 1151:

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.

2012-07-11 19:37:32 View
Download
[a432fc] (3.2 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 1150:

xfree is not particularly helpful, remove it. From Thomas Adam.

2012-07-11 19:34:16 View
Download
[3275e9] (3.2 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 1037:

Support "bracketed paste" mode. This adds a -p flag to paste-buffer - if
this is used and the application has requested bracketed pastes, then
tmux surrounds the pasted text by \033[200~ and \033[201~. Applications
like vim can (apparently) use this to avoid, for example, indenting the
text. From Ailin Nemui.

2012-03-07 13:36:19 View
Download
[391f1f] (3.0 kB) by Tiago Cunha Tiago Cunha

Expand the Id keyword.

2011-07-09 09:42:33 View
Download
[1df427] (3.0 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 829:

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.

2011-01-07 14:45:34 View
Download
[9ebee6] (5.6 kB) by Tiago Cunha Tiago Cunha

Global paste buffers instead of per-session which renders copy-buffer useless.
As a consequence buffer-limit is now a server option.

2010-12-30 22:39:49 View
Download
[b0169d] (5.5 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 747:

Usage string fixes from Ben Boeckel.

2010-08-11 22:17:32 View
Download
[bb4d77] (5.5 kB) by Tiago Cunha Tiago Cunha

No vis.h in here.

2010-06-06 00:03:02 View
Download
[e55a59] (5.6 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 702:

Enhance paste-buffer to allow lines to be separated by any string, from
Andrea Barisani.

2010-06-06 00:01:36 View
Download
[642f54] (2.7 kB) by Nicholas Marriott Nicholas Marriott

Dead assignment.

2010-04-06 21:59:37 View
Download
[2307b9] (2.7 kB) by Nicholas Marriott Nicholas Marriott

paste-buffer should be per pane, from C. Coutinho.

2010-03-18 21:02:41 View
Download
[cc094f] (2.8 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 581:

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...

2009-12-04 22:14:47 View
Download
[fabf40] (2.8 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 569:

Tidy up various bits of the paste code, make the data buffer char * and add
comments.

2009-11-28 14:54:12 View
Download
[e35f5b] (2.8 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 539:

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.

2009-11-14 17:56:39 View
Download
[2df088] (2.8 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 498:

Convert the window pane (pty master side) fd over to use a bufferevent.

The evbuffer API is very similar to the existing tmux buffer API so this was
remarkably painless. Not many possible ways to do it, I suppose.

2009-11-08 23:02:56 View
Download
[c272de] (2.7 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 318:

Give each paste buffer a size member instead of requiring them to be
zero-terminated.

2009-09-07 23:48:54 View
Download
[d637cb] (2.8 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 181:

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.

2009-07-28 22:12:16 View
Download
[097b96] (2.8 kB) by Nicholas Marriott Nicholas Marriott

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.

2009-07-14 06:43:33 View
Download
[27fc96] (2.8 kB) by Nicholas Marriott Nicholas Marriott

When pasting, translate \n into \r. This matches xterm and putty's behaviour,
and makes emacs happy when pasting into some modes. A new -r (raw) flag to
paste-buffer pastes without the translation.

From Kalle Olavi Niemitalo, thanks!

2009-07-12 17:11:39 View
Download
[29ac83] (2.1 kB) by Nicholas Marriott Nicholas Marriott

Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error
when trying to paste them, found by me, and miscalculation of the start/end
causing random fatal errors when copying in copy-mode, reported by sthen.

2009-07-02 16:23:54 View
Download
[93230a] (2.1 kB) by Nicholas Marriott Nicholas Marriott

Pass return code from _exec; allow command sequences to work from the command line.

2009-01-19 18:23:40 View
Download
[162bac] (2.1 kB) by Nicholas Marriott Nicholas Marriott

Window splitting. Two vertical panes fixed 50% each. This is a huge diff, still a couple of bugs (notably heap corruption somewhere causing segfault on exit).

2009-01-11 23:31:46 View
Download
[e3feb0] (2.1 kB) by Nicholas Marriott Nicholas Marriott

Server locking. set-password and lock-server commands, plus automatic locking.

2009-01-11 00:48:42 View
Download
[51ca51] (2.1 kB) by Nicholas Marriott Nicholas Marriott

Buffers should be numbered from zero, from Tiago Cunha. Also fix paste -b.

2009-01-07 19:52:36 View
Download
Older >