Display the prompt message before waiting for input

The prompt message was not displayed before waiting for the input. For example we had the problem with the JCR "ws login" command. The "ws login" command only displayed a blank line and waited for the password. The "password:" message was only displayed once the password has been entered.