I don’t know how to do this, but since noone else has told you what you need to do, I hope this pointer helps anyway: what you need is to find the controlling terminal and write to/read from it to prompt the user.
Makeshifts last the longest.
In reply to Re: No interactivity (prompt) after reading from pipe
by Aristotle
in thread No interactivity (prompt) after reading from pipe
by svenXY
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |