aboutsummaryrefslogtreecommitdiff
path: root/cmd-capture-pane.c
Commit message (Collapse)AuthorAge
* Handle empty pending output (not a failure) and add \n. From George Nachman.Nicholas Marriott2013-03-19
|
* Clean up capture-pane and add -P option to dump pending output, based on codeNicholas Marriott2013-03-11
| | | | from George Nachman.
* Preserve trailing spaces with capture-pane -J, from George Nachman.Nicholas Marriott2013-03-04
|
* Add -q flags to shut up errors to capture-pane and show-options, from GeorgeNicholas Marriott2013-03-04
| | | | Nachman.
* Add -a to capture-pane to capture alternate screen, from George Nachman.Nicholas Marriott2013-02-24
|
* Add a command queue to standardize and simplify commands that call otherNicholas Marriott2013-02-23
| | | | | | | | | | | | | | | | | | | | 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.
* Add -C and -J to capture pane to escape control sequences and to join wrappedNicholas Marriott2013-02-21
| | | | line, based on a diff from George Nachman.
* Fix so capture-pane/save-buffer can work in control clients, from GeorgeNicholas Marriott2013-02-20
| | | | Nachman.
* Add -e flag to capture-pane to include embedded ANSI SGR escape sequences, fromNicholas Marriott2013-02-19
| | | | George Nachman.
* Don't use a target-client for stdout, just always cmdclient.Nicholas Marriott2013-02-19
|
* Support capture-pane -p to send to stdout.Nicholas Marriott2013-02-15
|
* Merge branch 'obsd-master'Thomas Adam2012-12-31
|\ | | | | | | Sync from OpenBSD.
| * Use the CMD_*_USAGE defines consistently, from Thomas Adam.Nicholas Marriott2012-12-09
| |
| * Make command exec functions return an enum rather than -1/0/1 values andNicholas Marriott2012-07-11
| | | | | | | | | | | | add a new value to mean "leave client running but don't attach" to fix problems with using some commands in a command sequence. Most of the work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
| * xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
| |
| * Extend history that can be captured to INT_MIN rather thanNicholas Marriott2011-12-27
| | | | | | | | SHRT_MIN. From Chris Johnsen.
| * Another memory leak from Tiago Cunha.Nicholas Marriott2011-08-30
| |
| * Fix a couple of memory leaks, from Tiago Cunha.Nicholas Marriott2011-05-08
| |
| * Allow a start and end line to be specified for capture-pane which may beNicholas Marriott2011-03-28
| | | | | | | | | | negative to capture part of the history. Prompted by request from Victor J Orlikowski.
| * Clean up and simplify tmux command argument parsing.Nicholas Marriott2011-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.
| * Remove some unused defines.Nicholas Marriott2010-12-30
| |
| * Change from a per-session stack of buffers to one global stack which isNicholas Marriott2010-12-30
| | | | | | | | | | | | | | much more convenient and also simplifies lot of code. This renders copy-buffer useless and makes buffer-limit now a server option. By Tiago Cunha.
| * Don't leak line, from Tiago Cunha.Nicholas Marriott2010-01-20
| |
| * Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott2009-12-03
| | | | | | | | | | time now I've configured emacs to make them displayed in really annoying colours...
| * New command, capture-pane, which copies the entire pane contents to a pasteNicholas Marriott2009-12-01
| | | | buffer. From Jonathan Alvarado.
* Sync OpenBSD patchset 1151:Tiago Cunha2012-07-11
| | | | | | | | Make command exec functions return an enum rather than -1/0/1 values and add a new value to mean "leave client running but don't attach" to fix problems with using some commands in a command sequence. Most of the work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
* Sync OpenBSD patchset 1150:Tiago Cunha2012-07-11
| | | | | xfree is not particularly helpful, remove it. From Thomas Adam.
* Sync OpenBSD patchset 991:Tiago Cunha2011-12-30
| | | | | | Extend history that can be captured to INT_MIN rather than SHRT_MIN. From Chris Johnsen.
* Sync OpenBSD patchset 956:Tiago Cunha2011-09-21
| | | | | Another memory leak from Tiago Cunha.
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* Sync OpenBSD patchset 907:Tiago Cunha2011-05-18
| | | | | Fix a couple of memory leaks, from Tiago Cunha.
* |PatchSet 874Nicholas Marriott2011-04-06
| | | | | | | | | | | | |Date: 2011/03/28 21:17:39 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |Allow a start and end line to be specified for capture-pane which may be |negative to capture part of the history. Prompted by request from Victor |J Orlikowski.
* Sync OpenBSD patchset 829:Tiago Cunha2011-01-07
| | | | | | | | | | | | | | | | | | | | | | Clean up and simplify tmux command argument parsing. Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.
* Sync OpenBSD patchset 816:Tiago Cunha2010-12-31
| | | | | Remove some unused defines.
* Global paste buffers instead of per-session which renders copy-buffer useless.Tiago Cunha2010-12-30
| | | | | As a consequence buffer-limit is now a server option.
* Sync OpenBSD patchset 612:Tiago Cunha2010-01-22
| | | | | Don't leak line, from Tiago Cunha.
* Sync OpenBSD patchset 581:Tiago Cunha2009-12-04
| | | | | | | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
* Sync OpenBSD patchset 577:Tiago Cunha2009-12-02
New command, capture-pane, which copies the entire pane contents to a paste buffer. From Jonathan Alvarado.