You're too late, Terminal2shell already exists.
autoexpect has been around a long time, and can be incredibly useful. =3
autoexpect has been around a long time, and can be incredibly useful. =3