Results 1 to 2 of 2

Thread: Password prompt?

  1. #1
    Join Date
    Sep 2010
    Location
    Norway
    Posts
    5

    Default Password prompt?

    Just found out about Spring Shell, pretty cool stuff!

    Is it possible to create a password prompt? I've browsed through the source without finding any references.

  2. #2
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    You can do that by directly using the JLine ConsoleReader:
    Code:
    ConsoleReader cr = new ConsoleReader();
    String pwd = cr.readLine('*');
    Erwin
    Last edited by klr8; Nov 11th, 2012 at 04:16 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •