1/* $FreeBSD: head/contrib/libreadline/readline.h 58314 2000-03-19 22:00:57Z ache $ */
2/* Readline.h -- the names of functions callable from within readline. */
3
4/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc.
5
6 This file is part of the GNU Readline Library, a library for
7 reading lines of text with interactive input and history editing.
8
9 The GNU Readline Library is free software; you can redistribute it
10 and/or modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2, or
12 (at your option) any later version.
13
14 The GNU Readline Library is distributed in the hope that it will be
15 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
16 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 The GNU General Public License is often shipped with GNU software, and
20 is generally kept in a file called COPYING or LICENSE. If you do not
21 have a copy of the license, write to the Free Software Foundation,
22 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
23
24#if !defined (_READLINE_H_)
25#define _READLINE_H_
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#if defined (READLINE_LIBRARY)
--- 156 unchanged lines hidden (view full) ---
188/* Bindable commands for incremental and non-incremental history searching. */
189extern int rl_history_search_forward __P((int, int));
190extern int rl_history_search_backward __P((int, int));
191extern int rl_noninc_forward_search __P((int, int));
192extern int rl_noninc_reverse_search __P((int, int));
193extern int rl_noninc_forward_search_again __P((int, int));
194extern int rl_noninc_reverse_search_again __P((int, int));
195
196/* Bindable command used when inserting a matching close character. */
197extern int rl_insert_close __P((int, int));
198
199/* Not available unless READLINE_CALLBACKS is defined. */
200extern void rl_callback_handler_install __P((char *, VFunction *));
201extern void rl_callback_read_char __P((void));
202extern void rl_callback_handler_remove __P((void));
203
204/* Things for vi mode. Not available unless readline is compiled -DVI_MODE. */
--- 91 unchanged lines hidden (view full) ---
296extern void rl_function_dumper __P((int));
297extern void rl_macro_dumper __P((int));
298extern void rl_variable_dumper __P((int));
299
300extern int rl_read_init_file __P((char *));
301extern int rl_parse_and_bind __P((char *));
302
303/* Functions for manipulating keymaps. */
304extern Keymap rl_make_bare_keymap __P((void));
305extern Keymap rl_copy_keymap __P((Keymap));
306extern Keymap rl_make_keymap __P((void));
307extern void rl_discard_keymap __P((Keymap));
308
309extern Keymap rl_get_keymap_by_name __P((char *));
310extern char *rl_get_keymap_name __P((Keymap));
311extern void rl_set_keymap __P((Keymap));
312extern Keymap rl_get_keymap __P((void));
313extern void rl_set_keymap_from_edit_mode __P((void));
314extern char *rl_get_keymap_name_from_edit_mode __P((void));
315
316/* Functions for manipulating the funmap, which maps command names to functions. */
317extern int rl_add_funmap_entry __P((char *, Function *));
318extern void rl_initialize_funmap __P((void));
319extern char **rl_funmap_names __P((void));
320
--- 6 unchanged lines hidden (view full) ---
327extern int rl_do_undo __P((void));
328extern int rl_begin_undo_group __P((void));
329extern int rl_end_undo_group __P((void));
330extern int rl_modifying __P((int, int));
331
332/* Functions for redisplay. */
333extern void rl_redisplay __P((void));
334extern int rl_on_new_line __P((void));
335extern int rl_on_new_line_with_prompt __P((void));
336extern int rl_forced_update_display __P((void));
337extern int rl_clear_message __P((void));
338extern int rl_reset_line_state __P((void));
339
340#if (defined (__STDC__) || defined (__cplusplus)) && defined (USE_VARARGS) && defined (PREFER_STDARG)
341extern int rl_message (const char *, ...);
342#else
343extern int rl_message ();
344#endif
345
346/* Undocumented in texinfo manual. */
347extern int rl_show_char __P((int));
348extern int rl_character_len __P((int, int));
--- 53 unchanged lines hidden (view full) ---
402/* */
403/* Well Published Variables */
404/* */
405/* **************************************************************** */
406
407/* The version of this incarnation of the readline library. */
408extern char *rl_library_version;
409
410/* True if this is real GNU readline. */
411extern int rl_gnu_readline_p;
412
413/* The name of the calling program. You should initialize this to
414 whatever was in argv[0]. It is used when parsing conditionals. */
415extern char *rl_readline_name;
416
417/* The prompt readline uses. This is set from the argument to
418 readline (), and should not be assigned to directly. */
419extern char *rl_prompt;
420
--- 47 unchanged lines hidden (view full) ---
468extern Keymap rl_binding_keymap;
469
470/* Display variables. */
471/* If non-zero, readline will erase the entire line, including any prompt,
472 if the only thing typed on an otherwise-blank line is something bound to
473 rl_newline. */
474extern int rl_erase_empty_line;
475
476/* If non-zero, the application has already printed the prompt (rl_prompt)
477 before calling readline, so readline should not output it the first time
478 redisplay is done. */
479extern int rl_already_prompted;
480
481/* A non-zero value means to read only this many characters rather than
482 up to a character bound to accept-line. */
483extern int rl_num_chars_to_read;
484
485/* Variables to control readline signal handling. */
486/* If non-zero, readline will install its own signal handlers for
487 SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */
488extern int rl_catch_signals;
489
490/* If non-zero, readline will install a signal handler for SIGWINCH
491 that also attempts to call any calling application's SIGWINCH signal
492 handler. Note that the terminal is not cleaned up before the
--- 128 unchanged lines hidden (view full) ---
621/* Possible values for do_replace argument to rl_filename_quoting_function,
622 called by rl_complete_internal. */
623#define NO_MATCH 0
624#define SINGLE_MATCH 1
625#define MULT_MATCH 2
626
627#if !defined (savestring)
628#define savestring rl_savestring
629extern char *savestring __P((char *)); /* XXX backwards compatibility */
630#endif
631
632#ifdef __cplusplus
633}
634#endif
635
636#endif /* _READLINE_H_ */
2/* Readline.h -- the names of functions callable from within readline. */
3
4/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc.
5
6 This file is part of the GNU Readline Library, a library for
7 reading lines of text with interactive input and history editing.
8
9 The GNU Readline Library is free software; you can redistribute it
10 and/or modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2, or
12 (at your option) any later version.
13
14 The GNU Readline Library is distributed in the hope that it will be
15 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
16 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 The GNU General Public License is often shipped with GNU software, and
20 is generally kept in a file called COPYING or LICENSE. If you do not
21 have a copy of the license, write to the Free Software Foundation,
22 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
23
24#if !defined (_READLINE_H_)
25#define _READLINE_H_
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#if defined (READLINE_LIBRARY)
--- 156 unchanged lines hidden (view full) ---
188/* Bindable commands for incremental and non-incremental history searching. */
189extern int rl_history_search_forward __P((int, int));
190extern int rl_history_search_backward __P((int, int));
191extern int rl_noninc_forward_search __P((int, int));
192extern int rl_noninc_reverse_search __P((int, int));
193extern int rl_noninc_forward_search_again __P((int, int));
194extern int rl_noninc_reverse_search_again __P((int, int));
195
196/* Bindable command used when inserting a matching close character. */
197extern int rl_insert_close __P((int, int));
198
199/* Not available unless READLINE_CALLBACKS is defined. */
200extern void rl_callback_handler_install __P((char *, VFunction *));
201extern void rl_callback_read_char __P((void));
202extern void rl_callback_handler_remove __P((void));
203
204/* Things for vi mode. Not available unless readline is compiled -DVI_MODE. */
--- 91 unchanged lines hidden (view full) ---
296extern void rl_function_dumper __P((int));
297extern void rl_macro_dumper __P((int));
298extern void rl_variable_dumper __P((int));
299
300extern int rl_read_init_file __P((char *));
301extern int rl_parse_and_bind __P((char *));
302
303/* Functions for manipulating keymaps. */
304extern Keymap rl_make_bare_keymap __P((void));
305extern Keymap rl_copy_keymap __P((Keymap));
306extern Keymap rl_make_keymap __P((void));
307extern void rl_discard_keymap __P((Keymap));
308
309extern Keymap rl_get_keymap_by_name __P((char *));
310extern char *rl_get_keymap_name __P((Keymap));
311extern void rl_set_keymap __P((Keymap));
312extern Keymap rl_get_keymap __P((void));
313extern void rl_set_keymap_from_edit_mode __P((void));
314extern char *rl_get_keymap_name_from_edit_mode __P((void));
315
316/* Functions for manipulating the funmap, which maps command names to functions. */
317extern int rl_add_funmap_entry __P((char *, Function *));
318extern void rl_initialize_funmap __P((void));
319extern char **rl_funmap_names __P((void));
320
--- 6 unchanged lines hidden (view full) ---
327extern int rl_do_undo __P((void));
328extern int rl_begin_undo_group __P((void));
329extern int rl_end_undo_group __P((void));
330extern int rl_modifying __P((int, int));
331
332/* Functions for redisplay. */
333extern void rl_redisplay __P((void));
334extern int rl_on_new_line __P((void));
335extern int rl_on_new_line_with_prompt __P((void));
336extern int rl_forced_update_display __P((void));
337extern int rl_clear_message __P((void));
338extern int rl_reset_line_state __P((void));
339
340#if (defined (__STDC__) || defined (__cplusplus)) && defined (USE_VARARGS) && defined (PREFER_STDARG)
341extern int rl_message (const char *, ...);
342#else
343extern int rl_message ();
344#endif
345
346/* Undocumented in texinfo manual. */
347extern int rl_show_char __P((int));
348extern int rl_character_len __P((int, int));
--- 53 unchanged lines hidden (view full) ---
402/* */
403/* Well Published Variables */
404/* */
405/* **************************************************************** */
406
407/* The version of this incarnation of the readline library. */
408extern char *rl_library_version;
409
410/* True if this is real GNU readline. */
411extern int rl_gnu_readline_p;
412
413/* The name of the calling program. You should initialize this to
414 whatever was in argv[0]. It is used when parsing conditionals. */
415extern char *rl_readline_name;
416
417/* The prompt readline uses. This is set from the argument to
418 readline (), and should not be assigned to directly. */
419extern char *rl_prompt;
420
--- 47 unchanged lines hidden (view full) ---
468extern Keymap rl_binding_keymap;
469
470/* Display variables. */
471/* If non-zero, readline will erase the entire line, including any prompt,
472 if the only thing typed on an otherwise-blank line is something bound to
473 rl_newline. */
474extern int rl_erase_empty_line;
475
476/* If non-zero, the application has already printed the prompt (rl_prompt)
477 before calling readline, so readline should not output it the first time
478 redisplay is done. */
479extern int rl_already_prompted;
480
481/* A non-zero value means to read only this many characters rather than
482 up to a character bound to accept-line. */
483extern int rl_num_chars_to_read;
484
485/* Variables to control readline signal handling. */
486/* If non-zero, readline will install its own signal handlers for
487 SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */
488extern int rl_catch_signals;
489
490/* If non-zero, readline will install a signal handler for SIGWINCH
491 that also attempts to call any calling application's SIGWINCH signal
492 handler. Note that the terminal is not cleaned up before the
--- 128 unchanged lines hidden (view full) ---
621/* Possible values for do_replace argument to rl_filename_quoting_function,
622 called by rl_complete_internal. */
623#define NO_MATCH 0
624#define SINGLE_MATCH 1
625#define MULT_MATCH 2
626
627#if !defined (savestring)
628#define savestring rl_savestring
629extern char *savestring __P((char *)); /* XXX backwards compatibility */
630#endif
631
632#ifdef __cplusplus
633}
634#endif
635
636#endif /* _READLINE_H_ */