title: How to redirect Octave's console output to a separate console?
body: <p>If I have a function that displays a large amount of output, is there a way to display it all in the terminal separately (maybe using <code>more</code> or <code>less</code>), such that, upon exiting the pager, I get the Octave's console as is?</p>
  
  <p>Like so:</p>
  
  <pre><code>octave:159&gt; retVal = func_with_lotsa_output();
  octave:160&gt; 
  </code></pre>
  
  <p>I seem to remember a previous version of Octave doing that by default (I'm currently on 3.8.1). Right now, the output is displayed before getting the prompt at line 160 (in between 159 and 160, that is).</p>
  
  <p>I tried fiddling with <code>PAGER</code>, but to no avail.</p>
  
  <p>EDIT: I've tried <code>PAGER("more"), PAGER("less"), PAGER("pg")</code>. I am unsure of what flags to try in <code>PAGER_FLAGS()</code>. Nothing has made a difference.</p>