title: how to show dummy character while typing in terminal in ruby?
body: <p>Using following code, I am able to hide characters while typing in terminal.</p>
  <pre><code>require 'io/console'
  str =  STDIN.noecho(&amp;:gets).chomp
  </code></pre>
  <p>Though it is taking input, terminal is not showing anything while typing in terminal. I want to show dummy characters like # or *.</p>
  <p>Like, if I am typing 'cat' , it should show '***' in terminal.
  How to do it ?</p>