|
Packit |
8f70b4 |
/*
|
|
Packit |
8f70b4 |
* lftp - file transfer program
|
|
Packit |
8f70b4 |
*
|
|
Packit |
8f70b4 |
* Copyright (c) 1996-2012 by Alexander V. Lukyanov (lav@yars.free.net)
|
|
Packit |
8f70b4 |
*
|
|
Packit |
8f70b4 |
* This program is free software; you can redistribute it and/or modify
|
|
Packit |
8f70b4 |
* it under the terms of the GNU General Public License as published by
|
|
Packit |
8f70b4 |
* the Free Software Foundation; either version 3 of the License, or
|
|
Packit |
8f70b4 |
* (at your option) any later version.
|
|
Packit |
8f70b4 |
*
|
|
Packit |
8f70b4 |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
8f70b4 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
8f70b4 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
8f70b4 |
* GNU General Public License for more details.
|
|
Packit |
8f70b4 |
*
|
|
Packit |
8f70b4 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
8f70b4 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
8f70b4 |
*/
|
|
Packit |
8f70b4 |
|
|
Packit |
8f70b4 |
#ifndef LFTP_RL_H
|
|
Packit |
8f70b4 |
#define LFTP_RL_H
|
|
Packit |
8f70b4 |
|
|
Packit |
8f70b4 |
CDECL_BEGIN
|
|
Packit |
8f70b4 |
|
|
Packit |
8f70b4 |
void lftp_readline_init (void);
|
|
Packit |
8f70b4 |
int lftp_history_expand (const char *, char **);
|
|
Packit |
8f70b4 |
char *lftp_readline (const char *prompt);
|
|
Packit |
8f70b4 |
void lftp_add_history_nodups(const char *cmd);
|
|
Packit |
8f70b4 |
void lftp_history_clear();
|
|
Packit |
8f70b4 |
void lftp_history_list(int cnt);
|
|
Packit |
8f70b4 |
int lftp_history_write(const char *fn);
|
|
Packit |
8f70b4 |
int lftp_history_read(const char *fn);
|
|
Packit |
8f70b4 |
void lftp_rl_clear(void);
|
|
Packit |
8f70b4 |
void lftp_rl_redisplay_maybe(void);
|
|
Packit |
8f70b4 |
void lftp_rl_set_ignore_some_completions_function(int (*func)(char**));
|
|
Packit |
8f70b4 |
char **lftp_rl_completion_matches(const char *text,char *(*compentry)(const char *,int));
|
|
Packit |
8f70b4 |
void lftp_rl_add_defun(const char *name,int (*func)(int,int),int key);
|
|
Packit |
8f70b4 |
void lftp_rl_bind(const char *key,const char *func);
|
|
Packit |
8f70b4 |
void lftp_rl_set_prompt(const char *p);
|
|
Packit |
8f70b4 |
void lftp_rl_write_history();
|
|
Packit |
8f70b4 |
void lftp_rl_read_history();
|
|
Packit |
8f70b4 |
void lftp_rl_history_stifle(int s);
|
|
Packit |
8f70b4 |
|
|
Packit |
8f70b4 |
void lftp_rl_init(
|
|
Packit |
8f70b4 |
const char *readline_name,
|
|
Packit |
8f70b4 |
char **(*attempted_completion_function)(const char *,int,int),
|
|
Packit |
8f70b4 |
int (*getc_function)(FILE*),
|
|
Packit |
8f70b4 |
const char *completer_quote_characters,
|
|
Packit |
8f70b4 |
const char *completer_word_break_characters,
|
|
Packit |
8f70b4 |
const char *filename_quote_characters,
|
|
Packit |
8f70b4 |
char *(*filename_quoting_function)(char *,int,char *),
|
|
Packit |
8f70b4 |
char *(*filename_dequoting_function)(const char *,int),
|
|
Packit |
8f70b4 |
int (*char_is_quoted_p)(const char *,int));
|
|
Packit |
8f70b4 |
|
|
Packit |
8f70b4 |
CDECL_END
|
|
Packit |
8f70b4 |
|
|
Packit |
8f70b4 |
#endif /* LFTP_RL_H */
|