I'm writing a game where I create a map using ncurses. What I want to try and do(if possible) is make the map the size of the terminal, in other words in the main program I have:
// Create a game on an 80x30 map Game gameInstance( 80, 30 ) ; //run game gameInstance.run() ;
But what I want to try and do is detect the size of the terminal window the user already has. Then pass those x and y values to the gameInstance() function.