aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-20 11:51:20 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-20 11:51:20 +0000
commit1292540bb53542ed66890d60f076cc401386b26d (patch)
tree5257dde309d9062d5555f24fae6779eec433a011 /tmux.h
parent4631c074836b5b75e8b170a460f53de8f5507096 (diff)
downloadrtmux-1292540bb53542ed66890d60f076cc401386b26d.tar.gz
rtmux-1292540bb53542ed66890d60f076cc401386b26d.tar.bz2
rtmux-1292540bb53542ed66890d60f076cc401386b26d.zip
Sync OpenBSD patchset 276:
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 80b06ed2..b38c5fac 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.424 2009-08-20 11:48:01 tcunha Exp $ */
+/* $Id: tmux.h,v 1.425 2009-08-20 11:51:20 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1438,6 +1438,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);