mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[keystore] Fix input masking (#108415)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
ec120a2cc1
commit
64a63e6f9e
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ export function question(question, options = {}) {
|
|||
break;
|
||||
default:
|
||||
if (options.mask) {
|
||||
const cursorPos = rl.getCursorPos();
|
||||
output.moveCursor(0, -cursorPos.rows);
|
||||
output.cursorTo(questionPrompt.length);
|
||||
output.write(Array(rl.line.length + 1).join(options.mask || '*'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue