• Home
  • Raw
  • Download

Lines Matching full:readline

1 /* This module makes GNU readline available to Python.  It has ideas
24 /* GNU readline() mistakenly sets the LC_CTYPE locale.
39 # include <editline/readline.h>
41 /* GNU readline definitions */
42 # undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
43 # include <readline/readline.h>
44 # include <readline/history.h>
62 * It is possible to link the readline module to the readline
65 * This emulation library is not 100% API compatible with the "real" readline
67 * hence we use a runtime check to detect if the Python readline module is
71 * - 'get_history' has a 1-based index with GNU readline, and a 0-based
112 module readline
181 set in the inputrc, is enabled by default (eg GNU Readline 8.1), or a user calls
182 readline.read_init_file(). The Python REPL has not implemented bracketed
185 It can still be explicitly enabled by calling readline.parse_and_bind("set
199 /* Exported function to send one line to readline's init file parser */
202 readline.parse_and_bind
233 /* Exported function to parse a readline init file */
236 readline.read_init_file
241 Execute a readline initialization file.
264 /* Exported function to load a readline history file */
267 readline.read_history_file
272 Load a readline history file.
296 /* Exported function to save a readline history file */
299 readline.write_history_file
304 Save a readline history file.
335 /* Exported function to save part of a readline history file */
338 readline.append_history_file
381 readline.set_history_length
402 readline.get_history_length
435 readline.set_completion_display_matches_hook
472 readline.set_startup_hook
480 before readline prints the first prompt.
497 readline.set_pre_input_hook
505 has been printed and just before readline starts reading input
523 readline.get_completion_type
538 readline.get_begidx
554 readline.get_endidx
567 /* Set the tab-completion word-delimiters that readline uses */
570 readline.set_completer_delims
613 /* Readline version >= 5.0 introduced a timestamp field into the history entry
615 readline also introduced the handy 'free_history_entry' function, which
642 readline.remove_history_item
674 readline.replace_history_item
720 readline.add_history
746 readline.set_auto_history
764 /* Get the tab-completion word-delimiters that readline uses */
767 readline.get_completer_delims
782 readline.set_completer
803 readline.get_completer
841 readline.get_history_item
856 /* Older versions of libedit's readline emulation in readline_get_history_item_impl()
857 * use 0-based indexes, while readline and newer in readline_get_history_item_impl()
865 * Apple's readline emulation crashes when in readline_get_history_item_impl()
884 readline.get_current_history_length
899 readline.get_line_buffer
916 readline.clear_history
918 Clear the current readline history.
934 readline.insert_text
958 readline.redisplay
971 #include "clinic/readline.c.h"
1245 /* Helper to initialize GNU readline properly.
1260 /* the libedit readline emulation resets key bindings etc in setup_readline()
1266 /* Detect if libedit's readline emulation uses 0-based in setup_readline()
1339 With libedit, this call makes readline() crash. */ in setup_readline()
1346 * XXX: A bug in the readline-2.2 library causes a memory leak in setup_readline()
1360 /* Wrapper around GNU readline that handles signals differently. */
1402 /* Update readline's view of the window size after SIGWINCH */ in readline_until_enter_or_signal()
1516 "Importing this module enables command line editing using GNU readline.");
1519 "Importing this module enables command line editing using libedit readline.");
1523 "readline",
1537 const char *backend = "readline"; in PyInit_readline()