title: Mac terminal - command line being overwritten if line is longer than window
body: <p>My command line isn't behaving as expected. When I write something that is longer than the window width, the cursor goes back to the beginning of the same line and continues to write on top of the same line instead of automatically moving to the next line. For example, if I write "this is a line to illu" on the command line of my terminal the following is what I see:</p>
  
  <pre><code>Last login: Thu Jun 19 18:32:24 on 
  e to illu &gt; ~] $ this is a lin
  </code></pre>
  
  <p>Note how the end of the text was being shown at the beginning of the same line. If the terminal window is wide enough I see this:</p>
  
  <pre><code>Last login: Thu Jun 19 18:32:24 on 
  [MacBook &gt; ~] $ this is a line to illu
  </code></pre>
  
  <p>I'd like it to behave like this:</p>
  
  <pre><code>Last login: Thu Jun 19 18:32:24 on 
   [MacBook &gt; ~] $ this is a line to illustrate
   the problem
  </code></pre>
  
  <p>How can I solve this?</p>
  
  <p>Thanks.</p>