java console, simulating user input?
Paulo Levi
i30817 at gmail.com
Sun May 15 17:56:01 UTC 2011
Good afternoon.
I was wondering if there is anyway to display a console prompt already
"filled in" with a default option, so the user only has to press enter, but
can modify the string at will.
This seems really difficult to do. Writing to System.in is not a option
obviously. Writing to System.out is useless, since the user can't edit that.
The java.io.Console class offers no help or guidance apparently.
So, is it possible?
More information about the core-libs-dev
mailing list