title: edit command, arrow button not working
body: <p>In my current directory I have a file mini.m</p>
  
  <pre><code>function ret = mini(x)
    ret = x(1);
    for i = 2:length(x),
      if x(i) &lt; ret,
        ret = x(i);
      end;
    end;
  endfunction
  </code></pre>
  
  <p>Then I run </p>
  
  <pre><code>&gt;&gt; octave
  &gt;&gt; edit mini.m
  </code></pre>
  
  <p>My arrow buttons are not working property. Instead of navigating the cursor, the arrow buttons type random characters over my file, like this.</p>
  
  <pre><code>OBOCCOCOCCOUnOCOCCOC ORtO= Miniddddddde
  fdOCXCOCOC
    RetOOCOC# Octave 4.0.0, Sun Sep 27 01:01:33 2015 EDT &lt;yanshen@Sams-MacBook.local&gt;Or i = 2:length(x),
      if x(i) &lt; ret,
        ret = x(i);
      end;
    end;
  endfunction
  </code></pre>
  
  <p>Anyone has an idea of what's going on? Thank you!</p>