Allocate history scrollback buffer at runtime instead of at configure.

Also make sure "unique history" is enabled by default in configure.
This commit is contained in:
Joachim Nilsson
2010-08-04 02:12:19 +02:00
parent 55aaddbc54
commit 04a0cbd902
5 changed files with 42 additions and 55 deletions

View File

@@ -47,9 +47,11 @@ extern int rl_mark;
extern int rl_end;
extern char *rl_line_buffer;
extern const char *rl_readline_name;
extern int el_no_echo; /* e.g under emacs, don't echo except prompt */
extern void rl_reset_terminal(char *p);
extern int el_no_echo; /* e.g under emacs, don't echo except prompt */
extern int el_hist_size; /* size of history scrollback buffer, default: 15 */
extern void rl_initialize(void);
extern void rl_reset_terminal(char *p);
extern char *readline(const char *prompt);
extern void add_history(const char *line);