I am finding that keyboard arrows are failing to navigate when the input is piped to it. For example:
when the arrow keys are pressed you get ^[OB or ^[OA. When you pipe to log file and then use less on that the arrow keys work fine
php script.php | less
Any ideas how I can overcome this? This us using Ubuntu 10.04 LTS and from an SSH session coming in from a mac. I tried SSHing into another server and this problem was not present. There is no difference in .inputrc file.
php script.php > temp.txt