Added support for changing the width of the terminal