As I understand it, you need to configure g++ with the -lncurses argument. But I can not figure out how to do this in JetBrains CLion
In general, I added CMakeLists.txt to the end.
link_directories (/ usr / include /)
target_link_libraries (myprogramname ncurses)
Now mistake
Error opening terminal: unknown.
Process finished with exit code 1
cmakeparameters specified? InCmake options? I already tried to specify-lncurseserrors - Herrgott