When running in multi-threaded environment, @terminal_width sometimes becomes nil.