Skip to content

fix(tui/windows): fix text prompts on windows not displaying any text #463

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

Merged
merged 1 commit into from
Jun 28, 2025

Conversation

sgrtye
Copy link
Contributor

@sgrtye sgrtye commented Jun 27, 2025

This change addresses #389.

The crossterm implementation on Windows places the terminal in Raw Mode, which means:

Input will not be forwarded to screen
Input will not be processed on enter press
Special keys like backspace and CTRL+C will not be processed by terminal driver

To address these issues, I've made the echoing explicit to ensure user input is visible, and also added support for Backspace, as it didn't work previously.

I've tested this on Windows and confirmed it's working correctly, with the username and confirmation displayed as expected, and the password remaining hidden. I haven't tested on Linux yet, but it should be working just fine; please kindly verify it first.

test
20250627204729

fixes #389

@dyc3
Copy link
Owner

dyc3 commented Jun 28, 2025

I did not know that about raw mode! Very useful info.

Copy link
Owner

@dyc3 dyc3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clippy failures are unrelated to this PR. Thanks for tracking this down!

@dyc3 dyc3 changed the title feat(tui): prompt to echo out input explicitly & add Backspace support fix(tui/windows): fix text prompts on windows not displaying any text Jun 28, 2025
@dyc3 dyc3 merged commit 1fd874e into dyc3:master Jun 28, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prompts don't display characters only on Windows
2 participants