Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problem of IOConsole
Problem of IOConsole [message #305922] Sun, 16 July 2006 23:57
Eclipse UserFriend
I use IOConsole to interact with user like this:
InputStream in = console.getInputStream();
OutputStream out = console.newOutputStream();
out.println("Please input usename and password.");
out.print("username: ");
username = in.readline();
out.print("password: ");
pwd = in.readline();

The problem is the cursor will appear at the begin of the line, I want it
at the end of the line.
For example:
After user input username, console will print "password: " and the cursor
is before 'p', How can I set the cursor to the end of the line(after ':'
character)?

Thanks in advance.

Regards
zhlmmc
Previous Topic:How do I *prevent* formating by eclipse?
Next Topic:Eclipse Forms: How can I make my form editor to turn on/support "File->Save, SaveAs, SaveAl
Goto Forum:
  


Current Time: Sun Jul 06 13:59:08 EDT 2025

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

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

Back to the top