aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-19 10:39:50 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-19 10:39:50 +0000
commit3f4418d84dd8865f1bba410fc796acb53277abbf (patch)
tree8e77d873046cb99f6d4cbd9a8a1528a5d6f575c3 /tmux.h
parent036de0c5e44ba374707e86b313e4f848488ebdea (diff)
downloadrtmux-3f4418d84dd8865f1bba410fc796acb53277abbf.tar.gz
rtmux-3f4418d84dd8865f1bba410fc796acb53277abbf.tar.bz2
rtmux-3f4418d84dd8865f1bba410fc796acb53277abbf.zip
Extend command-prompt with a -p option which is a comma-separated list of one
or more prompts to present in order. The responses to the prompt are replaced in the template string: %% are replaced in order, so the first prompt replaces the first %%, the second replaces the second, and so on. In addition, %1 up to %9 are replaced with the responses to the first the ninth prompts The default template is "%1" so the response to the first prompt is processed as a command. Note that this changes the behaviour for %% so if there is only one prompt, only the first %% will be replaced. Templates such as "neww -n '%%' 'ssh %%'" should be changed to "neww -n '%1' 'ssh %1'". From Tiago Cunha.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index f70d1f5c..4b388360 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1440,6 +1440,7 @@ void status_prompt_set(struct client *, const char *,
void status_prompt_clear(struct client *);
int status_prompt_redraw(struct client *);
void status_prompt_key(struct client *, int);
+void status_prompt_update(struct client *, const char *);
/* resize.c */
void recalculate_sizes(void);