Commit Graph

5722 Commits

Author SHA1 Message Date
96ab50a701 Log termios backspace for each client since it is used to recognise
backspace input.
2011-01-13 00:54:32 +00:00
b3438c86bf Use TMPDIR if set, from Han Boetes. 2011-01-12 22:23:58 +00:00
abd1f615b2 Trim spaces. 2011-01-10 22:45:10 +00:00
a7b6445cc3 Better __progname check. 2011-01-10 22:12:31 +00:00
96fe3b26c1 Copy osdep-unknown.c for AIX to make @PLATFORM@ work. 2011-01-10 22:00:47 +00:00
93fd9cc29d Check for optarg, optind, optreset. 2011-01-10 21:51:56 +00:00
47e18f4cea unbind-key -a is allowed no arguments. 2011-01-10 21:28:47 +00:00
87841b4f91 +. 2011-01-09 18:57:05 +00:00
17f1cd5be8 Remove a bit of text that makes exit-unattached description unclear. 2011-01-09 18:46:46 +00:00
c3041eb9f0 Add missing arguments to some options. 2011-01-09 18:42:19 +00:00
69cb1f830e Move all calls to fcntl(...O_NONBLOCK) into a function and clear the
flag on the stdio file descriptors before closing them (fixes things
like "tmux ls && cat").
2011-01-08 01:52:36 +00:00
703160b5d6 Accept colours of the hex form #ffffff and translate to the nearest from
the xterm(1) 256-colour set.
2011-01-08 00:48:54 +00:00
676c62647c +. 2011-01-07 19:01:19 +00:00
30f6d9b167 Sync OpenBSD patchset 813:
Add a function to create window flags rather than doing the same thing
in two places. From Thomas Adam.
2011-01-07 16:55:40 +00:00
1cb579d0fd Bring the last remaining bits of dist.mk. 2011-01-07 15:09:04 +00:00
3d4ebeb1b0 Sync OpenBSD patchset 832:
Whoops, command-prompt can take 0 or 1 argument.
2011-01-07 15:04:51 +00:00
0fc4353fb3 Remove dead files entries. 2011-01-07 15:04:24 +00:00
ca413cf270 Sync OpenBSD patchset 831:
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.
2011-01-07 15:02:38 +00:00
b2b5d88f3f Sync OpenBSD patchset 830:
argc will be 1 not 2 with no option value.
2011-01-07 14:51:54 +00:00
ecec113b63 cmd-generic.c isn't needed anymore due to OpenBSD patchset 829. 2011-01-07 14:50:54 +00:00
0740d3dbb8 Remove compat include. 2011-01-07 14:46:57 +00:00
9301eeb4dd More _SOURCES. 2011-01-07 14:46:13 +00:00
1df427bc7b 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 +00:00
219442cff7 Sync OpenBSD patchset 828:
Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262
and supports larger terminals than the older way.

If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all
UTF-8 terminals. The option defaults to on if LANG etc are set in the
same manner as the utf8 option.

With help and based on code from hsim at gmx.li.
2011-01-07 14:34:45 +00:00
3aaf5b9b1e Sync OpenBSD patchset 827:
Handle a # at the end of a replacement string (such as status-left)
correctly. Found by Thomas Adam.
2011-01-07 14:32:26 +00:00
b463d3de54 Missing HAVE_STDINT_H. 2011-01-07 00:35:13 +00:00
64f02dab7c Whoops, command-prompt can take 0 or 1 argument. 2011-01-05 22:38:28 +00:00
f705c0e013 Whoops, bad copy and paste. 2011-01-04 09:48:10 +00:00
11dcbd7556 Support --enable-static. 2011-01-04 09:43:14 +00:00
96c37fa80a 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.
2011-01-04 02:03:41 +00:00
55346b0d10 argc will be 1 not 2 with no option value. 2011-01-04 01:58:12 +00:00
7502cb3adb 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-04 00:42:46 +00:00
03ec2482c9 libevent-2 works now as well. 2011-01-03 23:58:10 +00:00
a2387330ce Zap paths.h include. 2011-01-03 23:55:30 +00:00
3689640b4e Update _SOURCES. 2011-01-03 23:54:51 +00:00
36c7c7537a Sync OpenBSD patchset 826:
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.
2011-01-03 23:52:38 +00:00
2bdae526ad More indentation tweaking. 2011-01-03 23:43:35 +00:00
69f6b23945 Include all osdep-*.c in dist. 2011-01-03 23:40:21 +00:00
ac3b78a841 Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262
and supports larger terminals than the older way.

If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all
UTF-8 terminals. The option defaults to on if LANG etc are set in the
same manner as the utf8 option.

With help and based on code from hsim at gmx.li.
2011-01-03 23:35:21 +00:00
a0e7facee6 Sync OpenBSD patchset 825:
suspend-client has used -t for the client target (like everything else)
for ages, fix the usage string and man page and trim some leftover code.
2011-01-03 23:33:12 +00:00
a24b67fc5a Sync OpenBSD patchset 824:
Last few tables that should be const.
2011-01-03 23:32:04 +00:00
521247bedb Sync OpenBSD patchset 823:
Sprinkle a little more const.
2011-01-03 23:31:26 +00:00
9ad028e8ee Sync OpenBSD patchset 822:
Another table that should be const.
2011-01-03 23:30:43 +00:00
d9c848d3a6 Sync OpenBSD patchset 821:
Key table should be const.
2011-01-03 23:29:49 +00:00
66fb24c3a5 Sync OpenBSD patchset 820:
Add a -P option to new-window and split-window to print the new window
or pane index in target form (useful to pass it into other commands).
2011-01-03 23:29:09 +00:00
d3c04b74ec Sync OpenBSD patchset 819:
Don't reset the activity timer for unattached sessions every second,
this screws up the choice of most-recently-used. Instead, break the time
update into a little function and do it when the session is attached.

Pointed out by joshe@.
2011-01-03 23:27:54 +00:00
09ef2c9f40 Sync OpenBSD patchset 818:
Remove unused variable.
2011-01-03 23:26:14 +00:00
5158dd9a8d Handle a # at the end of a replacement string (such as status-left)
correctly. Found by Thomas Adam.
2011-01-03 21:30:49 +00:00
edc298d0a1 Wrap long line differently. 2011-01-02 15:49:31 +00:00
703baa8769 Fail if no libevent or curses, from Thomas Adam. 2011-01-02 15:45:43 +00:00