summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2013-03-25Rename session idx to session id throughout and add $ prefix to targetsNicholas Marriott
to use it, extended from a diff from George Nachman.
2013-03-25Add wait-for -L and -U for lock and unlock, from Thiago Padilha.Nicholas Marriott
2013-03-25Add a wait-for command which blocks a client on a named channel until itNicholas Marriott
is woken up again (with wait-for -S). From Thiago Padilha.
2013-03-25Allow lastgc to be NULL in grid_string_cells so find-window doesn'tNicholas Marriott
crash, problem reported by eugene everson.
2013-03-25Do not leak command in formats, from Romain Francoise.Nicholas Marriott
2013-03-25Add some additional debug logging.Nicholas Marriott
2013-03-25Continue the parent cmdq after sourcing a file.Nicholas Marriott
2013-03-25Preserve trailing spaces with capture-pane -J, from George Nachman.Nicholas Marriott
2013-03-25Print %%error not %%end guard on error, from George Nachman.Nicholas Marriott
2013-03-25tty.path can be NULL, don't dereference it. From George Nachman.Nicholas Marriott
2013-03-25Remove some unused/unnecessary control notifications, from George Nachman.Nicholas Marriott
2013-03-25Add -q flags to shut up errors to capture-pane and show-options, fromNicholas Marriott
George Nachman.
2013-03-25Send DSC 1000p at the beginning of a -CC client's lifetime and ST andNicholas Marriott
the end, from George Nachman.
2013-03-25Remove previous.Nicholas Marriott
2013-03-25Plug small memory leak in run-shell. Don't potentially leak the commandNicholas Marriott
to run were it to fail.
2013-03-25Add -a to capture-pane to capture alternate screen, from George Nachman.Nicholas Marriott
2013-03-25Use \\ not \ for escaping \.Nicholas Marriott
2013-03-24Do not leak kernel pointers, unless operating as root. Some other displayTheo de Raadt
functionality is lost, but one can argue that privacy was being violated there... ok various, including bluhm and guenther
2013-03-24Add -A flag to new-session to make it behave like attach-session if theNicholas Marriott
session exists. If -A is used, -D behaves like -d to attach-session.
2013-03-24Add resize-pane -Z to temporary zoom the active pane to occupy the fullNicholas Marriott
window or unzoom (restored to the normal layout) if it already zoomed, bound to C-b z by default. The pane is unzoomed on pretty much any excuse whatsoever. We considered making this a new layout but the requirements are quite different from layouts so decided it is better as a special case. Each current layout cell is saved, a temporary one-cell layout generated and all except the active pane set to NULL. Prompted by suggestions and scripts from several. Thanks to Aaron Jensen and Thiago Padilha for testing an earlier version.
2013-03-24Add a -o option to set-option to prevent setting an option already set,Nicholas Marriott
from Thiago Padilha.
2013-03-24Add a command queue to standardize and simplify commands that call otherNicholas Marriott
commands and allow a command to block execution of subsequent commands. This allows run-shell and if-shell to be synchronous which has been much requested. Each client has a default command queue and commands are consumed one at a time from it. A command may suspend execution from the queue by returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example run-shell does this from the callback that is fired after the job is freed. When the command queue becomes empty, command clients are automatically exited (unless attaching). A callback is also fired - this is used for nested commands in, for example, if-shell which can block execution of the client's cmdq until a new cmdq becomes empty. Also merge all the old error/info/print functions together and lose the old curclient/cmdclient distinction - a cmdq is bound to one client (or none if in the configuration file), this is a command client if c->session is NULL otherwise an attached client.
2013-03-24Expand format variables in the run-shell and if-shell shell commands,Nicholas Marriott
from Thiago Padilha.
2013-03-24Merge send-prefix into send-keys.Nicholas Marriott
2013-03-24Merge show-buffer into save-buffer.Nicholas Marriott
2013-03-24Add pane_tabs format to format_window_pane based on code from GeorgeNicholas Marriott
Nachman.
2013-03-24Handle focus events from the terminal, from Aaron Jensen.Nicholas Marriott
2013-03-24Fix error reporting for client commands by adding a flag toNicholas Marriott
cmd_find_client to tell it whether or not to show errors, sometimes it's needed and sometimes not.
2013-03-24Allow display-message with no curclient.Nicholas Marriott
2013-03-24Do pane resize ioctls once at the end of the server loop rather thanNicholas Marriott
immediately.
2013-03-24Whoops fix build.Nicholas Marriott
2013-03-24Add option command-prefix which is automatically prepended to anyNicholas Marriott
command (apart from a naked default-shell). The default is "exec ".
2013-03-24Add pane_current_command format.Nicholas Marriott
2013-03-24Add support for focus notifications when tmux pane changes, based onNicholas Marriott
work by Aaron Jensen.
2013-03-24tic writes into /usr/share/terminfo not /usr/share/misc/terminfo,Nicholas Marriott
pointed out by creamy at nocrater dot com. ok millert
2013-03-23wchan is no longer exposed, just check if wmesg is not empty.Ted Unangst
(wmesg hasn't itself been a pointer since conversion to kinfo_proc.) noticed by sthen. ok deraadt jsing millert sthen
2013-03-22Couple of fixes pointed out by jmc.Nicholas Marriott
2013-03-22Add a load of miscellaneous pane formats, from George Nachman.Nicholas Marriott
2013-03-22Add session_set_current helper function, extracted from a diff fromNicholas Marriott
Aaron Jensen.
2013-03-22Add -C and -J to capture pane to escape control sequences and to joinNicholas Marriott
wrapped line, based on a diff from George Nachman.
2013-03-22evbuffer_readline returns allocated storage, don't leak it.Nicholas Marriott
2013-03-22Need to set clients in context before changing their reference count.Nicholas Marriott
2013-03-22Clear last attributes after reset in string_cells, from George Nachman.Nicholas Marriott
2013-03-22Fix so capture-pane/save-buffer can work in control clients, from GeorgeNicholas Marriott
Nachman.
2013-03-22Add copy-pipe mode command to copy selection and also pipe to a command.Nicholas Marriott
2013-03-22Add -e flag to capture-pane to include embedded ANSI SGR escapeNicholas Marriott
sequences, from George Nachman.
2013-03-22Don't use a target-client for stdout, just always cmdclient.Nicholas Marriott
2013-03-22Remove unnecessary initializers of cmd_ctx.Nicholas Marriott
2013-03-22load_cfg can actually use the same context now they are reference counted.Nicholas Marriott
2013-03-22Add functions to allocate and free command contexts rather than doing itNicholas Marriott
all on the stack.