Added terminal width detection. Closes #14.