| readline.h | | readline.h | |
| /* Readline.h -- the names of functions callable from within readline. */ | | /* Readline.h -- the names of functions callable from within readline. */ | |
| | | | |
|
| /* Copyright (C) 1987-2011 Free Software Foundation, Inc. | | /* Copyright (C) 1987-2013 Free Software Foundation, Inc. | |
| | | | |
| This file is part of the GNU Readline Library (Readline), a library | | This file is part of the GNU Readline Library (Readline), a library | |
| for reading lines of text with interactive input and history editing. | | for reading lines of text with interactive input and history editing. | |
| | | | |
| Readline is free software: you can redistribute it and/or modify | | Readline is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | | it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | | the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. | | (at your option) any later version. | |
| | | | |
| Readline is distributed in the hope that it will be useful, | | Readline is distributed in the hope that it will be useful, | |
| | | | |
| skipping to change at line 42 | | skipping to change at line 42 | |
| # include "keymaps.h" | | # include "keymaps.h" | |
| # include "tilde.h" | | # include "tilde.h" | |
| #else | | #else | |
| # include <readline/rlstdc.h> | | # include <readline/rlstdc.h> | |
| # include <readline/rltypedefs.h> | | # include <readline/rltypedefs.h> | |
| # include <readline/keymaps.h> | | # include <readline/keymaps.h> | |
| # include <readline/tilde.h> | | # include <readline/tilde.h> | |
| #endif | | #endif | |
| | | | |
| /* Hex-encoded Readline version number. */ | | /* Hex-encoded Readline version number. */ | |
|
| #define RL_READLINE_VERSION 0x0602 /* Readline 6.2 */ | | #define RL_READLINE_VERSION 0x0603 /* Readline 6.3 */ | |
| #define RL_VERSION_MAJOR 6 | | #define RL_VERSION_MAJOR 6 | |
|
| #define RL_VERSION_MINOR 2 | | #define RL_VERSION_MINOR 3 | |
| | | | |
| /* Readline data structures. */ | | /* Readline data structures. */ | |
| | | | |
| /* Maintaining the state of undo. We remember individual deletes and inser
ts | | /* Maintaining the state of undo. We remember individual deletes and inser
ts | |
| on a chain of things to do. */ | | on a chain of things to do. */ | |
| | | | |
| /* The actions that undo knows how to undo. Notice that UNDO_DELETE means | | /* The actions that undo knows how to undo. Notice that UNDO_DELETE means | |
| to insert some text, and UNDO_INSERT means to delete some text. I.e., | | to insert some text, and UNDO_INSERT means to delete some text. I.e., | |
| the code tells undo what to undo, not how to undo it. */ | | the code tells undo what to undo, not how to undo it. */ | |
| enum undo_code { UNDO_DELETE, UNDO_INSERT, UNDO_BEGIN, UNDO_END }; | | enum undo_code { UNDO_DELETE, UNDO_INSERT, UNDO_BEGIN, UNDO_END }; | |
| | | | |
| skipping to change at line 188 | | skipping to change at line 188 | |
| #endif | | #endif | |
| | | | |
| /* Bindable commands for incremental searching. */ | | /* Bindable commands for incremental searching. */ | |
| extern int rl_reverse_search_history PARAMS((int, int)); | | extern int rl_reverse_search_history PARAMS((int, int)); | |
| extern int rl_forward_search_history PARAMS((int, int)); | | extern int rl_forward_search_history PARAMS((int, int)); | |
| | | | |
| /* Bindable keyboard macro commands. */ | | /* Bindable keyboard macro commands. */ | |
| extern int rl_start_kbd_macro PARAMS((int, int)); | | extern int rl_start_kbd_macro PARAMS((int, int)); | |
| extern int rl_end_kbd_macro PARAMS((int, int)); | | extern int rl_end_kbd_macro PARAMS((int, int)); | |
| extern int rl_call_last_kbd_macro PARAMS((int, int)); | | extern int rl_call_last_kbd_macro PARAMS((int, int)); | |
|
| | | extern int rl_print_last_kbd_macro PARAMS((int, int)); | |
| | | | |
| /* Bindable undo commands. */ | | /* Bindable undo commands. */ | |
| extern int rl_revert_line PARAMS((int, int)); | | extern int rl_revert_line PARAMS((int, int)); | |
| extern int rl_undo_command PARAMS((int, int)); | | extern int rl_undo_command PARAMS((int, int)); | |
| | | | |
| /* Bindable tilde expansion commands. */ | | /* Bindable tilde expansion commands. */ | |
| extern int rl_tilde_expand PARAMS((int, int)); | | extern int rl_tilde_expand PARAMS((int, int)); | |
| | | | |
| /* Bindable terminal control commands. */ | | /* Bindable terminal control commands. */ | |
| extern int rl_restart_output PARAMS((int, int)); | | extern int rl_restart_output PARAMS((int, int)); | |
| extern int rl_stop_output PARAMS((int, int)); | | extern int rl_stop_output PARAMS((int, int)); | |
| | | | |
| /* Miscellaneous bindable commands. */ | | /* Miscellaneous bindable commands. */ | |
| extern int rl_abort PARAMS((int, int)); | | extern int rl_abort PARAMS((int, int)); | |
| extern int rl_tty_status PARAMS((int, int)); | | extern int rl_tty_status PARAMS((int, int)); | |
| | | | |
| /* Bindable commands for incremental and non-incremental history searching.
*/ | | /* Bindable commands for incremental and non-incremental history searching.
*/ | |
| extern int rl_history_search_forward PARAMS((int, int)); | | extern int rl_history_search_forward PARAMS((int, int)); | |
| extern int rl_history_search_backward PARAMS((int, int)); | | extern int rl_history_search_backward PARAMS((int, int)); | |
|
| | | extern int rl_history_substr_search_forward PARAMS((int, int)); | |
| | | extern int rl_history_substr_search_backward PARAMS((int, int)); | |
| extern int rl_noninc_forward_search PARAMS((int, int)); | | extern int rl_noninc_forward_search PARAMS((int, int)); | |
| extern int rl_noninc_reverse_search PARAMS((int, int)); | | extern int rl_noninc_reverse_search PARAMS((int, int)); | |
| extern int rl_noninc_forward_search_again PARAMS((int, int)); | | extern int rl_noninc_forward_search_again PARAMS((int, int)); | |
| extern int rl_noninc_reverse_search_again PARAMS((int, int)); | | extern int rl_noninc_reverse_search_again PARAMS((int, int)); | |
| | | | |
| /* Bindable command used when inserting a matching close character. */ | | /* Bindable command used when inserting a matching close character. */ | |
| extern int rl_insert_close PARAMS((int, int)); | | extern int rl_insert_close PARAMS((int, int)); | |
| | | | |
| /* Not available unless READLINE_CALLBACKS is defined. */ | | /* Not available unless READLINE_CALLBACKS is defined. */ | |
| extern void rl_callback_handler_install PARAMS((const char *, rl_vcpfunc_t
*)); | | extern void rl_callback_handler_install PARAMS((const char *, rl_vcpfunc_t
*)); | |
| | | | |
| skipping to change at line 342 | | skipping to change at line 345 | |
| extern void rl_variable_dumper PARAMS((int)); | | extern void rl_variable_dumper PARAMS((int)); | |
| | | | |
| extern int rl_read_init_file PARAMS((const char *)); | | extern int rl_read_init_file PARAMS((const char *)); | |
| extern int rl_parse_and_bind PARAMS((char *)); | | extern int rl_parse_and_bind PARAMS((char *)); | |
| | | | |
| /* Functions for manipulating keymaps. */ | | /* Functions for manipulating keymaps. */ | |
| extern Keymap rl_make_bare_keymap PARAMS((void)); | | extern Keymap rl_make_bare_keymap PARAMS((void)); | |
| extern Keymap rl_copy_keymap PARAMS((Keymap)); | | extern Keymap rl_copy_keymap PARAMS((Keymap)); | |
| extern Keymap rl_make_keymap PARAMS((void)); | | extern Keymap rl_make_keymap PARAMS((void)); | |
| extern void rl_discard_keymap PARAMS((Keymap)); | | extern void rl_discard_keymap PARAMS((Keymap)); | |
|
| | | extern void rl_free_keymap PARAMS((Keymap)); | |
| | | | |
| extern Keymap rl_get_keymap_by_name PARAMS((const char *)); | | extern Keymap rl_get_keymap_by_name PARAMS((const char *)); | |
| extern char *rl_get_keymap_name PARAMS((Keymap)); | | extern char *rl_get_keymap_name PARAMS((Keymap)); | |
| extern void rl_set_keymap PARAMS((Keymap)); | | extern void rl_set_keymap PARAMS((Keymap)); | |
| extern Keymap rl_get_keymap PARAMS((void)); | | extern Keymap rl_get_keymap PARAMS((void)); | |
| /* Undocumented; used internally only. */ | | /* Undocumented; used internally only. */ | |
| extern void rl_set_keymap_from_edit_mode PARAMS((void)); | | extern void rl_set_keymap_from_edit_mode PARAMS((void)); | |
| extern char *rl_get_keymap_name_from_edit_mode PARAMS((void)); | | extern char *rl_get_keymap_name_from_edit_mode PARAMS((void)); | |
| | | | |
| /* Functions for manipulating the funmap, which maps command names to funct
ions. */ | | /* Functions for manipulating the funmap, which maps command names to funct
ions. */ | |
| | | | |
| skipping to change at line 439 | | skipping to change at line 443 | |
| extern int rl_set_signals PARAMS((void)); | | extern int rl_set_signals PARAMS((void)); | |
| extern int rl_clear_signals PARAMS((void)); | | extern int rl_clear_signals PARAMS((void)); | |
| extern void rl_cleanup_after_signal PARAMS((void)); | | extern void rl_cleanup_after_signal PARAMS((void)); | |
| extern void rl_reset_after_signal PARAMS((void)); | | extern void rl_reset_after_signal PARAMS((void)); | |
| extern void rl_free_line_state PARAMS((void)); | | extern void rl_free_line_state PARAMS((void)); | |
| | | | |
| extern void rl_echo_signal_char PARAMS((int)); | | extern void rl_echo_signal_char PARAMS((int)); | |
| | | | |
| extern int rl_set_paren_blink_timeout PARAMS((int)); | | extern int rl_set_paren_blink_timeout PARAMS((int)); | |
| | | | |
|
| | | /* History management functions. */ | |
| | | | |
| | | extern void rl_clear_history PARAMS((void)); | |
| | | | |
| /* Undocumented. */ | | /* Undocumented. */ | |
| extern int rl_maybe_save_line PARAMS((void)); | | extern int rl_maybe_save_line PARAMS((void)); | |
| extern int rl_maybe_unsave_line PARAMS((void)); | | extern int rl_maybe_unsave_line PARAMS((void)); | |
| extern int rl_maybe_replace_line PARAMS((void)); | | extern int rl_maybe_replace_line PARAMS((void)); | |
| | | | |
| /* Completion functions. */ | | /* Completion functions. */ | |
| extern int rl_complete_internal PARAMS((int)); | | extern int rl_complete_internal PARAMS((int)); | |
| extern void rl_display_match_list PARAMS((char **, int, int)); | | extern void rl_display_match_list PARAMS((char **, int, int)); | |
| | | | |
| extern char **rl_completion_matches PARAMS((const char *, rl_compentry_func
_t *)); | | extern char **rl_completion_matches PARAMS((const char *, rl_compentry_func
_t *)); | |
| | | | |
| skipping to change at line 563 | | skipping to change at line 571 | |
| | | | |
| /* If non-zero, this is the address of a function to call just before | | /* If non-zero, this is the address of a function to call just before | |
| readline_internal_setup () returns and readline_internal starts | | readline_internal_setup () returns and readline_internal starts | |
| reading input characters. */ | | reading input characters. */ | |
| extern rl_hook_func_t *rl_pre_input_hook; | | extern rl_hook_func_t *rl_pre_input_hook; | |
| | | | |
| /* The address of a function to call periodically while Readline is | | /* The address of a function to call periodically while Readline is | |
| awaiting character input, or NULL, for no event handling. */ | | awaiting character input, or NULL, for no event handling. */ | |
| extern rl_hook_func_t *rl_event_hook; | | extern rl_hook_func_t *rl_event_hook; | |
| | | | |
|
| | | /* The address of a function to call if a read is interrupted by a signal. | |
| | | */ | |
| | | extern rl_hook_func_t *rl_signal_event_hook; | |
| | | | |
| | | /* The address of a function to call if Readline needs to know whether or n | |
| | | ot | |
| | | there is data available from the current input source. */ | |
| | | extern rl_hook_func_t *rl_input_available_hook; | |
| | | | |
| /* The address of the function to call to fetch a character from the curren
t | | /* The address of the function to call to fetch a character from the curren
t | |
| Readline input stream */ | | Readline input stream */ | |
| extern rl_getc_func_t *rl_getc_function; | | extern rl_getc_func_t *rl_getc_function; | |
| | | | |
| extern rl_voidfunc_t *rl_redisplay_function; | | extern rl_voidfunc_t *rl_redisplay_function; | |
| | | | |
| extern rl_vintfunc_t *rl_prep_term_function; | | extern rl_vintfunc_t *rl_prep_term_function; | |
| extern rl_voidfunc_t *rl_deprep_term_function; | | extern rl_voidfunc_t *rl_deprep_term_function; | |
| | | | |
| /* Dispatch variables. */ | | /* Dispatch variables. */ | |
| extern Keymap rl_executing_keymap; | | extern Keymap rl_executing_keymap; | |
| extern Keymap rl_binding_keymap; | | extern Keymap rl_binding_keymap; | |
| | | | |
|
| | | extern int rl_executing_key; | |
| | | extern char *rl_executing_keyseq; | |
| | | extern int rl_key_sequence_length; | |
| | | | |
| /* Display variables. */ | | /* Display variables. */ | |
| /* If non-zero, readline will erase the entire line, including any prompt, | | /* If non-zero, readline will erase the entire line, including any prompt, | |
| if the only thing typed on an otherwise-blank line is something bound to | | if the only thing typed on an otherwise-blank line is something bound to | |
| rl_newline. */ | | rl_newline. */ | |
| extern int rl_erase_empty_line; | | extern int rl_erase_empty_line; | |
| | | | |
| /* If non-zero, the application has already printed the prompt (rl_prompt) | | /* If non-zero, the application has already printed the prompt (rl_prompt) | |
| before calling readline, so readline should not output it the first time | | before calling readline, so readline should not output it the first time | |
| redisplay is done. */ | | redisplay is done. */ | |
| extern int rl_already_prompted; | | extern int rl_already_prompted; | |
| | | | |
| skipping to change at line 606 | | skipping to change at line 625 | |
| SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */ | | SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */ | |
| extern int rl_catch_signals; | | extern int rl_catch_signals; | |
| | | | |
| /* If non-zero, readline will install a signal handler for SIGWINCH | | /* If non-zero, readline will install a signal handler for SIGWINCH | |
| that also attempts to call any calling application's SIGWINCH signal | | that also attempts to call any calling application's SIGWINCH signal | |
| handler. Note that the terminal is not cleaned up before the | | handler. Note that the terminal is not cleaned up before the | |
| application's signal handler is called; use rl_cleanup_after_signal() | | application's signal handler is called; use rl_cleanup_after_signal() | |
| to do that. */ | | to do that. */ | |
| extern int rl_catch_sigwinch; | | extern int rl_catch_sigwinch; | |
| | | | |
|
| | | /* If non-zero, the readline SIGWINCH handler will modify LINES and | |
| | | COLUMNS in the environment. */ | |
| | | extern int rl_change_environment; | |
| | | | |
| /* Completion variables. */ | | /* Completion variables. */ | |
| /* Pointer to the generator function for completion_matches (). | | /* Pointer to the generator function for completion_matches (). | |
| NULL means to use rl_filename_completion_function (), the default | | NULL means to use rl_filename_completion_function (), the default | |
| filename completer. */ | | filename completer. */ | |
| extern rl_compentry_func_t *rl_completion_entry_function; | | extern rl_compentry_func_t *rl_completion_entry_function; | |
| | | | |
| /* Optional generator for menu completion. Default is | | /* Optional generator for menu completion. Default is | |
| rl_completion_entry_function (rl_filename_completion_function). */ | | rl_completion_entry_function (rl_filename_completion_function). */ | |
| extern rl_compentry_func_t *rl_menu_completion_entry_function; | | extern rl_compentry_func_t *rl_menu_completion_entry_function; | |
| | | | |
| | | | |
| skipping to change at line 689 | | skipping to change at line 712 | |
| only modifies the directory name used in opendir(2), not what is display
ed | | only modifies the directory name used in opendir(2), not what is display
ed | |
| when the possible completions are printed or inserted. If set, it takes | | when the possible completions are printed or inserted. If set, it takes | |
| precedence over rl_directory_completion_hook. The directory rewrite | | precedence over rl_directory_completion_hook. The directory rewrite | |
| hook should perform any necessary dequoting. This function has the same | | hook should perform any necessary dequoting. This function has the same | |
| return value properties as the directory_completion_hook. | | return value properties as the directory_completion_hook. | |
| | | | |
| I'm not happy with how this works yet, so it's undocumented. I'm trying | | I'm not happy with how this works yet, so it's undocumented. I'm trying | |
| it in bash to see how well it goes. */ | | it in bash to see how well it goes. */ | |
| extern rl_icppfunc_t *rl_directory_rewrite_hook; | | extern rl_icppfunc_t *rl_directory_rewrite_hook; | |
| | | | |
|
| | | /* If non-zero, this is the address of a function for the completer to call | |
| | | before deciding which character to append to a completed name. It shoul | |
| | | d | |
| | | modify the directory name passed as an argument if appropriate, and retu | |
| | | rn | |
| | | non-zero if it modifies the name. This should not worry about dequoting | |
| | | the filename; that has already happened by the time it gets here. */ | |
| | | extern rl_icppfunc_t *rl_filename_stat_hook; | |
| | | | |
| /* If non-zero, this is the address of a function to call when reading | | /* If non-zero, this is the address of a function to call when reading | |
| directory entries from the filesystem for completion and comparing | | directory entries from the filesystem for completion and comparing | |
| them to the partial word to be completed. The function should | | them to the partial word to be completed. The function should | |
| either return its first argument (if no conversion takes place) or | | either return its first argument (if no conversion takes place) or | |
| newly-allocated memory. This can, for instance, convert filenames | | newly-allocated memory. This can, for instance, convert filenames | |
| between character sets for comparison against what's typed at the | | between character sets for comparison against what's typed at the | |
| keyboard. The returned value is what is added to the list of | | keyboard. The returned value is what is added to the list of | |
| matches. The second argument is the length of the filename to be | | matches. The second argument is the length of the filename to be | |
| converted. */ | | converted. */ | |
| extern rl_dequote_func_t *rl_filename_rewrite_hook; | | extern rl_dequote_func_t *rl_filename_rewrite_hook; | |
| | | | |
End of changes. 11 change blocks. |
| 3 lines changed or deleted | | 37 lines changed or added | |
|