Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect if password would be echoed, before entering password #7

Open
dfaerch opened this issue Feb 13, 2025 · 0 comments
Open

Detect if password would be echoed, before entering password #7

dfaerch opened this issue Feb 13, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@dfaerch
Copy link
Owner

dfaerch commented Feb 13, 2025

Detect if the password would be visible, before we enter it. Maybe trigger some dialog to ask the user if they wish to paste anyway.

I've opened an issue wezterm/wezterm#6466 requesting for a lua function for detecting this.
If thats not possible, a workaround could be implemented, by:

  • send a char (eg just a space or period)
  • check if it is echoed back
  • delete it again

Though this is doable, it does send chars to whatever program you have in foreground, if you try to send a password by accident. If user is in a program that reacts on single keypresses, eg. vi, then this can be annoying. So the preferred solution would be if something inside WezTerm can tell us if echo would happen.

@dfaerch dfaerch added the enhancement New feature or request label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant