I try to monitor arrows with my program but when I press an arrow my window is closing...
void init_game(char *file)
{
    initscr();
    printw(file);
    while (1) {
        place_cursor();
        refresh();
        if (getch() == 27)
            break;
    }
    endwin();
}
27 is the ESC key. I don't really understand why this append
