CLion 2024.2 Help

Terminal in the output console

CLion emulates terminal in the output console to help you work with text-based user interfaces (TUI), for example, curses/ncurses applications.

Terminal in console example

Enable terminal emulation in output console

  1. In the main menu, go to Run | Edit Configurations.

  2. Select the desired configuration and set the Emulate terminal in the output console checkbox:

    Enabling terminal emulation in output console

Limitations

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:

Linux

Default

Run with privileges

Redirected input

Running

feature is supported

feature is not supported

feature is not supported

GDB

feature is supported

feature is supported

feature is supported

LLDB

feature is supported

feature is supported

feature is supported

macOS

Default

Run with privileges

Redirected input

Run

feature is supported

feature is not supported

feature is not supported

LLDB

feature is supported

feature is supported

feature is supported

Windows

Default

Run with privileges

Redirected input

Run

feature is supported

feature is not supported

feature is not supported

GDB

feature is not supported

feature is not supported

feature is not supported

MSVC LLDB

feature is supported

feature is supported

feature is supported

Docker, Remote, WSL toolchains

Default

Run with privileges

Redirected input

Run

feature is supported

feature is supported

feature is not supported

GDB

feature is not supported

feature is not supported

feature is not supported

Last modified: 11 October 2024