Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter out ANSI escape sequences ansi-color-filter output #7

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

louisdecharson
Copy link
Contributor

@louisdecharson louisdecharson commented Nov 8, 2022

When using isortify (with iPython as python-shell-interpreter), I have an ANSI escape sequence added to the end of the buffer: ^[[0m (see screenshot)
Screenshot 2022-11-08 at 20 50 32

The proposed PR fixes the issue by using ansi-color-filter output to tmpbuf

One drawback of this PR is that the function ansi-color-filter output is called even though ipython is not the python shell interpreter.

This is fixing #6

Filtering to remove ANSI escaped character added by iPython
@CeleritasCelery CeleritasCelery merged commit 2751fb2 into pythonic-emacs:master Nov 21, 2022
@CeleritasCelery
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants