It would be great if we could have arc help pipe its output through a pager (less or more). This provides much more readable help documentation. One possible solution is demonstrated below, although a more elegant solution could likely be constructed using PhutilExecPassthru and TempFile.
<?php $pipes = array(); $proc = @proc_open( 'less', array( 0 => array('pipe', 'r'), 1 => STDOUT, 2 => STDERR, ), $pipes); fwrite($pipes[0], 'foobar'); fclose($pipes[0]); // It is important that you close any pipes before calling // proc_close in order to avoid a deadlock $err = proc_close($proc);