Detect terminal size on *nix systems and truncate progress reports to prevent line spam if they exceed the terminal width