diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-06 15:37:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-06 15:37:15 +0000 |
commit | 9cddd796ffef383893b5fd4e228f4d18673a77bd (patch) | |
tree | 995d7305b6d749eefbbeaf922f9fecf0c3031b63 /tmux.h | |
parent | 7fef12b4910fccf1b3c390f39e620448e5a9415b (diff) | |
download | rtmux-9cddd796ffef383893b5fd4e228f4d18673a77bd.tar.gz rtmux-9cddd796ffef383893b5fd4e228f4d18673a77bd.tar.bz2 rtmux-9cddd796ffef383893b5fd4e228f4d18673a77bd.zip |
Prompt history.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; }; |