Bug Description
There are two issues with prompt.password() (masked password input):
1. Triple asterisks on single keypress
When typing a single character, three asterisks (***) appear instead of one.
2. Paste not working
Cannot paste password from clipboard - nothing appears when using Ctrl+V / Cmd+V.
Environment
@bunli/core: ^0.5.4
- Bun version: 1.3.9
- OS: Linux/macOS
Reproduction
import { defineCommand } from '@bunli/core';
export default defineCommand({
name: 'test',
async handler({ prompt }) {
const password = await prompt.password('Enter password:');
console.log('Password length:', password.length);
},
});
Current Workaround
Using prompt.text() without mask instead.
Expected Behavior
- One character typed = one asterisk shown
- Paste from clipboard should work correctly
Bug Description
There are two issues with
prompt.password()(masked password input):1. Triple asterisks on single keypress
When typing a single character, three asterisks (
***) appear instead of one.2. Paste not working
Cannot paste password from clipboard - nothing appears when using Ctrl+V / Cmd+V.
Environment
@bunli/core:^0.5.4Reproduction
Current Workaround
Using
prompt.text()without mask instead.Expected Behavior