co-prompt icon indicating copy to clipboard operation
co-prompt copied to clipboard

Allow for backspacing when entering a password

Open ning-github opened this issue 9 years ago • 5 comments

Before: When typing into a prompt.password, if you were to make a typo and press delete to on your keyboard so that you could change it, it would just keep adding to the buffer as well as the process.stdout.

After: The backspace keypress is caught, trimming the final character off the keypress, as well as not including it in the buffer.

ning-github avatar Mar 25 '16 00:03 ning-github

works perfectly, but it doesn't remove the mask (*) character on the console, is this posible?

jesusgp22 avatar Aug 31 '16 15:08 jesusgp22

Anyone planning to merge this soon? We're depending on it for a fix over at https://github.com/lambtron/emojipacks/issues/72 :D

zachfeldman avatar Mar 05 '17 01:03 zachfeldman

This bug tho -_- , thanks for the pr dude.

iamleet avatar Oct 04 '17 20:10 iamleet

This really needs to be merged

Ochaun avatar Jan 18 '19 17:01 Ochaun

@OEMarshall dude, I would really give up on this and look into https://www.npmjs.com/package/prompts

iamleet avatar Jan 18 '19 18:01 iamleet