I use pexpect a lot for SSH sessions. Some of the commands I run spew a lot of junk that I would just rather clear from the internal spawn buffer than have hanging around. It would be helpful to add a command to clear the current input buffer.
Log in to post a comment.