as an aside...as your question has already been answered...you could use a utility such as netcat to open a separate "feeding" process, and open another netcat reading process. this way you separate the two interactions if it makes more sense in the app to do so.
the hardest line to type correctly is: stty erase ^H