From d5fb353404814afb135ba98effd200c5733bbcc3 Mon Sep 17 00:00:00 2001 From: Evgenii Klimov Date: Sun, 25 Feb 2024 20:12:38 +0000 Subject: [PATCH] Avoid ANSI escape characters (bug#45938) * lisp/progmodes/python.el (python-shell-completion-native-setup): Avoid escape characters in comint output --- lisp/progmodes/python.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index a00289d6de9..7193cc19425 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -4549,6 +4549,9 @@ (defun python-shell-completion-native-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') -- 2.45.2