flush stale messages on stdin channel prior to raw_input
use inline raw_input instead of a dialog