in reply to Expect and STDIN

You have already solved this, but for the sake of others stumbling across this... ^G is historically the alert character -- it rings the bell on the terminal.

--MidLifeXis