mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Add -e flag to capture-pane to include embedded ANSI SGR escape
sequences, from George Nachman.
This commit is contained in:
parent
8a6fbfa148
commit
8478895eeb
9
tmux.1
9
tmux.1
@ -1036,9 +1036,9 @@ By default, it uses the format
|
|||||||
but a different format may be specified with
|
but a different format may be specified with
|
||||||
.Fl F .
|
.Fl F .
|
||||||
.It Xo Ic capture-pane
|
.It Xo Ic capture-pane
|
||||||
|
.Op Fl e
|
||||||
.Op Fl p
|
.Op Fl p
|
||||||
.Op Fl b Ar buffer-index
|
.Op Fl b Ar buffer-index
|
||||||
.Op Fl c Ar target-client
|
|
||||||
.Op Fl E Ar end-line
|
.Op Fl E Ar end-line
|
||||||
.Op Fl S Ar start-line
|
.Op Fl S Ar start-line
|
||||||
.Op Fl t Ar target-pane
|
.Op Fl t Ar target-pane
|
||||||
@ -1047,11 +1047,12 @@ but a different format may be specified with
|
|||||||
Capture the contents of a pane.
|
Capture the contents of a pane.
|
||||||
If
|
If
|
||||||
.Fl p
|
.Fl p
|
||||||
is given, the output goes to
|
is given, the output goes to stdout, otherwise to the buffer specified with
|
||||||
.Ar target-client
|
|
||||||
stdout, otherwise to the buffer specified with
|
|
||||||
.Fl b
|
.Fl b
|
||||||
or a new buffer if omitted.
|
or a new buffer if omitted.
|
||||||
|
If
|
||||||
|
.Fl e
|
||||||
|
is given, the output includes escape sequences for text and background attributes.
|
||||||
.Pp
|
.Pp
|
||||||
.Fl S
|
.Fl S
|
||||||
and
|
and
|
||||||
|
14
tmux.h
14
tmux.h
@ -1366,8 +1366,10 @@ struct cmd_ctx {
|
|||||||
* cmdclient and curclient may both be NULL if the command is in the
|
* cmdclient and curclient may both be NULL if the command is in the
|
||||||
* configuration file.
|
* configuration file.
|
||||||
*/
|
*/
|
||||||
struct client *curclient;
|
struct client *curclient;
|
||||||
struct client *cmdclient;
|
struct client *cmdclient;
|
||||||
|
|
||||||
|
int references;
|
||||||
|
|
||||||
struct msg_command_data *msgdata;
|
struct msg_command_data *msgdata;
|
||||||
|
|
||||||
@ -1714,13 +1716,14 @@ long long args_strtonum(
|
|||||||
struct args *, u_char, long long, long long, char **);
|
struct args *, u_char, long long, long long, char **);
|
||||||
|
|
||||||
/* cmd.c */
|
/* cmd.c */
|
||||||
|
struct cmd_ctx *cmd_get_ctx(void);
|
||||||
|
void cmd_free_ctx(struct cmd_ctx *);
|
||||||
|
void cmd_ref_ctx(struct cmd_ctx *);
|
||||||
int cmd_pack_argv(int, char **, char *, size_t);
|
int cmd_pack_argv(int, char **, char *, size_t);
|
||||||
int cmd_unpack_argv(char *, size_t, int, char ***);
|
int cmd_unpack_argv(char *, size_t, int, char ***);
|
||||||
char **cmd_copy_argv(int, char *const *);
|
char **cmd_copy_argv(int, char *const *);
|
||||||
void cmd_free_argv(int, char **);
|
void cmd_free_argv(int, char **);
|
||||||
struct cmd *cmd_parse(int, char **, char **);
|
struct cmd *cmd_parse(int, char **, char **);
|
||||||
enum cmd_retval cmd_exec(struct cmd *, struct cmd_ctx *);
|
|
||||||
void cmd_free(struct cmd *);
|
|
||||||
size_t cmd_print(struct cmd *, char *, size_t);
|
size_t cmd_print(struct cmd *, char *, size_t);
|
||||||
struct session *cmd_current_session(struct cmd_ctx *, int);
|
struct session *cmd_current_session(struct cmd_ctx *, int);
|
||||||
struct client *cmd_current_client(struct cmd_ctx *);
|
struct client *cmd_current_client(struct cmd_ctx *);
|
||||||
@ -1974,7 +1977,8 @@ void grid_clear(struct grid *, u_int, u_int, u_int, u_int);
|
|||||||
void grid_clear_lines(struct grid *, u_int, u_int);
|
void grid_clear_lines(struct grid *, u_int, u_int);
|
||||||
void grid_move_lines(struct grid *, u_int, u_int, u_int);
|
void grid_move_lines(struct grid *, u_int, u_int, u_int);
|
||||||
void grid_move_cells(struct grid *, u_int, u_int, u_int, u_int);
|
void grid_move_cells(struct grid *, u_int, u_int, u_int, u_int);
|
||||||
char *grid_string_cells(struct grid *, u_int, u_int, u_int);
|
char *grid_string_cells(struct grid *, u_int, u_int, u_int,
|
||||||
|
struct grid_cell **, int);
|
||||||
void grid_duplicate_lines(
|
void grid_duplicate_lines(
|
||||||
struct grid *, u_int, struct grid *, u_int, u_int);
|
struct grid *, u_int, struct grid *, u_int, u_int);
|
||||||
u_int grid_reflow(struct grid *, struct grid *, u_int);
|
u_int grid_reflow(struct grid *, struct grid *, u_int);
|
||||||
|
Loading…
Reference in New Issue
Block a user