简体   繁体   English

在PyCharm中启用终端仿真

[英]Enable terminal emulation in PyCharm

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. 许多人告诉我和PyCharm发布说明PyCharm 2.7PyCharm包括完整的终端仿真(我假设这是关于处理ANSI转义码的样式和光标移动)但我似乎无法找到如何启用这个。

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: 我启用了Terminal插件,但是当我尝试运行调试使用这些转义码的python应用程序时,它们只是在控制台中显示为原始:

在此输入图像描述

How can I enable the terminal emulation in PyCharm's debugger? 如何在PyCharm的调试器中启用终端仿真?

Console and Terminal are two different things in PyCharm. 控制台和终端是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. 控制台是运行和调试工具窗口的一部分,仅用于显示stdout和stderr的输出,而终端是单独的工具窗口,可以与系统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. 2014年7月23日在InteliJ的第14版( https://youtrack.jetbrains.com/issue/IDEA-69880 )中添加了对Console中的ANSI转义码的支持,并且PyCharm 2.7.3于2013年6月18日发布,因此此功能是不存在于PyCharm 2.7中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM