|
Eclipse console differs from MS Windows console? -
07-27-2008, 07:23 PM
Can anybody help with this?
The following code:
System.out.println("Enter a character");
System.in.read(b);
will have the cursor blinking on the line after the one containing "Enter a character" in the MS Windows console, just as expected.
In the Eclipse (Eclipse SDK Version 3.4.0) console, the blinker remains to the left of the word "Enter" (not expected), until a character is entered from the keyboard - then the character appears on the line after the one containing "Enter a character" with the blinker to the right of the character (as expected).
"Cursor" appears to have two meanings for the Eclipse console - the blinker and the position where the stream is next written. The println method does not seem to move the blinker even though it moves the position correctly.
Can anyone explain this behaviour and how if possible to correct it?
(The former behaviour is certainly more intuitive, and desirable if I want the Eclipse console for scripting purposes.)
|