in reply to Re: User interaction mid script again
in thread User interaction mid script again

for anybody who's interested I found out how to do it in perl expect.
$session->interact(\*STDIN, "\r"); print $session "\r";
is the same as
interact -nobuffer -re "(.*)\r" return
in tcl expect