#include <stdio.h>
#include <sys/types.h>
#include <sys/cdefs.h>
Go to the source code of this file.
Classes | |
struct | _hist_entry |
Defines | |
#define | R_EL__LOCAL |
Typedefs | |
typedef int | Function (const char *, int) |
typedef void | VFunction (void) |
typedef char * | CPFunction (const char *, int) |
typedef char ** | CPPFunction (const char *, int, int) |
typedef int(*) | El_tab_hook_t (char *buf, int prompt_width, int *cursor_loc) |
typedef int(*) | El_in_key_hook_t (int ch) |
typedef R_EL__LOCAL _hist_entry | HIST_ENTRY |
Functions | |
R_EL__LOCAL char * | readline (const char *, bool newline) |
R_EL__LOCAL int | rl_initialize (void) |
R_EL__LOCAL bool | rl_isinitialized () |
R_EL__LOCAL void | setEcho (bool echo) |
R_EL__LOCAL void | termResize (void) |
R_EL__LOCAL void | setColors (const char *colorTab, const char *colorTabComp, const char *colorBracket, const char *colorBadBracket, const char *colorPrompt) |
R_EL__LOCAL void | using_history (void) |
R_EL__LOCAL int | add_history (char *) |
R_EL__LOCAL void | clear_history (void) |
R_EL__LOCAL void | stifle_history (int) |
R_EL__LOCAL int | unstifle_history (void) |
R_EL__LOCAL int | history_is_stifled (void) |
R_EL__LOCAL int | where_history (void) |
R_EL__LOCAL HIST_ENTRY * | current_history (void) |
R_EL__LOCAL HIST_ENTRY * | history_get (int) |
R_EL__LOCAL int | history_total_bytes (void) |
R_EL__LOCAL int | history_set_pos (int) |
R_EL__LOCAL HIST_ENTRY * | previous_history (void) |
R_EL__LOCAL HIST_ENTRY * | next_history (void) |
R_EL__LOCAL int | history_search (const char *, int) |
R_EL__LOCAL int | history_search_prefix (const char *, int) |
R_EL__LOCAL int | history_search_pos (const char *, int, int) |
R_EL__LOCAL int | read_history (const char *) |
R_EL__LOCAL int | write_history (const char *) |
R_EL__LOCAL char ** | history_tokenize (const char *) |
R_EL__LOCAL char * | tilde_expand (char *) |
R_EL__LOCAL char * | filename_completion_function (const char *, int) |
R_EL__LOCAL char * | username_completion_function (const char *, int) |
R_EL__LOCAL int | rl_complete (int, int) |
R_EL__LOCAL int | rl_read_key (void) |
R_EL__LOCAL char ** | completion_matches (const char *, CPFunction *) |
R_EL__LOCAL void | rl_display_match_list (char **, int, int) |
R_EL__LOCAL int | rl_insert (int, int) |
R_EL__LOCAL void | rl_reset_terminal (void) |
R_EL__LOCAL int | rl_bind_key (int, int(*)(int, int)) |
R_EL__LOCAL int | rl_eof (void) |
R_EL__LOCAL void | rl_cleanup_after_signal () |
Variables | |
R_EL__LOCAL const char * | rl_library_version |
R_EL__LOCAL const char * | rl_readline_name |
R_EL__LOCAL FILE * | rl_instream |
R_EL__LOCAL FILE * | rl_outstream |
R_EL__LOCAL char * | rl_line_buffer |
R_EL__LOCAL int | rl_point |
R_EL__LOCAL int | rl_end |
R_EL__LOCAL int | history_base |
R_EL__LOCAL int | history_length |
R_EL__LOCAL int | max_input_history |
R_EL__LOCAL const char * | rl_basic_word_break_characters |
R_EL__LOCAL char * | rl_completer_word_break_characters |
R_EL__LOCAL char * | rl_completer_quote_characters |
R_EL__LOCAL CPFunction * | rl_completion_entry_function |
R_EL__LOCAL CPPFunction * | rl_attempted_completion_function |
R_EL__LOCAL int | rl_completion_type |
R_EL__LOCAL int | rl_completion_query_items |
R_EL__LOCAL char * | rl_special_prefixes |
R_EL__LOCAL int | rl_completion_append_character |
R_EL__LOCAL El_tab_hook_t | rl_tab_hook |
R_EL__LOCAL El_tab_hook_t | rl_tab_hook |
R_EL__LOCAL El_in_key_hook_t | rl_in_key_hook |
#define R_EL__LOCAL |
Definition at line 72 of file editline.h.
typedef char* CPFunction(const char *, int) |
Definition at line 80 of file editline.h.
typedef char** CPPFunction(const char *, int, int) |
Definition at line 81 of file editline.h.
typedef int(*) El_in_key_hook_t(int ch) |
Definition at line 83 of file editline.h.
typedef int(*) El_tab_hook_t(char *buf, int prompt_width, int *cursor_loc) |
Definition at line 82 of file editline.h.
typedef int Function(const char *, int) |
Definition at line 78 of file editline.h.
typedef struct R_EL__LOCAL _hist_entry HIST_ENTRY |
typedef void VFunction(void) |
Definition at line 79 of file editline.h.
R_EL__LOCAL int add_history | ( | char * | ) |
R_EL__LOCAL void clear_history | ( | void | ) |
R_EL__LOCAL char** completion_matches | ( | const char * | , | |
CPFunction * | ||||
) |
Definition at line 1541 of file readline.cxx.
References gEditLine, gHistory, malloc(), NULL, realloc(), rl_initialize(), and size_t.
Referenced by rl_complete_internal().
R_EL__LOCAL HIST_ENTRY* current_history | ( | void | ) |
R_EL__LOCAL char* filename_completion_function | ( | const char * | , | |
int | ||||
) |
R_EL__LOCAL HIST_ENTRY* history_get | ( | int | ) |
Definition at line 1070 of file readline.cxx.
References HistEvent_t::fNum, HistEvent_t::fStr, gEditLine, gHistory, H_CURR, H_FIRST, H_LAST, H_NEXT_EVENT, H_PREV, history(), NULL, and rl_initialize().
R_EL__LOCAL int history_is_stifled | ( | void | ) |
R_EL__LOCAL int history_search | ( | const char * | , | |
int | ||||
) |
R_EL__LOCAL int history_search_pos | ( | const char * | , | |
int | , | |||
int | ||||
) |
Definition at line 1314 of file readline.cxx.
References HistEvent_t::fNum, HistEvent_t::fStr, gHistory, H_CURR, H_NEXT, H_PREV, history(), and history_set_pos().
R_EL__LOCAL int history_search_prefix | ( | const char * | , | |
int | ||||
) |
R_EL__LOCAL int history_set_pos | ( | int | ) |
Definition at line 1215 of file readline.cxx.
References HistEvent_t::fNum, gHistory, H_CURR, H_FIRST, H_NEXT, H_NEXT_EVENT, history(), and history_length.
Referenced by history_search_pos().
R_EL__LOCAL char** history_tokenize | ( | const char * | ) |
R_EL__LOCAL int history_total_bytes | ( | void | ) |
Definition at line 1187 of file readline.cxx.
References HistEvent_t::fNum, HistEvent_t::fStr, gHistory, H_CURR, H_FIRST, H_NEXT, H_PREV_EVENT, and history().
R_EL__LOCAL HIST_ENTRY* next_history | ( | void | ) |
R_EL__LOCAL HIST_ENTRY* previous_history | ( | void | ) |
R_EL__LOCAL int read_history | ( | const char * | ) |
Definition at line 1040 of file readline.cxx.
References gEditLine, gHistory, H_LOAD, history(), NULL, and rl_initialize().
R_EL__LOCAL char* readline | ( | const char * | , | |
bool | newline | |||
) |
R_EL__LOCAL int rl_bind_key | ( | int | , | |
int(*)(int, int) | ||||
) |
R_EL__LOCAL void rl_cleanup_after_signal | ( | ) |
Definition at line 304 of file readline.cxx.
References el_end(), gEditLine, gHistory, and history_end().
R_EL__LOCAL int rl_complete | ( | int | , | |
int | ||||
) |
Definition at line 1844 of file readline.cxx.
References CC_REFRESH, ElState_t::fLastCmd, EditLine_t::fState, gEditLine, gel_rl_complete_cmdnum, gHistory, grl_complete_show_all, NULL, rl_complete_internal(), rl_inhibit_completion, rl_initialize(), rl_insert(), and TAB.
Referenced by _el_rl_complete().
R_EL__LOCAL void rl_display_match_list | ( | char ** | , | |
int | , | |||
int | ||||
) |
Definition at line 1615 of file readline.cxx.
References _rl_qsort_string_compare(), ElCoord_t::fH, EditLine_t::fOutFile, fprintf(), ElTerm_t::fSize, EditLine_t::fTerm, gEditLine, and size_t.
Referenced by rl_complete_internal().
R_EL__LOCAL int rl_eof | ( | void | ) |
Definition at line 1948 of file readline.cxx.
References el_eof(), and gEditLine.
Referenced by Gl_eof().
R_EL__LOCAL int rl_initialize | ( | void | ) |
Definition at line 195 of file readline.cxx.
References _el_rl_complete(), _get_prompt(), EL_ADDFN, EL_BIND, EL_EDITMODE, EL_EDITOR, el_end(), EL_HIST, el_init(), EL_NUM_FCNS, EL_PROMPT, el_set(), EL_SIGNAL, ElMap_t::fFunc, EditLine_t::fMap, ElMap_t::fNFunc, gEditLine, gel_rl_complete_cmdnum, gel_rl_prompt, gHistory, H_SETSIZE, history(), history_end(), history_init(), history_length, i, max_input_history, NULL, rl_instream, rl_outstream, and rl_readline_name.
Referenced by add_history(), completion_matches(), el_func_readline_reinit(), el_readline_el(), history_get(), read_history(), readline(), rl_bind_key(), rl_complete(), rl_complete_internal(), rl_insert(), rl_read_key(), rl_reset_terminal(), stifle_history(), using_history(), and write_history().
R_EL__LOCAL int rl_insert | ( | int | , | |
int | ||||
) |
Definition at line 1919 of file readline.cxx.
References el_push(), gEditLine, gHistory, NULL, and rl_initialize().
Referenced by rl_bind_key(), and rl_complete().
R_EL__LOCAL bool rl_isinitialized | ( | ) |
R_EL__LOCAL int rl_read_key | ( | void | ) |
Definition at line 1891 of file readline.cxx.
References el_getc(), gEditLine, gHistory, int, NULL, and rl_initialize().
R_EL__LOCAL void rl_reset_terminal | ( | void | ) |
Definition at line 1907 of file readline.cxx.
References el_reset(), gEditLine, gHistory, NULL, and rl_initialize().
R_EL__LOCAL void setColors | ( | const char * | colorTab, | |
const char * | colorTabComp, | |||
const char * | colorBracket, | |||
const char * | colorBadBracket, | |||
const char * | colorPrompt | |||
) |
Definition at line 380 of file readline.cxx.
References prompt_setcolor(), setKeywordColors(), tab_color, and term__atocolor().
Referenced by Gl_setColors().
R_EL__LOCAL void setEcho | ( | bool | echo | ) |
Definition at line 399 of file readline.cxx.
References gEditLine, tty_noquotemode(), and tty_quotemode().
R_EL__LOCAL void stifle_history | ( | int | ) |
R_EL__LOCAL void termResize | ( | void | ) |
R_EL__LOCAL char* tilde_expand | ( | char * | ) |
Definition at line 1358 of file readline.cxx.
References free(), malloc(), NULL, passwd::pw_dir, size_t, and sprintf().
Referenced by filename_completion_function().
R_EL__LOCAL int unstifle_history | ( | void | ) |
Definition at line 1018 of file readline.cxx.
References gHistory, H_SETSIZE, history(), and max_input_history.
R_EL__LOCAL char* username_completion_function | ( | const char * | , | |
int | ||||
) |
R_EL__LOCAL void using_history | ( | void | ) |
Definition at line 417 of file readline.cxx.
References gEditLine, gHistory, NULL, and rl_initialize().
R_EL__LOCAL int where_history | ( | void | ) |
Definition at line 1155 of file readline.cxx.
References HistEvent_t::fNum, gHistory, H_CURR, H_FIRST, H_NEXT, and history().
R_EL__LOCAL int write_history | ( | const char * | ) |
Definition at line 1054 of file readline.cxx.
References gEditLine, gHistory, H_SAVE, history(), NULL, and rl_initialize().
R_EL__LOCAL int history_base |
Definition at line 84 of file readline.cxx.
R_EL__LOCAL int history_length |
Definition at line 85 of file readline.cxx.
Referenced by add_history(), history_set_pos(), readline(), and rl_initialize().
R_EL__LOCAL int max_input_history |
Definition at line 86 of file readline.cxx.
Referenced by history_is_stifled(), rl_initialize(), stifle_history(), and unstifle_history().
R_EL__LOCAL CPPFunction* rl_attempted_completion_function |
R_EL__LOCAL const char* rl_basic_word_break_characters |
R_EL__LOCAL char* rl_completer_quote_characters |
Definition at line 96 of file readline.cxx.
R_EL__LOCAL char* rl_completer_word_break_characters |
Definition at line 95 of file readline.cxx.
R_EL__LOCAL int rl_completion_append_character |
R_EL__LOCAL CPFunction* rl_completion_entry_function |
R_EL__LOCAL int rl_completion_query_items |
R_EL__LOCAL int rl_completion_type |
R_EL__LOCAL int rl_end |
R_EL__LOCAL El_in_key_hook_t rl_in_key_hook |
R_EL__LOCAL FILE* rl_instream |
R_EL__LOCAL const char* rl_library_version |
Definition at line 76 of file readline.cxx.
R_EL__LOCAL char* rl_line_buffer |
Definition at line 82 of file readline.cxx.
R_EL__LOCAL FILE* rl_outstream |
R_EL__LOCAL int rl_point |
R_EL__LOCAL const char* rl_readline_name |
R_EL__LOCAL char* rl_special_prefixes |
R_EL__LOCAL El_tab_hook_t rl_tab_hook |
Definition at line 100 of file readline.cxx.
R_EL__LOCAL El_tab_hook_t rl_tab_hook |