title: Get console width in Rust
body: <p>When line-wrapping our output so it is visually pleasant, it would be helpful knowing the console window or at least the buffer width.</p>
  
  <p>There are answers how to do this in <a href="https://stackoverflow.com/questions/6812224/getting-terminal-size-in-c-for-windows">C</a> and <a href="https://stackoverflow.com/questions/23369503/get-size-of-terminal-window-rows-columns">C++</a>, C# even has properties which make this task easy. But Rust?</p>
  
  <p>Is there anything I could use to get this information, or should I just let the user decide where my program wraps the output?</p>