reedline icon indicating copy to clipboard operation
reedline copied to clipboard

Problem with powershell

Open HKalbasi opened this issue 1 year ago • 2 comments

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 avatar Jun 29 '24 16:06 HKalbasi

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 avatar Jun 30 '24 17:06 sholderbach

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

HKalbasi avatar Jul 05 '24 08:07 HKalbasi