auto determine terminal width