Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Blinking Cursor is in the wrong spot
Blinking Cursor is in the wrong spot [message #220384] Sat, 07 July 2007 12:03 Go to next message
Eclipse UserFriend
Originally posted by: ymalm.uslink.net

I've got this program that selects a random number between 1 and 10, and
then asks the user to try and guess the number. The program keeps looping
until he guesses the number. But I noticed when I run the program, Eclipse
puts the blinking cursor in the wrong spot. The first few lines of output
are:

Welcome to the Guessing Game.
Enter an integer between 1 and 10:

Eclipse positions the blinking cursor right before the 'W' in 'Welcome'.
Seems to me it should be positioned after the colon in 10.

Likewise, if the user guesses incorrectly, the following lines run:

Try again...
Enter an integer between 1 and 10:

Again, Eclipse positions the cursor in front of the 'T' in 'Try'.

Anyone know of why this is? And i don't suppose there is a way to fix it.
Re: Blinking Cursor is in the wrong spot [message #220405 is a reply to message #220384] Sun, 08 July 2007 01:10 Go to previous message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
357mag wrote:
> I've got this program that selects a random number between 1 and 10, and
> then asks the user to try and guess the number. The program keeps
> looping until he guesses the number. But I noticed when I run the
> program, Eclipse puts the blinking cursor in the wrong spot. The first
> few lines of output are:
>
> Welcome to the Guessing Game.
> Enter an integer between 1 and 10:
>
> Eclipse positions the blinking cursor right before the 'W' in 'Welcome'.
> Seems to me it should be positioned after the colon in 10.
>
> Likewise, if the user guesses incorrectly, the following lines run:
>
> Try again...
> Enter an integer between 1 and 10:
>
> Again, Eclipse positions the cursor in front of the 'T' in 'Try'.
>
> Anyone know of why this is? And i don't suppose there is a way to fix it.
>
Hi. I take it you're using the Eclipse console to simulate the system
console? I've noticed a similar thing in the Eclipse console. I just
ignored it. For me, as soon as I entered input, the cursor moved to the
correct position. I wasn't too worried about it, since I was just using
the console for testing and learning purposes.

Have you tried exporting to a JAR and running the program at your system
console? I think you might find that this is fine, in which case this
would seem to be more or less a cosmetic bug? Hope this helps. Mark Dexter
Previous Topic:Visual Editor
Next Topic:Debug: Cannot connect to VM
Goto Forum:
  


Current Time: Fri Apr 26 10:47:41 GMT 2024

Powered by FUDForum. Page generated in 0.08223 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top