Instant Terminal Sharing
Go to file
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
array.h Use the array.h code for the causes list. 2010-02-06 23:22:27 +00:00
attributes.c Accept (and document) "none" instead of "default" for attributes as it 2010-05-14 18:56:21 +00:00
cfg.c Use the array.h code for the causes list. 2010-02-06 23:22:27 +00:00
client.c Catch SIGHUP and terminate if running as a client. This prevents clients 2010-05-12 15:05:39 +00:00
clock.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-attach-session.c Support attaching a client read-only with a new -r flag to the attach-session 2010-02-06 22:55:31 +00:00
cmd-bind-key.c Don't leak if arguments appear multiple times, from Tiago Cunha. 2010-01-23 17:50:56 +00:00
cmd-break-pane.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-capture-pane.c Don't leak line, from Tiago Cunha. 2010-01-20 18:30:20 +00:00
cmd-choose-client.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-choose-session.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-choose-window.c Mark zombie windows as dead in choose-window list, from Romain Francoise. 2010-04-21 21:41:21 +00:00
cmd-clear-history.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-clock-mode.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-command-prompt.c Identical behaviour to select-prompt can now be obtained with 2010-05-05 23:24:23 +00:00
cmd-confirm-before.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-copy-buffer.c Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to 2009-11-26 21:37:13 +00:00
cmd-copy-mode.c Merge copy mode and output mode, dropping the latter. Idea and code from 2010-04-06 21:35:44 +00:00
cmd-delete-buffer.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-detach-client.c Support attaching a client read-only with a new -r flag to the attach-session 2010-02-06 22:55:31 +00:00
cmd-display-message.c Add a -p flag to display-message to print the output rather than displaying in 2009-11-24 19:16:11 +00:00
cmd-display-panes.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-find-window.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-generic.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-has-session.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-if-shell.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-join-pane.c Fix use-after-free of the window link when it is part of a grouped 2010-04-17 23:14:17 +00:00
cmd-kill-pane.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-kill-server.c Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to 2009-11-26 21:37:13 +00:00
cmd-kill-session.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-kill-window.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-last-window.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-link-window.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-list-buffers.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-list-clients.c Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to 2009-11-26 21:37:13 +00:00
cmd-list-commands.c Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to 2009-11-26 21:37:13 +00:00
cmd-list-keys.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-list-panes.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-list-sessions.c Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to 2009-11-26 21:37:13 +00:00
cmd-list-windows.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-list.c Reset output functions too when changing client after attaching, to 2010-03-22 19:14:55 +00:00
cmd-load-buffer.c In load-buffer, read until EOF rather than using stat() and reading a fixed 2010-02-22 20:33:12 +00:00
cmd-lock-client.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-lock-server.c Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to 2009-11-26 21:37:13 +00:00
cmd-lock-session.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-move-window.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-new-session.c Merge copy mode and output mode, dropping the latter. Idea and code from 2010-04-06 21:35:44 +00:00
cmd-new-window.c -a flag to insert a window after an existing one, moving other windows 2010-03-27 11:46:58 +00:00
cmd-next-layout.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-next-window.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-paste-buffer.c Enhance paste-buffer to allow lines to be separated by any string, from 2010-05-19 22:28:14 +00:00
cmd-pipe-pane.c Put this back in with the initialisation in the right order. 2010-05-04 17:28:16 +00:00
cmd-previous-layout.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-previous-window.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-refresh-client.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-rename-session.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-rename-window.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-resize-pane.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-respawn-window.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-rotate-window.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-run-shell.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-save-buffer.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-select-layout.c Add a tiled layout, originally from Liam Bedford a while ago, fixed up 2010-04-25 20:28:13 +00:00
cmd-select-pane.c Support up, down, left, right movement through panes with -UDLR flags to 2010-03-22 19:07:52 +00:00
cmd-select-window.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-send-keys.c Pass in the session, rather than the client, to window modes' key() 2010-05-23 19:42:19 +00:00
cmd-send-prefix.c Pass in the session, rather than the client, to window modes' key() 2010-05-23 19:42:19 +00:00
cmd-server-info.c Add "server options" which are server-wide and not bound to a session or 2009-12-10 09:16:52 +00:00
cmd-set-buffer.c Tidy up various bits of the paste code, make the data buffer char * and add 2009-11-26 22:28:24 +00:00
cmd-set-environment.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-set-option.c Colour+attribute options for status line alerts, from Alex Alexander. 2010-05-14 19:03:09 +00:00
cmd-set-window-option.c Eliminate duplicate code and ease the passage for server-wide options by adding 2009-12-03 17:44:02 +00:00
cmd-show-buffer.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-show-environment.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-show-messages.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-show-options.c Add "server options" which are server-wide and not bound to a session or 2009-12-10 09:16:52 +00:00
cmd-show-window-options.c Eliminate duplicate code and ease the passage for server-wide options by adding 2009-12-03 17:44:02 +00:00
cmd-source-file.c Use the array.h code for the causes list. 2010-02-06 23:22:27 +00:00
cmd-split-window.c New command, join-pane, to split and move an existing pane into the space (like 2010-01-07 20:52:18 +00:00
cmd-start-server.c Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to 2009-11-26 21:37:13 +00:00
cmd-string.c have_arg matches buf so it is no longer necessary, spotted by Tim van der 2010-02-19 17:14:23 +00:00
cmd-suspend-client.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-swap-pane.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd-swap-window.c Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the 2009-11-13 19:53:28 +00:00
cmd-switch-client.c Don't leak if arguments appear multiple times, from Tiago Cunha. 2010-01-23 17:50:56 +00:00
cmd-unbind-key.c Don't leak if arguments appear multiple times, from Tiago Cunha. 2010-01-23 17:50:56 +00:00
cmd-unlink-window.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
cmd.c Identical behaviour to select-prompt can now be obtained with 2010-05-05 23:24:23 +00:00
colour.c Permit options such as status-bg to be configured using the entire 256 colour 2009-09-10 17:16:24 +00:00
environ.c Run job commands explicitly in the global enviroment (which can be 2010-04-04 19:02:09 +00:00
grid-utf8.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
grid-view.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
grid.c Merge copy mode and output mode, dropping the latter. Idea and code from 2010-04-06 21:35:44 +00:00
imsg-buffer.c Enclose repeated buffer draining code in a new msgbuf_drain() 2009-09-15 18:12:51 +00:00
imsg.c Remove XXX comment and just close received fd if calloc() fails. 2010-04-07 18:09:39 +00:00
imsg.h imsg.h does not need sys/tree.h. 2010-04-27 21:04:04 +00:00
input-keys.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
input.c Fix typo in escape state table leading to fatal() when \033} or \033~ 2010-04-17 23:31:09 +00:00
job.c Put this back in with the initialisation in the right order. 2010-05-04 17:28:16 +00:00
key-bindings.c Identical behaviour to select-prompt can now be obtained with 2010-05-05 23:24:23 +00:00
key-string.c Make C-] and other punctuation-based control key combinations work again. 2010-05-03 09:38:03 +00:00
layout-set.c Add a tiled layout, originally from Liam Bedford a while ago, fixed up 2010-04-25 20:28:13 +00:00
layout-string.c $OpenBSD$ not $Id$ 2010-01-08 17:44:27 +00:00
layout.c New command, join-pane, to split and move an existing pane into the space (like 2010-01-07 20:52:18 +00:00
log.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
Makefile Identical behaviour to select-prompt can now be obtained with 2010-05-05 23:24:23 +00:00
mode-key.c Add vi-style "jump" commands for copy mode, from Micah Cowan. 2010-03-22 19:10:42 +00:00
names.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
options.c Permit multiple prefix keys to be defined, separated by commas, for example: 2009-09-22 12:38:10 +00:00
paste.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
procname.c Use sysctl() KERN_PROC2 instead of KERN_PROC, as the latter's ABI 2009-12-24 22:29:15 +00:00
resize.c Don't allow locked or suspended clients to limit the size of active clients. 2009-09-24 07:02:56 +00:00
screen-redraw.c Option to display the active pane in a different colour with the display-panes 2010-02-04 18:20:16 +00:00
screen-write.c Merge copy mode and output mode, dropping the latter. Idea and code from 2010-04-06 21:35:44 +00:00
screen.c Merge copy mode and output mode, dropping the latter. Idea and code from 2010-04-06 21:35:44 +00:00
server-client.c Pass in the session, rather than the client, to window modes' key() 2010-05-23 19:42:19 +00:00
server-fn.c If remain-on-exit is set, both the error callback and a SIGCHLD could 2010-04-17 23:25:16 +00:00
server-window.c copy mode uses the real screen as backing and if it is updated while copying, 2010-02-19 00:03:21 +00:00
server.c Put this back in with the initialisation in the right order. 2010-05-04 17:28:16 +00:00
session.c Fix a couple of problems with grouped sessions reported by danh: redraw 2009-12-22 10:20:08 +00:00
signal.c Use $OpenBSD$. 2010-05-14 14:41:06 +00:00
status.c Colour+attribute options for status line alerts, from Alex Alexander. 2010-05-14 19:03:09 +00:00
tmux.1 Enhance paste-buffer to allow lines to be separated by any string, from 2010-05-19 22:28:14 +00:00
tmux.c Colour+attribute options for status line alerts, from Alex Alexander. 2010-05-14 19:03:09 +00:00
tmux.h Pass in the session, rather than the client, to window modes' key() 2010-05-23 19:42:19 +00:00
tty-keys.c Accept a full key match (not a partial) even if there is data left in 2010-03-22 19:03:52 +00:00
tty-term.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00
tty.c Check for colour and attribute modifications early so the translated 2010-03-01 22:44:31 +00:00
utf8.c %zu not %u, doh. 2009-10-20 22:17:33 +00:00
window-choose.c Pass in the session, rather than the client, to window modes' key() 2010-05-23 19:42:19 +00:00
window-clock.c Pass in the session, rather than the client, to window modes' key() 2010-05-23 19:42:19 +00:00
window-copy.c Pass in the session, rather than the client, to window modes' key() 2010-05-23 19:42:19 +00:00
window.c Pass in the session, rather than the client, to window modes' key() 2010-05-23 19:42:19 +00:00
xmalloc.c tabs are better; ok nicm 2009-10-26 21:42:04 +00:00
xterm-keys.c Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last 2009-12-03 22:50:09 +00:00