crush icon indicating copy to clipboard operation
crush copied to clipboard

Cannot copy text from Crush CLI output in Windows Terminal (WSL2 on Windows 11)

Open Mgrmjp opened this issue 4 months ago • 8 comments

Cannot copy text from Crush CLI output in Windows Terminal (WSL2 on Windows 11)

Description

When running Crush CLI inside WSL2 on Windows 11 via Windows Terminal, it is not possible to select and copy text from the Crush CLI output window. This severely limits the ability to extract logs, command outputs, or error messages for troubleshooting or sharing.

Steps to Reproduce

  1. Open Windows Terminal on Windows 11
  2. Start WSL2 shell with Crush CLI
  3. Run any command producing output
  4. Attempt to select and copy text from the Crush CLI output
  5. Observe that text selection and copying is not possible

Expected Behavior

Text output from Crush CLI should be selectable and copyable within Windows Terminal, similar to standard terminal behavior.

Actual Behavior

Text cannot be selected or copied from the Crush CLI output window.

Environment

  • OS: Windows 11
  • Terminal: Windows Terminal

Additional Context

Being able to copy text from the terminal output is essential for debugging and sharing information. Enabling text selection and copy in Crush CLI would improve the overall user experience significantly.

Mgrmjp avatar Aug 10 '25 06:08 Mgrmjp

i was wondering. can you paste multiline in the windows OS specifically? not in the wsl.

theguy000 avatar Aug 10 '25 12:08 theguy000

Yes pasting works, but selecting or highlighting text does not.

Mgrmjp avatar Aug 12 '25 04:08 Mgrmjp

this is also a bug in macos not just windows

peterson-umoke avatar Aug 12 '25 20:08 peterson-umoke

same on linux

aaronnewsome avatar Aug 17 '25 18:08 aaronnewsome

does this still happen on latest/main?

caarlos0 avatar Sep 22 '25 19:09 caarlos0

Also getting this problem highlighting and copying output on MacOS

maxmoneycash avatar Nov 09 '25 03:11 maxmoneycash

@aymanbagabas can you take a look?

caarlos0 avatar Nov 10 '25 17:11 caarlos0

Text selection works fine on the latest version of Crush. I tested macOS and Windows 11 with Crush v0.16.1. I think this issue predated text selection.

Image

aymanbagabas avatar Nov 10 '25 17:11 aymanbagabas

Having this issue on WSL2 Ubuntu. Selecting text with mouse auto-copies text, but it's malformed and does not contain the entire selected text. Pretty concerning to see something as basic as copying not working..

theseyan avatar Dec 04 '25 20:12 theseyan

@theseyan Is this related to https://github.com/charmbracelet/crush/pull/1555?

aymanbagabas avatar Dec 08 '25 15:12 aymanbagabas

@aymanbagabas It might be related, but my usage is purely English, and it happens when selecting while scrolling. To reproduce on WSL, let a model generate a lot of text such that there's scrollable region in the CLI, and then select from top to bottom of the text (it should scroll automatically) and then let it auto copy. The copied text is malformed and only has parts of the last text chunk while scrolling.

theseyan avatar Dec 08 '25 17:12 theseyan