Why doesn keyboard input read by the IN instruction show up in “Standard out”?
Because you might not want it to. The IN instruction reads from a device that is strictly an input device, and the OUT instruction writes to a device that is strictly an output device. If you want to display what the user is typing while running your IJVM program, you will need to cause this to happen by doing an explicit OUT instruction for each character that you read and want to echo.
Related Questions
- How can I read input from the keyboard without waiting for the return key to be pressed? How can I animate some display so that the timings will be the same on different computers?
- How can applications receive Input reports from a system mouse or keyboard?
- Is a Warehouse script able to read keyboard input ?