$string = "show"; $thost->print($string); $thost->waitfor('----More---') $anykey = "b"; $thost->print($anykey);