summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2015-12-15Allow list-keys and list-commands to be run without a running server.Nicholas Marriott
2015-12-15We changed somewhat recently to us the pty when tmux was run insideNicholas Marriott
itself to work out the current pane. This is confusing in many cases (particularly notable is that "tmux neww\; splitw" would not split the new window), and the few advantages do not make up for the confusion. So drop this behaviour and return to using the current window and pane; keep the pty check but only use it to limit the list of possible current sessions.
2015-12-15Don't copy marked pane when can just point to it.Nicholas Marriott
2015-12-15Make the marked pane a cmd_find_state.Nicholas Marriott
2015-12-14Use cmd_find_clear_state instead of an extra function doing the same.Nicholas Marriott
2015-12-14Use long long rather than off_t for line_no to ensure that it's alwaysmmcc
64 bits. ok kettenis@
2015-12-14Work on a copy of the slowaccept flag instead of the global one asAlexandre Ratchov
it could change somewhere in the poll() loop.
2015-12-14s/begining/beginning/gmmcc
2015-12-14Remove some stray debug code.Nicholas Marriott
2015-12-14Instead of combined flags for -c, -s, -t, split into different setsNicholas Marriott
using an enum and simplify the parsing code.
2015-12-13unbreak connections with peers that set first_kex_follows;Damien Miller
fix from Matt Johnston va bz#2515
2015-12-13Use member names in cmd_entry definitions so I stop getting confusedNicholas Marriott
about the order.
2015-12-13Actually I thought cmd_get_state_client was unnecessary but it will beNicholas Marriott
needed.
2015-12-13-c needs to be able for fail for display-message.Nicholas Marriott
2015-12-13Remove an unnecessary function.Nicholas Marriott
2015-12-13show-options and environment need CANFAIL flag.Nicholas Marriott
2015-12-13Don't log an error when doing the first check for move-window.Nicholas Marriott
2015-12-13Use struct cmd_find_state directly and remove cmd_state_flag, alsoNicholas Marriott
change so that winlink is set even if an index is too.
2015-12-13Change cmd_find_target to use a state struct from the caller.Nicholas Marriott
2015-12-13If command returns error, report it.Nicholas Marriott
2015-12-13Remove the cmd_find_{session,window,pane,index} functions (which areNicholas Marriott
just wrappers around cmd_find_target) and just use cmd_find_target directly.
2015-12-13Move logging into cmd_find_target rather than each function.Nicholas Marriott
2015-12-13Instead of every command resolving the target (-t or -s) itself, prepareNicholas Marriott
the state (client, session, winlink, pane) for it it before entering the command. Each command provides some flags that tell the prepare step what it is expecting. This is a requirement for having hooks on commands (for example, if you hook "select-window -t1:2", the hook command should to operate on window 1:2 not whatever it thinks is the current window), and should allow some other target improvements. The old cmd_find_* functions remain for the moment but that layer will be dropped later. Joint work with Thomas Adam.
2015-12-12Add key-table option to set the default key table for a session, allowsNicholas Marriott
different key bindings for different sessions and a few other things.
2015-12-12Return after changing key table.Nicholas Marriott
2015-12-12Allow prefix and prefix2 to be set to None to disable (useful if youNicholas Marriott
would rather bind the prefix in the root table).
2015-12-11Use %zu to print size_t's rather than casting to int.mmcc
ok millert@
2015-12-11Use %zu to print size_t's rather than casting to u_long.mmcc
ok espie@
2015-12-11Remove NULL-checks before free().mmcc
2015-12-11Remove NULL-checks before free().mmcc
2015-12-11Add "id" to ssh-agent pledge for subprocess support.Doug Hogan
Found the hard way by Jan Johansson when using ssh-agent with X. Also, rearranged proc/exec and retval to match other pledge calls in the tree. ok djm@
2015-12-11Style nits and line wrapping of function declarations.Nicholas Marriott
2015-12-11Mention {src,dst}-{window,pane} where we define target-{window,pane}.Nicholas Marriott
2015-12-11We cannot do hooks_find and then hooks_remove because it might have comeNicholas Marriott
from the parent (global) tree, instead make it remove by name like options. While here, also tidy up a few bits of options and hooks handling (use RB_FOREACH_SAFE, and a helper function for the free).
2015-12-11Check alerts when session changes, from Patrick Palka.Nicholas Marriott
2015-12-11Add cmdq as an argument to format_create and add a format for theNicholas Marriott
command name (will also be used for more later).
2015-12-11Remove NULL-checks before sshbuf_free().mmcc
ok djm@
2015-12-11include remote port number in a few more messages; makes tying logDamien Miller
messages together into a session a bit easier; bz#2503 ok dtucker@
2015-12-11don't try to load SSHv1 private key when compiled without SSHv1Damien Miller
support. From Iain Morgan bz#2505
2015-12-11use SSH_MAX_PUBKEY_BYTES consistently as buffer size when reading keyDamien Miller
files. Increase it to match the size of the buffers already being used.
2015-12-11Remove NULL-checks before sshkey_free().mmcc
ok djm@
2015-12-11fflush stdout so that output is seen even when running in debug mode whenDarren Tucker
output may otherwise not be flushed. Patch from dustin at null-ptr.net.
2015-12-11correct error messages; from Tomas Kuthan bz#2507Damien Miller
2015-12-11Pass (char *)NULL rather than (char *)0 to execl and execlp.mmcc
ok dtucker@
2015-12-11Remove a few NULL-checks before free(). I've already removed thesemmcc
upstream.
2015-12-10Merge a lexer fix from upstream:mmcc
https://github.com/fanf2/unifdef/commit/90ca2eee76db715943ec4b7ca2892d155ca64075 Fixes the supplied test case, as expected. ok sthen@
2015-12-10Remove extraneous punctuation in DIAGNOSTICS. Reduces diff withmmcc
upstream. ok sthen@
2015-12-10Swap two DIAGNOSTICS entries to alphabetize. Reduces diff with upstream.mmcc
2015-12-10Capitalize a few error messages to reduce diff with upstream.mmcc
2015-12-10Specify SOCKS version in error messages. ok deraadt@mmcc