Roguelike template in C and NCurses