• Home
  • Raw
  • Download

Lines Matching full:readline

1 :mod:`!readline` --- GNU readline interface
4 .. module:: readline
6 :synopsis: GNU readline support for Python.
12 The :mod:`readline` module defines a number of functions to facilitate
20 Readline keybindings may be configured via an initialization file, typically
21 ``.inputrc`` in your home directory. See `Readline Init File
22 <https://tiswww.cwru.edu/php/chet/readline/rluserman.html#Readline-Init-File>`_
23 in the GNU Readline manual for information about the format and
25 Readline library in general.
31 The underlying Readline library API may be implemented by
32 the ``editline`` (``libedit``) library instead of GNU readline.
33 On macOS the :mod:`readline` module detects which library is being used
37 of GNU readline. If you programmatically load configuration strings
40 If you use ``editline``/``libedit`` readline emulation on macOS, the
54 The name of the underlying Readline library being used, either
55 ``"readline"`` or ``"editline"``.
73 Execute a readline initialization file. The default filename is the last filename
110 Load a readline history file, and append it to the history list.
117 Save the history list to a readline history file, overwriting any
192 input via readline. The *enabled* argument should be a Boolean value
213 arguments just before readline prints the first prompt.
223 readline starts reading input characters. This function only exists
234 automatically complete a word being typed. By default, Readline is set up
236 the interactive interpreter. If the :mod:`readline` module is to be used
275 input editing scenario based on the underlying C readline implementation.
305 The following example demonstrates how to use the :mod:`readline` module's
313 import readline
317 readline.read_history_file(histfile)
319 readline.set_history_length(1000)
323 atexit.register(readline.write_history_file, histfile)
333 import readline
337 readline.read_history_file(histfile)
338 h_len = readline.get_current_history_length()
344 new_h_len = readline.get_current_history_length()
345 readline.set_history_length(1000)
346 readline.append_history_file(new_h_len - prev_h_len, histfile)
355 import readline
364 readline.parse_and_bind("tab: complete")
365 if hasattr(readline, "read_history_file"):
367 readline.read_history_file(histfile)
373 readline.set_history_length(1000)
374 readline.write_history_file(histfile)