Add automatic determination of terminal width.