title: How do i get less or more to recognize keystrokes when piping from a cli php script?
body: <p>I want to be able to use the arrow keys when i pipe output from a php cli script into less. At the moment php cli does something to the tty which can only be fixed when you execute</p>
  
  <pre><code>!stty sane
  </code></pre>
  
  <p>from within less, which is a right pain!</p>
  
  <p>I found a reference to this problem @ <a href="http://www.php.net/manual/en/features.commandline.php#90743" rel="noreferrer">http://www.php.net/manual/en/features.commandline.php#90743</a> but i can't seem to find an answer :-)</p>
  
  <p>Any help is appreciated, although this problem ranks far below many other problems ;-)</p>