improve of cmpl.
[bush.git] / src / input / bushline.h
blob239bf4ceac558868e12ff1bed755d8096ad28967
1 /* bushline.h -- interface to the bush readline functions in bushline.c. */
3 /* Copyright (C) 1993-2019 Free Software Foundation, Inc.
5 This file is part of GNU Bush, the Bourne Again SHell.
7 Bush is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 Bush is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Bush. If not, see <http://www.gnu.org/licenses/>.
21 #if !defined (_BUSHLINE_H_)
22 #define _BUSHLINE_H_
24 #include "stdc.h"
26 extern int bush_readline_initialized;
27 extern int hostname_list_initialized;
29 /* these are controlled via shopt */
30 extern int perform_hostname_completion;
31 extern int no_empty_command_completion;
32 extern int force_fignore;
33 extern int dircomplete_spelling;
34 extern int dircomplete_expand;
35 extern int dircomplete_expand_relpath;
36 extern int complete_fullquote;
38 extern void posix_readline_initialize PARAMS((int));
39 extern void reset_completer_word_break_chars PARAMS((void));
40 extern int enable_hostname_completion PARAMS((int));
41 extern void initialize_readline PARAMS((void));
42 extern void bushline_reset PARAMS((void));
43 extern void bushline_reinitialize PARAMS((void));
44 extern int bush_re_edit PARAMS((char *));
46 extern void bushline_set_event_hook PARAMS((void));
47 extern void bushline_reset_event_hook PARAMS((void));
49 extern int bind_keyseq_to_unix_command PARAMS((char *));
50 extern int bush_execute_unix_command PARAMS((int, int));
51 extern int print_unix_command_map PARAMS((void));
52 extern int unbind_unix_command PARAMS((char *));
54 extern char **bush_default_completion PARAMS((const char *, int, int, int, int));
56 void set_directory_hook PARAMS((void));
58 /* Used by programmable completion code. */
59 extern char *command_word_completion_function PARAMS((const char *, int));
60 extern char *bush_groupname_completion_function PARAMS((const char *, int));
61 extern char *bush_servicename_completion_function PARAMS((const char *, int));
63 extern char **get_hostname_list PARAMS((void));
64 extern void clear_hostname_list PARAMS((void));
66 extern char **bush_directory_completion_matches PARAMS((const char *));
67 extern char *bush_dequote_text PARAMS((const char *));
69 #endif /* _BUSHLINE_H_ */