Problem of IOConsole [message #305922] |
Sun, 16 July 2006 23:57 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05425 seconds