Terminal in the output console
Run/debug configurations: CMake Application, Native Application, C/C++ File
CLion emulates terminal in the output console to help you work with text-based user interfaces (TUI), for example, curses/ncurses applications.

tip
See JediTerm for implementation details.
In the main menu, go to Run | Edit Configurations.
Select the desired configuration and set the Emulate terminal in the output console checkbox:
note
This option is available only for the CMake Application, Native Application, and C/C++ File configurations.
The availability of this feature depends on the OS, debugger, and toolchain you are using. It also depends on whether there is an input redirection and whether the running process is being run with administrator rights.
The tables below show whether terminal emulation is available in the output console for running, debugging with GDB, and debugging with LLDB in a particular case:
Default | Run with privileges | Redirected input | |
---|---|---|---|
Running | |||
GDB | |||
LLDB |
Default | Run with privileges | Redirected input | |
---|---|---|---|
Run | |||
LLDB |
Default | Run with privileges | Redirected input | |
---|---|---|---|
Run | |||
GDB | |||
MSVC LLDB |
Default | Run with privileges | Redirected input | |
---|---|---|---|
Run | |||
GDB |
Thanks for your feedback!