-
Notifications
You must be signed in to change notification settings - Fork 167
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
ANSI escape sequences in captured output #35
Comments
I'm curious as to why you need to suppress the ANSI escape sequences. Normally they're interpreted by a terminal emulator, so you don't see them. There is a "console mode" in libwinpty that suppress some/all sequences, but IIRC, there's no way to enable it from winpty uses cursor-up and erase-line commands to backtrack in the terminal when parts of the console change. (e.g. full-screen editors, progress bars, REPLs). I'm not sure how winpty is useful if those commands are suppressed. |
Can you explain what you're doing where you're seeing the unwanted escape sequences? winpty does output a lot of escape sequences, and some of them can be suppressed:
If you absolutely cannot tolerate any escape sequences, then winpty has a "console mode" that's relevant, but all that does now is suppress escape sequences, so in principle, it can output a lot of junk. I need more information to do anything with this issue; otherwise, I'll just close it. |
I'm not sure what this issue is about. winpty is designed to output escape sequences normally. The console mode in master is much improved now. The I'm going to close this issue. |
I needed to catch child's input and output and using winpty for unbuffered io from child
is there any other way to do it from winpty.exe |
Using cygwin and python/plumbum I am noticing that I'm getting ANSI escape sequences in my output such as '\x1b[?25l\r\x1b[2K\x1b[0m\r\n\x1b[2K'. Is there a way to hide this reliably? I've not notice any such issue with proxywinconsole.
The text was updated successfully, but these errors were encountered: