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

AnsiConsole.Ask has problem with inputting wide characters #1406

Closed
ilyfairy opened this issue Dec 16, 2023 · 2 comments · Fixed by #1595
Closed

AnsiConsole.Ask has problem with inputting wide characters #1406

ilyfairy opened this issue Dec 16, 2023 · 2 comments · Fixed by #1595
Labels
bug Something isn't working needs triage

Comments

@ilyfairy
Copy link

ilyfairy commented Dec 16, 2023

Information

  • OS: Windows
  • Version: [e.g. 0.48.0]
  • Terminal: Windows Terminal and cmd

AnsiConsole.Ask has problem with inputting wide characters.
Deleting will only delete half, and will result in the inability to delete the entire text in the input box.

var name = AnsiConsole.Ask<string>("What's your [green]name[/]?"); // 
Console.WriteLine(name);

Expected behavior
Ability to delete text normally

Screenshots
VsDebugConsole_bBtIoBKiZD


Please upvote 👍 this issue if you are interested in it.

@ilyfairy ilyfairy added bug Something isn't working needs triage labels Dec 16, 2023
@github-project-automation github-project-automation bot moved this to Todo 🕑 in Spectre Console Dec 16, 2023
@TonWin618
Copy link
Contributor

this issue still exists. is there a workaround?

@TonWin618
Copy link
Contributor

I noticed that the program did not account for character width when handling the Backspace key. I will open a PR later to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
Status: Done 🚀
Development

Successfully merging a pull request may close this issue.

2 participants