tmux loses ability to input text after I close the terminal where it was initiated
<p>tmux acts strange after I close the terminal it was initiated and reattach again.</p>

<p>Basically, I do is:</p>

<ol>
<li>start the iTerm or Terminal</li>
<li>start a new tmux session</li>
<li>work inside tmux</li>
<li>close the terminal</li>
<li>open a new terminal</li>
<li>attach to tmux session</li>
</ol>

<p>After the step 6, tmux starts to act strange, it won't react to keystrokes however it still listen to and respond to tmux commands.</p>

<p>Then, if I create a new window navigate back and forth tmux appears to dump all the content I've previously typed. </p>

<p><a href="https://i.stack.imgur.com/gVRI2.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gVRI2.gif" alt="tmux weird"></a></p>