aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2021-03-02 10:56:45 +0000
committernicm <nicm>2021-03-02 10:56:45 +0000
commitc44750792a9683c5cd6f9df5a69e7417b88772d2 (patch)
treec60638c0067f6238a670260ce48c94a42e03acfb /tmux.h
parentde3a898e8af335325039a4165525fff1d5e1a1b0 (diff)
downloadrtmux-c44750792a9683c5cd6f9df5a69e7417b88772d2.tar.gz
rtmux-c44750792a9683c5cd6f9df5a69e7417b88772d2.tar.bz2
rtmux-c44750792a9683c5cd6f9df5a69e7417b88772d2.zip
Drop support for popups where the content is provided directly to tmux
(which does not have many practical uses) and only support running a program in the popup. display-popup is now simpler and can accept multiple arguments to avoid escaping problems (like the other commands).
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/tmux.h b/tmux.h
index fb15356a..d5e86e13 100644
--- a/tmux.h
+++ b/tmux.h
@@ -2067,9 +2067,9 @@ typedef void (*job_free_cb) (void *);
#define JOB_NOWAIT 0x1
#define JOB_KEEPWRITE 0x2
#define JOB_PTY 0x4
-struct job *job_run(const char *, struct session *, const char *,
- job_update_cb, job_complete_cb, job_free_cb, void *, int,
- int, int);
+struct job *job_run(const char *, int, char **, struct session *,
+ const char *, job_update_cb, job_complete_cb, job_free_cb,
+ void *, int, int, int);
void job_free(struct job *);
void job_resize(struct job *, u_int, u_int);
void job_check_died(pid_t, int);
@@ -3038,18 +3038,13 @@ int menu_display(struct menu *, int, struct cmdq_item *, u_int,
menu_choice_cb, void *);
/* popup.c */
-#define POPUP_WRITEKEYS 0x1
-#define POPUP_CLOSEEXIT 0x2
-#define POPUP_CLOSEEXITZERO 0x4
+#define POPUP_CLOSEEXIT 0x1
+#define POPUP_CLOSEEXITZERO 0x2
typedef void (*popup_close_cb)(int, void *);
typedef void (*popup_finish_edit_cb)(char *, size_t, void *);
-u_int popup_width(struct cmdq_item *, u_int, const char **,
- struct client *, struct cmd_find_state *);
-u_int popup_height(u_int, const char **);
int popup_display(int, struct cmdq_item *, u_int, u_int, u_int,
- u_int, u_int, const char **, const char *, const char *,
- const char *, struct client *, struct cmd_find_state *,
- popup_close_cb, void *);
+ u_int, const char *, int, char **, const char *,
+ struct client *, struct session *, popup_close_cb, void *);
int popup_editor(struct client *, const char *, size_t,
popup_finish_edit_cb, void *);