"Why" is secondary here (if not tertiary), but I have a small perl script that is a command prompt (looping until the quit statement is issued by the user).
It sends commands to different places based on what kind of command they are.
I've built some of my own functionality of vi in there using PortableReadKey. I can scroll through the command history and stuff, but I need more of the vi functionality than I care to write (search/replace, insert before, insert after, ...). I think I should be able to use VI by way of an open3 pipe, but I just can't nail it down. I can get some stuff to work but not all.
Is there anyone here who's ever been on enough K to have wanted to do something like that?
Thanks!