Allow xmsg to read from stdin.