[issue30075] Printing ANSI Escape Sequences on Windows 10

2017-04-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a (duplicate) enhancement request, not a bug report. The superseder field is for when an issue is closed as a duplicate; I decided that this should be. Further discussion should be on python-ideas. -- nosy: +terry.reedy resolution: -> duplic

[issue30075] Printing ANSI Escape Sequences on Windows 10

2017-04-15 Thread Eryk Sun
Eryk Sun added the comment: cmd.exe enables virtual terminal mode, but only for itself. It disables VT mode before starting other programs, and also at shutdown. It appears you've found a bug in the case of "cmd.exe /c ...". You can get the same result via os.system(''). It's failing to disabl

[issue30075] Printing ANSI Escape Sequences on Windows 10

2017-04-15 Thread Martin Panter
Martin Panter added the comment: Maybe this is related to Issue 29059. If so, there seems to be resistance to enabling the feature by default, and preference to use existing APIs rather than adding a new API that enables it. -- components: +Windows nosy: +martin.panter, paul.moore, ste

[issue30075] Printing ANSI Escape Sequences on Windows 10

2017-04-15 Thread Tithen Firion
New submission from Tithen Firion: Windows 10 supports ANSI Escape Sequences ( http://stackoverflow.com/a/38617204/2428152 https://msdn.microsoft.com/en-us/library/windows/desktop/mt638032(v=vs.85).aspx ) but Python just prints escape character. Adding `subprocess.call('', shell=True)` before