title: Get size of terminal window (rows/columns)
body: <p>Is there any reliable way of getting the number of columns/rows of the current output terminal window?</p>
  
  <p>I want to retrieve these numbers in a C/C++ program.</p>
  
  <p>I'm looking for a GNU/Linux solution primarily, but also need a Windows solution.</p>