Prompt history.

This commit is contained in:
Nicholas Marriott
2009-01-06 15:37:15 +00:00
parent 7fef12b491
commit 9cddd796ff
5 changed files with 79 additions and 6 deletions

7
tmux.h
View File

@ -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;
};