aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-06 15:37:15 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-06 15:37:15 +0000
commit9cddd796ffef383893b5fd4e228f4d18673a77bd (patch)
tree995d7305b6d749eefbbeaf922f9fecf0c3031b63 /tmux.h
parent7fef12b4910fccf1b3c390f39e620448e5a9415b (diff)
downloadrtmux-9cddd796ffef383893b5fd4e228f4d18673a77bd.tar.gz
rtmux-9cddd796ffef383893b5fd4e228f4d18673a77bd.tar.bz2
rtmux-9cddd796ffef383893b5fd4e228f4d18673a77bd.zip
Prompt history.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 9ade8c65..8f891079 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.205 2009-01-06 14:10:32 nicm Exp $ */
+/* $Id: tmux.h,v 1.206 2009-01-06 15:37:15 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -119,6 +119,9 @@ extern const char *__progname;
/* Default configuration file. */
#define DEFAULT_CFG ".tmux.conf"
+/* Default prompt history length. */
+#define PROMPT_HISTORY 100
+
/* Fatal errors. */
#define fatal(msg) log_fatal("%s: %s", __func__, msg);
#define fatalx(msg) log_fatalx("%s: %s", __func__, msg);
@@ -745,6 +748,8 @@ struct client {
size_t prompt_index;
void (*prompt_callback)(void *, char *);
void *prompt_data;
+ u_int prompt_hindex;
+ ARRAY_DECL(, char *) prompt_hdata;
struct session *session;
};