summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-22 15:51:54 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-22 15:51:54 +0000
commit8478895eeb014a4219c4d61edd598c05b073db68 (patch)
treec8867ec01619c1f1cfa9c0e7ad3b101a1116d547 /tmux.h
parent8a6fbfa14829ad41b9b6f05f4382d8f4537b7271 (diff)
Add -e flag to capture-pane to include embedded ANSI SGR escape
sequences, from George Nachman.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/tmux.h b/tmux.h
index 849ee827..deb52da1 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1366,8 +1366,10 @@ struct cmd_ctx {
* cmdclient and curclient may both be NULL if the command is in the
* configuration file.
*/
- struct client *curclient;
- struct client *cmdclient;
+ struct client *curclient;
+ struct client *cmdclient;
+
+ int references;
struct msg_command_data *msgdata;
@@ -1714,13 +1716,14 @@ long long args_strtonum(
struct args *, u_char, long long, long long, char **);
/* 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_unpack_argv(char *, size_t, int, char ***);
char **cmd_copy_argv(int, char *const *);
void cmd_free_argv(int, 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);
struct session *cmd_current_session(struct cmd_ctx *, int);
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_move_lines(struct grid *, 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(
struct grid *, u_int, struct grid *, u_int, u_int);
u_int grid_reflow(struct grid *, struct grid *, u_int);