I’m trying to manually communicate with a built exe on Windows, which panics when there is an unexpected ‘n’ in the input. I could not change the source code, nor do I want to bother to write an intermediate program to cope with this. So is there any way to manually flush the console buffer(e.g. via shortcuts or special characters)?
I’ve tried to do some research on Google, but non of the result seemed relevant. Also I’ve tried ^Z yet it doesn’t work(of course). Using input from file is impossible as I have to read the output to decide next.
LAWArthur Wei is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.