1618f3eae6
Move imsg into libutil and add a man page.
...
Minor bump for libutil.
Previous versions of this diff and man page looked at by various people.
"you should just commit" deraadt
2010-05-26 16:44:32 +00:00
c47d66f49b
Rename some imsg bits to make namespace collisions less likely buf to
...
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE.
ok henning gilles claudio jacekm deraadt
2010-05-26 13:56:07 +00:00
1e8faaa217
Don't die if the client has been detached when the job finishes, just
...
don't display the output.
2010-05-25 20:05:25 +00:00
608eef731a
Fix an out-of-date comment.
2010-05-25 19:47:30 +00:00
4f5c5b37b8
Pass in the session, rather than the client, to window modes' key()
...
function. We were only ever using the client to find the session anyway.
This allows send-key to work properly for manipulating copy mode from
outside tmux.
From Micah Cowan.
2010-05-23 19:42:19 +00:00
0ed727a012
Enhance paste-buffer to allow lines to be separated by any string, from
...
Andrea Barisani.
2010-05-19 22:28:14 +00:00
d91127958d
Colour+attribute options for status line alerts, from Alex Alexander.
2010-05-14 19:03:09 +00:00
4af4d12475
Accept (and document) "none" instead of "default" for attributes as it
...
is clearer and avoids confusion with default colours.
2010-05-14 18:56:21 +00:00
e5f01febd7
Use $OpenBSD$.
2010-05-14 14:41:06 +00:00
72d1afa169
Catch SIGHUP and terminate if running as a client. This prevents clients
...
from being left hanging around when, for example, a SSH session is
disconnected.
ok nicm@
2010-05-12 15:05:39 +00:00
e0f4697e7c
Identical behaviour to select-prompt can now be obtained with
...
command-prompt, so remove select-prompt and change ' to be bound to
command-prompt -p index "select-window -t :%%".
2010-05-05 23:24:23 +00:00
c4a2fdf15b
Put this back in with the initialisation in the right order.
2010-05-04 17:28:16 +00:00
af5e0bd15a
Revert last change, it appears to be broken somehow.
2010-05-04 08:48:06 +00:00
ec1d37b1b2
Make signal handler setup/teardown two common functions instead of six,
...
and reset SIGCHLD after fork to fix problems with some shells. From
Romain Francois.
2010-05-03 16:06:32 +00:00
c919139433
Make C-] and other punctuation-based control key combinations work again.
...
ok nicm
2010-05-03 09:38:03 +00:00
fc09ec3025
sort options.
2010-05-02 15:19:35 +00:00
99e54f46c7
Make the active pane border have a green foreground instead of
...
background by default.
2010-04-28 18:22:32 +00:00
2240199dbf
Fix crash when resizing in copy mode, when cursor can end up outside screen.
...
Reported by Romain Francois, fixed by Micah Cowan.
2010-04-28 18:19:16 +00:00
83e1a33ff5
imsg.h does not need sys/tree.h.
...
ok eric
2010-04-27 21:04:04 +00:00
d529e7e14e
Add a tiled layout, originally from Liam Bedford a while ago, fixed up
...
by me.
2010-04-25 20:28:13 +00:00
6769115df2
When converting A-Z into a control character, want to subtract 64 not
...
65... whoops.
2010-04-23 14:27:04 +00:00
261b6b8615
Mark zombie windows as dead in choose-window list, from Romain Francoise.
2010-04-21 21:41:21 +00:00
3ae1b82695
Rewrite key string conversions to be readable and to work properly for
...
multiple modifiers.
2010-04-21 21:17:33 +00:00
67dd5df876
Catch SIGCHLD to avoid a zombie, from patrick keshishian.
2010-04-18 13:41:29 +00:00
622593a77f
Fix typo in escape state table leading to fatal() when \033} or \033~
...
was entered, from Chris Johnsen.
2010-04-17 23:31:09 +00:00
a6d52405a8
If remain-on-exit is set, both the error callback and a SIGCHLD could
...
destroy the same pane (because the first one doesn't remove it from the
list of panes), causing the pane bufferevent to be freed twice. So don't
free it if the fd has already been set to -1, from Romain Francoise.
2010-04-17 23:25:16 +00:00
842bc2b855
Fix use-after-free of the window link when it is part of a grouped
...
session (and hence could have been recreated), from Micah Cowan.
2010-04-17 23:14:17 +00:00
a2c86dcbf6
Remove XXX comment and just close received fd if calloc() fails.
...
If this happens the imsg may no longer be usable as there may be queued
messages, but this is a) already the case with the code now, and b)
would be the case if recvmsg() fails anyway, so we can document that -1
from imsg_read() invalidates the struct imsgbuf.
discussed with and ok eric
2010-04-07 18:09:39 +00:00
ac9daf92d7
Merge copy mode and output mode, dropping the latter. Idea and code from
...
Micah Cowan.
2010-04-06 21:35:44 +00:00
f81190a793
Mention title setting, and the new default.
2010-04-05 17:46:05 +00:00
6704c86301
rather than using an empty "" as the default window title, put the hostname
...
of the machine we are running on in there.
makes my many green lines easier to deal with without using fiddly options to
set it.
ok nicm@
2010-04-04 23:05:15 +00:00
680f920b55
tweak;
2010-04-04 21:23:20 +00:00
089c33f5be
Should be -s for src pane.
2010-04-04 19:12:20 +00:00
46d5c14b17
Dead assignment, found with clang.
2010-04-04 19:04:09 +00:00
b02cd35354
Run job commands explicitly in the global enviroment (which can be
...
modified with setenv -g) rather than with the environment tmux started
with.
2010-04-04 19:02:09 +00:00
7425122c1c
Squash a function that is only called in a callback into the callback
...
function.
2010-04-04 18:48:37 +00:00
56481a46bf
Don't accept keys with modifiers as input. Fixes crash reported by Brian
...
R Landy.
2010-03-31 18:05:14 +00:00
41f90bd08f
Don't leak job command in #().
2010-03-27 15:06:40 +00:00
d3d85c3df9
-a flag to insert a window after an existing one, moving other windows
...
up necessary.
2010-03-27 11:46:58 +00:00
d267845cfc
dispense with some wacky escape sequences;
2010-03-26 19:30:40 +00:00
c550e66e85
Dead functions, lint.
2010-03-22 19:18:46 +00:00
e16b7b8399
Reset output functions too when changing client after attaching, to
...
avoid crash if a command in a sequence after new/attach causes output.
2010-03-22 19:14:55 +00:00
9abbe349af
paste-buffer should be per pane, from C. Coutinho.
2010-03-22 19:13:28 +00:00
509ce7f766
Nuke unused variable.
2010-03-22 19:11:54 +00:00
0ac6efa6d5
Add vi-style "jump" commands for copy mode, from Micah Cowan.
2010-03-22 19:10:42 +00:00
6f04866044
Support up, down, left, right movement through panes with -UDLR flags to
...
select-pane.
Also REMOVE the up- and down-pane commands: equivalent behaviour is now
available using -t :.+ and -t :.-.
2010-03-22 19:07:52 +00:00
021037c419
Accept a full key match (not a partial) even if there is data left in
...
the buffer.
2010-03-22 19:03:52 +00:00
4baafd8126
New input parser based on http://vt100.net/emu/dec_ansi_parser .
2010-03-22 19:02:54 +00:00
48dd72005e
Fix a use-after-free when cancelling copy mode, or trying to repeat cancel.
...
ok kettenis
2010-03-14 23:31:23 +00:00
7bc3f5dd8a
Permit keys in copy mode to be prefixed by a repeat count, entered with
...
[1-9] in vi mode, or M-[1-9] in emacs mode.
From Micah Cowan, tweaked a little by me.
2010-03-02 00:32:41 +00:00