The command-line mode would not let you stop entering the password due to a bug in comparison of ASCII code to inputed character.