It would be useful if there was an option so that
readLine() didn't always add the input to the command
history. For example, a command entered in a console
application may prompt the user for input. The
original command should go in command history but you
may not want the command input should not.
I have attached a patch to ConsoleReader.java that
would provide this ability
Patch for proposed enhancement
Logged In: YES
user_id=33016
Added setUseHistory/getUseHistory methods in next release.