Determine width of terminal