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

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