Nicholas Marriott
4f34e25dd8
Support -x and -y for new-session to specify the initial size of the
...
window if created detached with -d.
2011-01-14 23:49:23 +00:00
Nicholas Marriott
9ad9e8c5dd
The maximum history-limit was accidentally reduced, fix it back to INT_MAX.
2011-01-13 13:38:57 +00:00
Nicholas Marriott
fa4a75cdab
Clarify alternate-screen description a little.
2011-01-13 09:50:11 +00:00
Nicholas Marriott
2d82567070
Er, fix next and previous session functions to actually work, part 2.
2011-01-13 02:08:14 +00:00
Nicholas Marriott
588ebb5393
Fix next and previous session functions to actually work.
2011-01-13 02:07:06 +00:00
Nicholas Marriott
96ab50a701
Log termios backspace for each client since it is used to recognise
...
backspace input.
2011-01-13 00:54:32 +00:00
Nicholas Marriott
b3438c86bf
Use TMPDIR if set, from Han Boetes.
2011-01-12 22:23:58 +00:00
Nicholas Marriott
47e18f4cea
unbind-key -a is allowed no arguments.
2011-01-10 21:28:47 +00:00
Nicholas Marriott
17f1cd5be8
Remove a bit of text that makes exit-unattached description unclear.
2011-01-09 18:46:46 +00:00
Nicholas Marriott
c3041eb9f0
Add missing arguments to some options.
2011-01-09 18:42:19 +00:00
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
64f02dab7c
Whoops, command-prompt can take 0 or 1 argument.
2011-01-05 22:38:28 +00:00
Nicholas Marriott
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
Nicholas Marriott
55346b0d10
argc will be 1 not 2 with no option value.
2011-01-04 01:58:12 +00:00
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
3e8124009f
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-01 16:51:21 +00:00
Nicholas Marriott
a4515ce138
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-01 11:24:45 +00:00
Nicholas Marriott
f833b885a1
Last few tables that should be const.
2011-01-01 03:43:20 +00:00
Nicholas Marriott
67ee86085c
Sprinkle a little more const.
2011-01-01 03:39:21 +00:00
Nicholas Marriott
5d0cfe079b
Another table that should be const.
2011-01-01 03:32:28 +00:00
Nicholas Marriott
1c86713afd
Key table should be const.
2011-01-01 02:16:25 +00:00
Nicholas Marriott
b6950ed8aa
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-01 01:33:07 +00:00
Nicholas Marriott
04b32fa734
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-01 01:12:09 +00:00
Nicholas Marriott
91218f8714
Remove unused variable.
2011-01-01 00:44:24 +00:00
Jason McIntyre
1a1efd5bc9
fix trailing whitespace;
2010-12-31 00:41:11 +00:00
Nicholas Marriott
4fb1045f5a
Remove some unused defines.
2010-12-30 23:20:13 +00:00
Nicholas Marriott
2b3c2fd852
Fix BUFFERS section now they are global.
2010-12-30 23:17:41 +00:00
Nicholas Marriott
cc42614fa9
Change from a per-session stack of buffers to one global stack which is
...
much more convenient and also simplifies lot of code. This renders
copy-buffer useless and makes buffer-limit now a server option.
By Tiago Cunha.
2010-12-30 23:16:18 +00:00
Nicholas Marriott
2231e72968
Add a function to create window flags rather than doing the same thing
...
in two places. From Thomas Adam.
2010-12-30 21:35:17 +00:00
Nicholas Marriott
f7c42c21ba
Support all four of the xterm mouse modes. Based on a diff from hsim at
...
gmx.li.
2010-12-29 21:49:06 +00:00
Nicholas Marriott
230e39ec35
Allow the config file parser and source-file to return "don't exit" to
...
the client to let attach work from configuration files.
2010-12-29 21:28:32 +00:00
Jason McIntyre
efa8c93664
tweak previous;
2010-12-27 19:57:31 +00:00
Nicholas Marriott
3e0bc052e1
Add a missing .Pp and sort options alphabetically, from Tiago Cunha.
2010-12-27 18:22:25 +00:00
Nicholas Marriott
d3d25365f1
server_kill_window can modify the RB tree so don't use RB_FOREACH, fixes
...
crash seen by Dan Harnett.
2010-12-23 21:56:38 +00:00
Nicholas Marriott
6fd2b5b87f
Style tweaks.
2010-12-23 20:18:39 +00:00
Nicholas Marriott
acf13ce978
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.
2010-12-21 22:37:59 +00:00
Nicholas Marriott
1b8488ee75
Fix another stray addition that was too early. Oops.
2010-12-20 01:28:18 +00:00
Nicholas Marriott
6fcdc714b6
Undo a change to next/previous session that got mixed in prematurely.
2010-12-20 00:43:24 +00:00
Nicholas Marriott
8705c6b435
Dead sessions are never on the active sessions list, so the SESSION_DEAD
...
flag is effectively unused. Remove it.
2010-12-20 00:19:20 +00:00
Nicholas Marriott
9358cfaf4a
Use pointer rather than index for the client's last session.
2010-12-20 00:17:22 +00:00
Nicholas Marriott
a51dcdc430
Unify the way sessions are used by callbacks - store the address and use
...
the reference count, then check it is still on the global sessions list
in the callback.
2010-12-20 00:03:55 +00:00
Nicholas Marriott
c65d4220f0
Don't nuke the index counter when a session group comes up.
2010-12-19 22:35:54 +00:00
Nicholas Marriott
c198664d15
Add other-pane-height and other-pane-width options, allowing the width
...
or height of the smaller panes in the main-horizontal and main-vertical
layouts to be set. Mostly from David Goodlad.
2010-12-19 18:35:08 +00:00
Nicholas Marriott
8715247a43
Read ${X} environment variables in strings and $HOME from the global
...
environment rather than getenv, this allows them to be updated during
the configuration file.
2010-12-13 22:53:14 +00:00
Nicholas Marriott
51487ed22f
Track the last session for a client and add a flag to switch-client and
...
a key binding (L) to move a client back to its last session.
2010-12-11 18:39:25 +00:00
Nicholas Marriott
20ed20ea1e
Fix rectangle copy to behave like emacs - the cursor is not part of the
...
selection on the right edge but on the left it is.
2010-12-11 17:56:01 +00:00
Nicholas Marriott
9802fea615
Oops, these functions return a const char *, so make the local variable
...
const as well.
2010-12-11 16:13:15 +00:00