Added support for narrow terminals