소스는 아래와 같습니다.
콘솔에서 실행시켜보면 마우스가 통 안먹힙니다. 뭐가 잘못된거죠?
/* File Path basics/mouse_menu.c */
#include
#define WIDTH 30
#define HEIGHT 10
int startx = 0;
int starty = 0;
char *choices[] = { "Choice 1",
"Choice 2",
"Choice 3",
"Choice 4",
"Exit",
};
int n_choices = sizeof(choices) / sizeof(char *);
void print_menu(WINDOW *menu_win, int highlight);
void report_choice(int mouse_x, int mouse_y, int *p_choice);