Cannot copy content from GDB output window when in TUI mode running in Windows terminal #18820

Closed
opened 2026-01-31 06:25:21 +00:00 by claunia · 6 comments
Owner

Originally created by @ThomsonTan on GitHub (Nov 4, 2022).

Windows Terminal version

No response

Windows build number

10.0.22621.674

Other Software

GDB 11

Steps to reproduce

  1. In Windows terminal, launch either WSL2 or connect to a remote Linux via ssh.
  2. Install GDB and use it to debug an app.
  3. Switch to TUI mode (Ctrl-x a).
  4. Try to copy any text from the Window.

Expected Behavior

I can use mouse to select text and copy it via ctrl+c.

Actual Behavior

Cannot select any text and copy it to clipboard.

Originally created by @ThomsonTan on GitHub (Nov 4, 2022). ### Windows Terminal version _No response_ ### Windows build number 10.0.22621.674 ### Other Software GDB 11 ### Steps to reproduce 1. In Windows terminal, launch either WSL2 or connect to a remote Linux via ssh. 2. Install GDB and use it to debug an app. 3. Switch to TUI mode (`Ctrl-x a`). 4. Try to copy any text from the Window. ### Expected Behavior I can use mouse to select text and copy it via `ctrl+c`. ### Actual Behavior Cannot select any text and copy it to clipboard.
Author
Owner

@zadjii-msft commented on GitHub (Nov 4, 2022):

Can you select text when you hold shift and use the mouse to select text/? Sounds to me like gdb's TUI mode enabled mouse mode.

@zadjii-msft commented on GitHub (Nov 4, 2022): Can you select text when you hold shift and use the mouse to select text/? Sounds to me like gdb's TUI mode enabled mouse mode.
Author
Owner

@ghost commented on GitHub (Nov 8, 2022):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Nov 8, 2022): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@ThomsonTan commented on GitHub (Nov 8, 2022):

Can you select text when you hold shift and use the mouse to select text/? Sounds to me like gdb's TUI mode enabled mouse mode.

I can select text w/ shift pressed, thanks! Is there other way to configure Windows terminal to disable this mouse mode to avoid pressing shift?

@ThomsonTan commented on GitHub (Nov 8, 2022): > Can you select text when you hold shift and use the mouse to select text/? Sounds to me like gdb's TUI mode enabled mouse mode. I can select text w/ shift pressed, thanks! Is there other way to configure Windows terminal to disable this mouse mode to avoid pressing `shift`?
Author
Owner

@zadjii-msft commented on GitHub (Nov 8, 2022):

Is there other way to configure Windows terminal to disable this mouse mode

I think we're tracking that in #4875

@zadjii-msft commented on GitHub (Nov 8, 2022): > Is there other way to configure Windows terminal to disable this mouse mode I think we're tracking that in #4875
Author
Owner

@xiaoqiang-wang commented on GitHub (May 12, 2025):

I also have the problem.
1.When I use MobaXterm, and use gdb .a.out, the mouse can not select any text.
2. But when the shift press down, I can partial copy and past.

Q1:Is there a solution, or configuration to fix this issue?

@xiaoqiang-wang commented on GitHub (May 12, 2025): I also have the problem. 1.When I use MobaXterm, and use `gdb .a.out`, the mouse can not select any text. 2. But when the `shift` press down, I can partial copy and past. Q1:Is there a solution, or configuration to fix this issue?
Author
Owner

@DHowett commented on GitHub (May 12, 2025):

MobaXterm

This repository is for Windows Terminal. We cannot help with the MobaXterm terminal. Please contact the creators of that software.

@DHowett commented on GitHub (May 12, 2025): > MobaXterm This repository is for Windows Terminal. We cannot help with the MobaXterm terminal. Please contact the creators of that software.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18820