Enable terminal emulation in PyCharm

独自空忆成欢 提交于 2020-01-14 19:52:07

问题


Many people have told me and the PyCharm Release Notes for PyCharm 2.7 touts that PyCharm includes full terminal emulation (I assume this is talking about handling of ANSI escape codes for styling and cursor movement) but I can't seem to find out how to enable this.

I've enabled the Terminal plugin but when I try to run or debug a python application which makes use of these escape codes, they are just displayed raw in the console:

How can I enable the terminal emulation in PyCharm's debugger?


回答1:


Console and Terminal are two different things in PyCharm. Console is part of Run and Debug tool windows and is used only to show output from stdout and stderr whereas Terminal is separate tool window and makes it possible to interact with system shell. Support for ANSI escape codes in Console was added in version 14 of InteliJ (https://youtrack.jetbrains.com/issue/IDEA-69880) on 23 Jul 2014 and PyCharm 2.7.3 was released on 18 June 2013 so this feature is not present in PyCharm 2.7.



来源:https://stackoverflow.com/questions/29985905/enable-terminal-emulation-in-pycharm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!