Setting cursor text..

Like in the command box, I want it to say something like "Command:(Text goes here)" So when someone types it looks like "Command: Hey!" Instead of "_", any help?
[168 byte] By [Shadow1222a] at [2007-11-27 7:05:10]
# 1
what are you asking?System.out.print("Command:_");< use space instead of _scanner.nextLine()
TuringPesta at 2007-7-12 18:56:30 > top of Java-index,Java Essentials,Java Programming...
# 2
No, Im talking CURSOR TEXT not System.out.println method.."Command:_" instead of the normal "_".
Shadow1222a at 2007-7-12 18:56:30 > top of Java-index,Java Essentials,Java Programming...
# 3
> No, Im talking CURSOR TEXT is "cursor text" the name of the language you are speaking? because i have no idea what you are saying.
TuringPesta at 2007-7-12 18:56:30 > top of Java-index,Java Essentials,Java Programming...
# 4
I suppose you aren't talking about GUI cursors (called "mouse pointers" by a lot of people)? Or are you talking about some command-line shell that prompts you with an underscore?
DrClapa at 2007-7-12 18:56:30 > top of Java-index,Java Essentials,Java Programming...
# 5
> CURSOR TEXT Tooltips, maybe?
kevjavaa at 2007-7-12 18:56:30 > top of Java-index,Java Essentials,Java Programming...
# 6

> Or are you talking about some command-line shell that prompts you with an underscore?

In Windows, the command for that is "prompt" followed by the new prompt text

C:\>_

C:\>prompt blah blah blah_

blah blah blah _

I dont think you can do this programmatically.

You could futz around with Runtime/Process or JNI.

The new Java 6 Console class doesnt seem like much help

though actually readPassword and readLine allow you to set

the prompt text.

http://java.sun.com/javase/6/docs/api/java/io/Console.html

TuringPesta at 2007-7-12 18:56:30 > top of Java-index,Java Essentials,Java Programming...