How to interrupt a stdin stream?

Hello community,

I'm using IntelliJ IDEA 10.0.3 and I cannot figure out one simple thing — how do I interrupt an stdin stream in the console? Especially, if the interrupt will be read in a while loop until the EOF character. The usual shortcuts like Ctrl-D, Ctrl-Z do not work. I also tried to put the input into a file and to configure the program parameters in the Run Configuration as:

< /path/to/file

But it doesn't work either. So I have no Idea what I could do next, except for compile the source code in a real console and do execute the compiled binary from there... I cannot believe, that it's not possible. I also googled half a day and didn't find anything.

Thanks for your help in advance!

1 comment
Comment actions Permalink


I'm afraid it's not possible to do that at the moment. Feel free to submit corresponding request to IJ tracker.



Please sign in to leave a comment.