Okay, after going over the "Q" in the practice menu for the past 2 hours, I came to a semi-solution.
this->flush_buffer( true );
this->pageindex = 0;
this->pagecmd = -1;
I added the this->pagecmd=-1;
Seems to allow you to keep your state, being able to type help, or practice again. But it seems it still needs to clear a command first.
If you add it in, you'll know what I mean. I'll work on it some more tomorrow. Or maybe someone has a fix for it.