Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Code Log


Commit Date  
[e35f5b] (4.1 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
[d637cb] (4.1 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
[89543e] (4.1 kB) by Nicholas Marriott Nicholas Marriott

A similar for fix for window_choose: don't rely on the callback always being
called to free data, have a separate free callback and call it from the mode
cleanup code.

2009-07-17 12:12:54 View
Download
[097b96] (4.2 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
[a5830b] (4.1 kB) by Nicholas Marriott Nicholas Marriott

Restore $Id$ and add script to do so.

2009-06-25 16:21:32 View
Download
[f7a9eb] (4.2 kB) by Nicholas Marriott Nicholas Marriott

Change find-window and monitor-content to use fnmatch(3). For convenience and
compatibility, *s are implicitly added at the start and end of the pattern.

2009-06-25 16:04:24 View
Download
[80af85] (4.0 kB) by Tiago Cunha Tiago Cunha

- New window option monitor-content to search for a string in a window, and
highlight the status line if it matches.
- To make this possible, the function cmd_find_window_search from
cmd-find-window.c had to be moved to window.c and renamed window_pane_search.
- While there use three new functions in server.c to check for bell, activity,
and content, to avoid too much nesting.

2009-05-19 13:32:55 View
Download
[143aa7] (5.0 kB) by Nicholas Marriott Nicholas Marriott

Space trimmage mega-diff.

2009-05-04 17:58:27 View
Download
[23fef9] (5.0 kB) by Nicholas Marriott Nicholas Marriott

8 -> UTF8_SIZE.

2009-03-29 11:18:28 View
Download
[cf7b38] (5.0 kB) by Nicholas Marriott Nicholas Marriott

Better UTF-8 support, including combined characters. Unicode data is now stored
as UTF-8 in a separate array, the code does a lookup into this every time it
gets to a UTF-8 cell. Zero width characters are just appended onto the UTF-8
data for the previous cell. This also means that almost no bytes extra are
wasted non-Unicode data (yay).

Still some oddities, such as copy mode skips over wide characters in a strange
way, and the code could do with some tidying.

2009-03-28 20:17:29 View
Download
[6c0728] (4.8 kB) by Nicholas Marriott Nicholas Marriott

Step 2 of the Grand Plan To Make UTF-8 Better.

Split grid into two arrays, one containing grid attributes/flags/colours (keeps
the name grid_cell for now) and a separate with the character data (called
text). The text is stored as a u_short but is treated as a uint64_t elsewhere;
eventually the grid will have two arrays.

I'm not happy with the naming so that might change.

Still need to decide where to go from here. I'm not sure whether to combine
the peek/set functions together, and also whether to continue to treat the
text as a uint64_t (and convert to/from Unicode) or make it a char array
(of size one when UTF-8 disabled, eight when enabled) and keep everything
as UTF-8.

Also since UTF-8 will eventually become an attribute of the grid itself it
might be nice to move all the padding crap into grid.c.

2009-03-28 16:30:05 View
Download
[93230a] (4.9 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
[95b143] (4.9 kB) by Nicholas Marriott Nicholas Marriott

Don't die when run non-interactively. DOH.

2009-01-18 19:10:08 View
Download
[3efd1f] (4.8 kB) by Nicholas Marriott Nicholas Marriott

find-window command.

2009-01-18 17:20:52 View
Download