Nicholas Marriott
34464da8d3
Use server_destroy_session() for kill-session.
2010-06-26 23:55:50 +00:00
Nicholas Marriott
42e2413978
Setting the cmdlist pointer in the bind-key to NULL to prevent it being freed
...
after the command is executing is bogus because it may still be needed if the
same command is going to be executed again (for example if you "bind-key a
bind-key b ..."). Making a copy is hard, so instead add a reference count to
the cmd_list.
While here, also print bind-key -n and the rest of the flags properly.
Fixes problem reported by mcbride@.
2010-06-26 18:20:53 +00:00
Nicholas Marriott
ef7293379f
Add a choose-buffer command for easier use of the paste buffer stack.
2010-06-21 21:44:09 +00:00
Nicholas Marriott
386849edc1
Extend the -t:+ and -t:- window targets for next and previous window to
...
accept an offset such as -t:+2. From Tiago Cunha.
2010-06-21 01:46:36 +00:00
Nicholas Marriott
e63f0546a1
Having a list of winlinks->alerts for each session is stupid, just store
...
the alert flags directly in the winlink itself.
2010-06-21 01:27:46 +00:00
Nicholas Marriott
447a07e9f8
Rename activity->alert in a couple of functions for consistency.
2010-06-21 00:25:32 +00:00
Nicholas Marriott
ad466a69aa
Give tmux sockets (but not the containing folder) group
...
permissions. This allows hardlinks to the sockets to be used more
easily.
2010-06-21 00:18:57 +00:00
Nicholas Marriott
5afb820d23
Ensure we overwrite UTF-8 wide characters properly, and never overwrite
...
characters we weren't overlapping. Fixes "disappearing wide characters"
glitch. From Micah Cowan.
2010-06-21 00:11:12 +00:00
Nicholas Marriott
278d9bc721
Last change erroneously used the target argument for looking up the
...
client which caused pipe-pane to fail when used from the command
line. Instead pass NULL which should use the current client.
Spotted by Tiago Cunha.
2010-06-14 23:06:13 +00:00
Nicholas Marriott
1484eb8a51
Add a missing command and some missing Ic, from Tiago Cunha.
2010-06-14 23:04:44 +00:00
Nicholas Marriott
dcc100f165
Use a macro-based mask for obtaining a key or modifier-set from the
...
combination. Display C-@, etc, as C-Space, in list-keys. By Micah Cowan.
2010-06-06 19:00:13 +00:00
Nicholas Marriott
4e3bed2035
Couple of missing command aliases/flags, from Tiago Cunha.
2010-06-05 16:54:24 +00:00
Nicholas Marriott
510ec3fb9e
Fix problems with window sizing seen by Raghavendra D Prabhu when
...
starting tmux from .xinitrc.
One of the very few things the server relies on the client for now is to
pass through a message on SIGWINCH, but there is a condition where
potentially a SIGWINCH may be lost during the transition from unattached
(main.c) to attached (client.c). So trigger a size change immediately
after the client installs its SIGWINCH handler.
Also, when the terminal is resized, reset the scroll region and cursor
position. Previously, we were clearing our saved idea of these, but in
fact some terminals do not reset them on resize, so this caused problems
during redraw.
While here make a resize to the same size not cause a redraw and rename
the tmux.out output log file to include the tmux PID.
2010-06-05 16:47:11 +00:00
Nicholas Marriott
ceed5cc9a9
Support the status_replace # replacement sequences in the pipe-pane
...
command, thanks to Andrea Barisani.
2010-06-05 16:34:30 +00:00
Nicholas Marriott
0440d325d9
Shut up gcc4 warnings.
2010-06-05 16:32:22 +00:00
Nicholas Marriott
36c0871c23
This ioctl(TIOCGWINSZ) call is no longer necessary, the result is never
...
used and the server now does it later on the tty fd directly.
2010-06-05 16:29:45 +00:00
Nicholas Marriott
b88ec14f0e
Fix binding of C-Space/C-@, from Micah Cowan.
2010-06-05 15:51:53 +00:00
Nicholas Marriott
cc724f327a
Make start-of-line work the same as end-of-line on wrapped lines (jump
...
to real start if at edge of screen). By Micah Cowan.
2010-06-05 15:49:48 +00:00
Nicholas Marriott
43fa9a9ba6
When the mode-mouse option is on, support dragging to make a selection
...
in copy mode.
Also support the scroll wheel, although xterm strangely does not ignore
it in application mouse mode, causing redraw artifacts when scrolling up
(other terminals appear to be better behaved).
2010-05-31 19:51:29 +00:00
Nicholas Marriott
e1e120de1c
Better to say "command key bindings" since we've just called them
...
command keys.
2010-05-30 19:19:42 +00:00
Nicholas Marriott
7b7397241f
There is no real reason not to list all the key bindings here rather
...
than just a selection.
2010-05-30 19:09:50 +00:00
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
608eef731a
Fix an out-of-date comment.
2010-05-25 19:47:30 +00:00
Nicholas Marriott
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
Nicholas Marriott
0ed727a012
Enhance paste-buffer to allow lines to be separated by any string, from
...
Andrea Barisani.
2010-05-19 22:28:14 +00:00
Nicholas Marriott
d91127958d
Colour+attribute options for status line alerts, from Alex Alexander.
2010-05-14 19:03:09 +00:00
Nicholas Marriott
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
Nicholas Marriott
e5f01febd7
Use $OpenBSD$.
2010-05-14 14:41:06 +00:00
Joel Sing
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
Nicholas Marriott
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
Nicholas Marriott
c4a2fdf15b
Put this back in with the initialisation in the right order.
2010-05-04 17:28:16 +00:00
Nicholas Marriott
af5e0bd15a
Revert last change, it appears to be broken somehow.
2010-05-04 08:48:06 +00:00
Nicholas Marriott
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
Ryan McBride
c919139433
Make C-] and other punctuation-based control key combinations work again.
...
ok nicm
2010-05-03 09:38:03 +00:00
Igor Sobrado
fc09ec3025
sort options.
2010-05-02 15:19:35 +00:00
Nicholas Marriott
99e54f46c7
Make the active pane border have a green foreground instead of
...
background by default.
2010-04-28 18:22:32 +00:00
Nicholas Marriott
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
Nicholas Marriott
83e1a33ff5
imsg.h does not need sys/tree.h.
...
ok eric
2010-04-27 21:04:04 +00:00
Nicholas Marriott
d529e7e14e
Add a tiled layout, originally from Liam Bedford a while ago, fixed up
...
by me.
2010-04-25 20:28:13 +00:00
Nicholas Marriott
6769115df2
When converting A-Z into a control character, want to subtract 64 not
...
65... whoops.
2010-04-23 14:27:04 +00:00
Nicholas Marriott
261b6b8615
Mark zombie windows as dead in choose-window list, from Romain Francoise.
2010-04-21 21:41:21 +00:00
Nicholas Marriott
3ae1b82695
Rewrite key string conversions to be readable and to work properly for
...
multiple modifiers.
2010-04-21 21:17:33 +00:00
Nicholas Marriott
67dd5df876
Catch SIGCHLD to avoid a zombie, from patrick keshishian.
2010-04-18 13:41:29 +00:00
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
ac9daf92d7
Merge copy mode and output mode, dropping the latter. Idea and code from
...
Micah Cowan.
2010-04-06 21:35:44 +00:00