Skip to content
Advertisement

How do I send my CLion’s output to the Gnome Terminal on Debian?

I’m trying to use ncurses in my C program, but it doesn’t work with CLion’s built-in console. From what I’ve gathered, in order to make the output appear in the gnome terminal, I have to select it in the Configure Debug screen, but I can’t seem to find the gnome-terminal file anywhere – the most I could find are the gnome-keyring and gnome-www-browser files. Where should I look for the necessary file on a standard Debian install?

Advertisement

Answer

In the “Run/Debug Configurations” dialog

enter image description here

and change the executable to any custom executable, like for example the gnome terminal and then pass the your program as an argument:

enter image description here

Note that once your program exits or returns from main then the terminal will close as well.

Advertisement