# 输出控制台中的终端

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/clion/llms.txt).

> **TL;DR**
> 运行/调试配置  ：CMake Application、Native Application、C/C++ File

CLion 在输出控制台中仿真终端，以帮助您使用 [基于文本的用户界面 (TUI)](https://en.wikipedia.org/wiki/Text-based_user_interface)，例如 [curses/ncurses](https://invisible-island.net/ncurses/) 应用程序。

![控制台示例中的终端](https://resources.jetbrains.com/help/img/idea/2026.3/cl_terminal_outputconsole_example.png)

> **Tip:**
> 请参阅 [JediTerm](https://github.com/JetBrains/jediterm)以了解实现细节。

Procedure: 在输出控制台中启用终端仿真

1. 在主菜单中，进入  `运行 | 编辑配置` .

2. 选择所需的配置并勾选   在输出控制台中模拟终端  复选框：

![正在启用输出控制台中的终端仿真](https://resources.jetbrains.com/help/img/idea/2026.3/cl_terminalemulation_config.png)

> **Note:**
> 此选项仅适用于 [CMake 应用程序](run-debug-configuration-application.html)、 [原生应用程序](run-debug-configuration-makefile-application.html) 和 [C/C++ 文件](run-single-file.html#run-singlefile-config-create) 配置。

## 限制

此功能的可用性取决于您使用的操作系统、 [调试器](configuring-debugger-options.html)和 [工具链](how-to-create-toolchain-in-clion.html)。 这还取决于是否存在输入重定向，以及正在运行的进程是否以管理员权限运行。

下表显示了在特定情况下，对于运行、使用 GDB 调试和使用 LLDB 调试，输出控制台中是否可用终端仿真：

### Linux

|  |  默认  |  以特权运行  |  重定向输入  |
| --- | --- | --- | --- |
|  运行中  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |
|  GDB  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |
|  LLDB  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |

### macOS

|  |  默认  |  以特权运行  |  重定向输入  |
| --- | --- | --- | --- |
|  运行  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |
|  LLDB  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |

### Windows

|  |  默认  |  以特权运行  |  重定向输入  |
| --- | --- | --- | --- |
|  运行  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |
|  GDB  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |
|  MSVC LLDB  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |

### Docker、Remote、WSL 工具链

|  |  默认  |  以特权运行  |  重定向输入  |
| --- | --- | --- | --- |
|  运行  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![支持功能](https://resources.jetbrains.com/help/img/idea/2026.3/check_retina_bold_2.png)  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |
|  GDB  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |  ![不支持此功能](https://resources.jetbrains.com/help/img/idea/2026.3/cross_retina.png)  |

## See also

### 操作指南

[工具链](how-to-create-toolchain-in-clion.html) [调试器选项](configuring-debugger-options.html) [远程开发](remote-development.html)

### 流程

[Docker 工具链](clion-toolchains-in-docker.html) [远程与本地源](remote-projects-support.html) [WSL2](how-to-use-wsl-development-environment-in-product.html)

