diff options
author | Simo Sorce <idra@samba.org> | 2003-04-19 15:40:32 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2003-04-19 15:40:32 +0000 |
commit | e02a3f233611bb358a960822a83b4d1ad45eca13 (patch) | |
tree | a0e86c63c9c59afbfa076bcd230ce8fa97b9de2a /source3/lib/readline.c | |
parent | d97d6240e4a4f16339522e4d8e3c8bc250579519 (diff) | |
download | samba-e02a3f233611bb358a960822a83b4d1ad45eca13.tar.gz samba-e02a3f233611bb358a960822a83b4d1ad45eca13.tar.bz2 samba-e02a3f233611bb358a960822a83b4d1ad45eca13.zip |
some readline completion exancements
still need working, does not complete remote names yet
(This used to be commit 625eee8e03c3905a245e078ef9f1c26200e33d7c)
Diffstat (limited to 'source3/lib/readline.c')
-rw-r--r-- | source3/lib/readline.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/source3/lib/readline.c b/source3/lib/readline.c index 8b90c32c7f..ceb02ef749 100644 --- a/source3/lib/readline.c +++ b/source3/lib/readline.c @@ -116,6 +116,29 @@ char *smb_readline(char *prompt, void (*callback)(void), } /**************************************************************************** + * return line buffer text + ****************************************************************************/ +const char *smb_readline_get_line_buffer(void) +{ +#if defined(HAVE_LIBREADLINE) + return rl_line_buffer; +#else + return NULL; +#endif +} + + +/**************************************************************************** + * set completion append character + ***************************************************************************/ +void smb_readline_ca_char(char c) +{ +#if defined(HAVE_LIBREADLINE) + rl_completion_append_character = c; +#endif +} + +/**************************************************************************** history ****************************************************************************/ int cmd_history(void) @@ -135,3 +158,4 @@ int cmd_history(void) return 0; } + |