Subject: bug#28139: 25.2; TRAMP vs bash 4.4 / readline 7.0 "bracketed paste" mode

From: Michael Albinus <[email-masked]>
Date: Mon, 21 Aug 2017 18:17:40 +0200

Daniel Pittman <[email-masked]> writes:

> However, `ansi-color-filter-region` and friends from the shipped ANSI
> SGR->face handling library can strip all control sequences out of a
> region, or string, and might be useful here; that would allow TRAMP to
> become insensitive to ANSI control codes injected anywhere into the
> output, which will also fix the next time a shell decides to add some
> additional terminal integration like bracketed paste mode.

Tramp does already something like this on its own, using
`tramp-display-escape-sequence-regexp' and
`tramp-device-escape-sequence-regexp'. Let me check, whether I could
rewrite this to the more general `ansi-color-filter-region`.

(I wouldn't reject a patch from your side :-)

Best regards, Michael.