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

Problem with powershell #803

Open
HKalbasi opened this issue Jun 29, 2024 · 2 comments
Open

Problem with powershell #803

HKalbasi opened this issue Jun 29, 2024 · 2 comments
Labels
A-Events Area: Handling of incoming events (e.g. desired keypress not registered) bug Something isn't working platform-dependent Issue that can only be observed on certain platforms or terminal emulators

Comments

@HKalbasi
Copy link
Contributor

Platform: Windows 10
Terminal software Powershell version 5 and 7

Describe the problem you are observing.

Steps to reproduce

  1. Run the example from the readme.
  2. Observe that it has problems

Screenshots/Screencaptures

It doesn't take any output and even ctrl+C and ctrl+D don't work quickly. It prints Event: Err(Custom { kind: Other, error: "The cursor position could not be read within a normal duration" }) and prints ansi codes like [50;1R.

It doesn't happen in a system with windows 10 build 22H2 and build 22H1, but happens in a system with windows 10 build 2004, so it might be a windows bug but I would like to know the cause of it and if there is any workaround.

@HKalbasi HKalbasi added the bug Something isn't working label Jun 29, 2024
@sholderbach
Copy link
Member

With which terminal are you running Powershell? The older cmd style conhost.exe or the newer Windows Terminal?
(I personally only have the newer Win10 build available, so a bit tricky for me to jump in with a reproduction)

@sholderbach sholderbach added A-Events Area: Handling of incoming events (e.g. desired keypress not registered) platform-dependent Issue that can only be observed on certain platforms or terminal emulators labels Jun 30, 2024
@HKalbasi
Copy link
Contributor Author

HKalbasi commented Jul 5, 2024

The problem happens with both, but Windows Terminal + WSL instead of powershell is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Events Area: Handling of incoming events (e.g. desired keypress not registered) bug Something isn't working platform-dependent Issue that can only be observed on certain platforms or terminal emulators
Projects
None yet
Development

No branches or pull requests

2 participants