I havn't really looked at your code, it's quite complex, but have you seen Term::ReadLine and Tk - Solved? Also, you might try putting your ReadLine loop code into a separate thread
Thanks, zentara - but if you look at the first piece of code in my original node, using TRL with Tk without trying to insert AE loops, that I got to work. I was merely hoping to use AE to catch all the events allowing me to switch event engines transparently.