How can I make sure that the key icon (see img for sample) always appears every time I call STDIN.getpass? The issue is intermittent, sometimes I get the icon and sometimes I don't. I could not find a reliable repro step.
How my code currently looks like:
$stdout.flush
# to hide the password while being typed in the terminal
STDIN.getpass
- I thought
$stdout.flushwould resolve my problem but it did not. STDIN.getpassis being returned so its not assigned to any variables.
