This is not Java specific! I am assume you're using windows because you mention the command prompt. This functionality is only available in Windows XP if you are using anything earlier than that you have to make do with typing the doskey command and press the UP or DOWN arrows to access previously typed commands! Barry
Joined: Jul 30, 2003
It's not only not Java-specific, it has nothing to do with Java at all, not unless you want to write a command shell in Java but I see no point in doing that.
Joined: Nov 10, 2004
I understand that nowhere it is related to java. But I was trying to know, can we do this in java. As Jeff Bosch told for that we have to write a command shell in java. Fact is no point writing command shell in java.
Can we do this in Java? Are you asking if we can do this in Java when entering text through a console-based program? That seems to the only way that I make sense of the question. If so, the answer is no -- not with the system's console. You would have to write your own console that listens for the TAB key.
Actually, on prior Windows systems, type "regedit", and go to "HKEY_CURRENT_USER\Software\Microsoft\Command Processor\Completion Char" and set the value to 9, then you get tab-completion in pre-XP systems. (The earliest that I know it works is NT 4; I don't know about 95 or 98)
R S B:
Your name does not conform to Java Ranch naming policy You can keep the initials for the first name if you like, however, we would appreciate it if your last name was spelled out. You can change it here
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com