I am working through some example programs which require the user to enter simple text data at the console, simulating what might come from a file.
This calls for the user to end by entering Ctrl+z in order to send EOF.
If I run such a program at the Windows command line, it works as expected.
However, if I run it in IDEA, it seems that the Ctrl+z is being trapped by the Run console or IDE, and not conveyed to the program.
I tried using the IDE key mapping settings (for Main Menu) to unmap Ctrl+z from its normal "undo" function. That indeed stopped Ctrl+z from performing Undo, but did not cause the console to pass Ctrl+z through to the program.
Any ideas how to get the Run console to pass Ctrl+z to the running program?
I am using IDEA 11.1.1 on Windows 7 with "JDK7u4" though IDEA help reports JDK 1.6.0_31.