sftp problem

Hi,
I'm in the process of writting some scripts using sftp2 on a HP UX 11.11 machine.
I've found that when I do an 'ls' command , even when in batch mode, it asks for me to 'press any key to continue or q to quit' after a screenful of data. Of course in batch mode this cause the script to hang.
Anyone else experience this, and have a work around?

Thanks