diff options
| author | Evgenii Klimov | 2024-02-25 20:12:38 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2024-08-31 13:12:50 +0300 |
| commit | e27849ecf6ee01f6d02ef2785d0c10e32bc764e9 (patch) | |
| tree | 6c1df31c76184b9bcc2289f14cb2522a0b563d0e /lisp/progmodes/python.el | |
| parent | 4f521fa14c18f57e5207bffd68e9f79454dccc79 (diff) | |
| download | emacs-e27849ecf6ee01f6d02ef2785d0c10e32bc764e9.tar.gz emacs-e27849ecf6ee01f6d02ef2785d0c10e32bc764e9.zip | |
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.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 692d915f8f8..227be64b5b0 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -4549,6 +4549,9 @@ def __PYTHON_EL_native_completion_setup(): | |||
| 4549 | readline.parse_and_bind('tab: complete') | 4549 | readline.parse_and_bind('tab: complete') |
| 4550 | # Require just one tab to send output. | 4550 | # Require just one tab to send output. |
| 4551 | readline.parse_and_bind('set show-all-if-ambiguous on') | 4551 | readline.parse_and_bind('set show-all-if-ambiguous on') |
| 4552 | # Avoid ANSI escape characters in the output | ||
| 4553 | readline.parse_and_bind('set colored-completion-prefix off') | ||
| 4554 | readline.parse_and_bind('set colored-stats off') | ||
| 4552 | # Avoid replacing common prefix with ellipsis. | 4555 | # Avoid replacing common prefix with ellipsis. |
| 4553 | readline.parse_and_bind('set completion-prefix-display-length 0') | 4556 | readline.parse_and_bind('set completion-prefix-display-length 0') |
| 4554 | 4557 | ||