Avoid ANSI escape characters in Python output (bug#45938)
* lisp/progmodes/python.el (python-shell-completion-native-setup): Prevent Readline from emitting escape characters in comint output.
This commit is contained in:
parent
4f521fa14c
commit
e27849ecf6
1 changed files with 3 additions and 0 deletions
|
@ -4549,6 +4549,9 @@ def __PYTHON_EL_native_completion_setup():
|
|||
readline.parse_and_bind('tab: complete')
|
||||
# Require just one tab to send output.
|
||||
readline.parse_and_bind('set show-all-if-ambiguous on')
|
||||
# Avoid ANSI escape characters in the output
|
||||
readline.parse_and_bind('set colored-completion-prefix off')
|
||||
readline.parse_and_bind('set colored-stats off')
|
||||
# Avoid replacing common prefix with ellipsis.
|
||||
readline.parse_and_bind('set completion-prefix-display-length 0')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue