Maybe instead of simulating a terminal you could use it to predict what you'd type next?
So simulate _you_, not the terminal.