From e02a3f233611bb358a960822a83b4d1ad45eca13 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 19 Apr 2003 15:40:32 +0000 Subject: some readline completion exancements still need working, does not complete remote names yet (This used to be commit 625eee8e03c3905a245e078ef9f1c26200e33d7c) --- source3/lib/readline.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'source3/lib') 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 @@ -115,6 +115,29 @@ char *smb_readline(char *prompt, void (*callback)(void), return smb_readline_replacement(prompt, callback, completion_fn); } +/**************************************************************************** + * 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 ****************************************************************************/ @@ -135,3 +158,4 @@ int cmd_history(void) return 0; } + -- cgit