# Fix for terminal window columns and rows mismatch inside the container

**URL:** <https://meta.discourse.org/t/fix-for-terminal-window-columns-and-rows-mismatch-inside-the-container/89222>\
**Category:** Development\
**Created:** [June 6, 2018, 5:10am UTC](https://meta.discourse.org/t/fix-for-terminal-window-columns-and-rows-mismatch-inside-the-container/89222 "2018-06-06T05:10:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![cmwebdev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmwebdev/32/122368_2.png) [@cmwebdev](https://meta.discourse.org/u/cmwebdev)\
**Post date:** [June 6, 2018, 5:10am UTC](https://meta.discourse.org/t/fix-for-terminal-window-columns-and-rows-mismatch-inside-the-container/89222/1 "2018-06-06T05:10:54Z")

</div>

I have figured out a simple workaround to a problem that was driving me CRAZY with the Docker container. Whenever I run `./launcher enter app`, the columns and rows of the shell session from inside the container never matched my terminal window (I use iTerm2). This would make any command of medium or greater length wrap onto the same line, which made it very difficult to use. Running queries was especially bad.

I found a little trick on GitHub from user arielpontes to fix this.

> I still get this all the time running Docker on Mac. I realized that if I **simply resize the terminal window after attaching to the container, the problem is fixed**.

Very simple workaround that I never thought of doing. 🤦‍♂️ Hope this helps somebody else.

**Source:**  
[https://github.com/docker/compose/issues/253#issuecomment-361888888](https://github.com/docker/compose/issues/253#issuecomment-361888888)

---

_[View the full topic](https://meta.discourse.org/t/fix-for-terminal-window-columns-and-rows-mismatch-inside-the-container/89222)._
