message: fix empty password and empty mnemonic issue on windows
diff: @@ -25,7 +25,7 @@ pub fn new_password() -> String {
  println!("Enter you wallet password. It will be needed to recover");
  println!("your wallet later with the mnemonic phrase.");
  - PasswordInput::new("password")
  + PasswordInput::new("password (cannot be empty)")
  .confirm("Confirm password", "Passwords mismatching")
  .interact_on(&Term::stdout())
  .unwrap()
  @@ -35,7 +35,7 @@ pub fn new_password() -> String {
  println!("Enter you wallet password. It will be needed to recover");
  println!("your wallet later with the mnemonic phrase.");
  - let pwd1 = Input::new("password")
  + let pwd1 = Input::new("password (cannot be empty)")
  .interact()
  .unwrap();
  let pwd2 = Input::new("Confirm password")
  @@ -46,18 +46,22 @@ pub fn new_password() -> String {
  }
  pwd1
  }
  +
  +const NO_MORE_WORDS : &'static str = "No more words";
  +
  // own receive napkin fame episode mimic hard crucial river vintage cool average source grow wash
  + // shielded entropy: unfold foil explain tackle idea name upon jacket gentle cover fold march raccoon pledge survey coach juice fossil cake notice hope
  #[cfg(unix)]
  fn read_word(index: usize) -> String {
  - let prompt = format!("mnemonic {}: ", index);
  - let word = PasswordInput::new(&prompt).interact_on(&Term::stdout()).unwrap();
  + let prompt = format!("mnemonic {}", index);
  + let word = PasswordInput::new(&prompt).default(NO_MORE_WORDS).interact_on(&Term::stdout()).unwrap();
  Term::stdout().clear_line().unwrap();
  word
  }
  #[cfg(windows)]
  fn read_word(index: usize) -> String {
  - let prompt = format!("mnemonic {}: ", index);
  - let word = Input::new(&prompt).interact_on(&Term::stdout()).unwrap();
  + let prompt = format!("mnemonic {}", index);
  + let word = Input::new(&prompt).default(NO_MORE_WORDS).interact_on(&Term::stdout()).unwrap();
  word
  }
  @@ -68,7 +72,7 @@ pub fn get_mnemonic_word<D>(index: usize, dic: &D) -> Option<bip39::Mnemonic>
  for _ in 0..3 {
  let word = read_word(index);
  - if word == "finished" || word.is_empty() {
  + if word == NO_MORE_WORDS {
  let done = Confirmation::new("No mnemonic entered, are you done?")
  .default(true)
  .interact_on(&Term::stdout()).unwrap();
  