DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Eclipse console differs from MS Windows console?
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Default 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.)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting a new dedicated console for an external tool javabyteguru Eclipse 0 10-21-2008 03:33 PM
No Console in Eclipse eben Eclipse 0 09-16-2008 06:37 AM
How to Clear Console on its invocation ? jayjamba Eclipse 0 06-20-2008 04:08 AM
How can i execute a console command from JAVA2SE code? waqarhassan Java 1 05-23-2008 01:50 PM
Read from Eclipse Output Console gamby Eclipse 6 02-14-2008 08:50 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com