diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -13,7 +13,7 @@ - Render goal and start in bold */ void sigint_handler(int sig) { - (void)sig; // We know it's a SIGINT + (void)sig; /* We know it's a SIGINT */ endwin(); printf("Received SIGINT\n"); exit(1); @@ -32,10 +32,10 @@ void initialize_colors(void) { int main(void) { signal(SIGINT, sigint_handler); - initscr(); // Initialize the ncurses screen - cbreak(); // Process input one char at a time - curs_set(0); // Hide the cursor - noecho(); // Don't echo characters + initscr(); /* Initialize the ncurses screen */ + cbreak(); /* Process input one char at a time */ + curs_set(0); /* Hide the cursor */ + noecho(); /* Don't echo characters */ initialize_colors(); Map map = rbt_maze_map(20, 10, (unsigned int) time(NULL)); |
