tj / co-prompt

sane terminal user-input for node.js using thunks / generators
192 stars 23 forks source link

Allow for backspacing when entering a password #8

Open ning-github opened 8 years ago

ning-github commented 8 years ago

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.

jesusgp22 commented 8 years ago

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

zachfeldman commented 7 years ago

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

iamleet commented 7 years ago

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

Ochaun commented 5 years ago

This really needs to be merged

iamleet commented 5 years ago

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