Cannot copy text from Crush CLI output in Windows Terminal (WSL2 on Windows 11)
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
- Open Windows Terminal on Windows 11
- Start WSL2 shell with Crush CLI
- Run any command producing output
- Attempt to select and copy text from the Crush CLI output
- 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.
i was wondering. can you paste multiline in the windows OS specifically? not in the wsl.
Yes pasting works, but selecting or highlighting text does not.
this is also a bug in macos not just windows
same on linux
does this still happen on latest/main?
Also getting this problem highlighting and copying output on MacOS
@aymanbagabas can you take a look?
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.
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 Is this related to https://github.com/charmbracelet/crush/pull/1555?
@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.