I want to make my CLion compatible with curses library for C. Here's my sample application
#include <stdio.h>
#include "ncurses.h"
int main() {
initscr();
printw("Hello world");
refresh();
getch();
endwin();
return 0;
}
And here's my CMakeLists.txt
cmake_minimum_required(VERSION 3.14)
project(untitled C)
set(CMAKE_C_STANDARD 99)
add_executable(untitled main.c)
target_link_libraries(${PROJECT_NAME} ncurses)
But when I run the application, I get into this error
Error opening terminal: unknown.