diff options
| author | christos <christos@NetBSD.org> | 2003-10-27 22:26:35 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2003-10-27 22:26:35 +0000 |
| commit | 8b40dcaecfe82fefb970c74e08a39138aa996bd4 (patch) | |
| tree | 11554b86e9ac06a9c8fc63a1049cf0fa5c110e71 /lib/libedit/readline | |
| parent | 2ba4302402fd66d99b686a45b2e1407a650e1def (diff) | |
Make readline csh-like history work.
From Gerry Swislow <gerry at certif dot com>.
Diffstat (limited to 'lib/libedit/readline')
| -rw-r--r-- | lib/libedit/readline/readline.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/libedit/readline/readline.h b/lib/libedit/readline/readline.h index 1613ee6efd3..59f5f0970fe 100644 --- a/lib/libedit/readline/readline.h +++ b/lib/libedit/readline/readline.h @@ -1,4 +1,4 @@ -/* $NetBSD: readline.h,v 1.9 2003/10/16 22:26:32 christos Exp $ */ +/* $NetBSD: readline.h,v 1.10 2003/10/27 22:26:35 christos Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _READLINE_H_ -#define _READLINE_H_ +#define _READLINE_H_ #include <sys/types.h> @@ -55,9 +55,9 @@ typedef struct _hist_entry { typedef struct _keymap_entry { char type; -#define ISFUNC 0 -#define ISKMAP 1 -#define ISMACR 2 +#define ISFUNC 0 +#define ISKMAP 1 +#define ISMACR 2 Function *function; } KEYMAP_ENTRY; @@ -80,8 +80,8 @@ typedef KEYMAP_ENTRY *Keymap; #define UNCTRL(c) (((c) - 'a' + 'A')|control_character_bit) #endif -#define RUBOUT 0x7f -#define ABORT_CHAR CTRL('G') +#define RUBOUT 0x7f +#define ABORT_CHAR CTRL('G') /* global variables used by readline enabled applications */ #ifdef __cplusplus @@ -147,6 +147,8 @@ int read_history(const char *); int write_history(const char *); int history_expand(char *, char **); char **history_tokenize(const char *); +const char *get_history_event(const char *, int *, int); +char *history_arg_extract(int, int, const char *); char *tilde_expand(char *); char *filename_completion_function(const char *, int); @@ -170,13 +172,13 @@ void rl_deprep_terminal(void); int rl_read_init_file(const char *); int rl_parse_and_bind(const char *); void rl_stuff_char(int); +int rl_add_defun(const char *, Function *, int); /* * The following are not implemented */ Keymap rl_get_keymap(void); Keymap rl_make_bare_keymap(void); -int rl_add_defun(const char *, Function *, int); int rl_generic_bind(int, const char *, const char *, Keymap); int rl_bind_key_in_map(int, Function *, Keymap); #ifdef __cplusplus |
