Blame src/lftp_rl.h

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