Detect size of terminal and format columns appropriately.
Make terminal size detection work cross-platform.