I'm writing a program that accepts commands on stdin, but entering the commands is annoying since the arrow keys print their control sequences, and if you type a long command that wraps to the next line there is no way to backspace to the previous line.
I want behavior similar to a shell prompt. So far the only information I've found has suggested changing settings with stty or using Term::ReadKey...but that seems to really mess things up. I tried that and it let the user use the arrows to move anywhere in the terminal window...even above the line containing the prompt.
So am I doomed to have a stupid command line interface, or am I missing something here?