Files
textual/questions/copy-text.question.md
Will McGugan fd6cb52c1d faq tweak
2025-04-09 16:08:12 +01:00

19 lines
775 B
Markdown

---
title: "How can I select and copy text in a Textual app?"
alt_titles:
- "Can't copy text"
- "Highlighting and copy text not working"
---
Textual supports text selection for most widgets, via click and drag. Press ctrl+c to copy.
For widgets that don't yet support text selection, you can try and use your terminal's builtin support.
Most terminal emulators offer a modifier key which you can hold while you click and drag to restore the behavior you
may expect from the command line. The exact modifier key depends on the terminal and platform you are running on.
- **iTerm** Hold the OPTION key.
- **Gnome Terminal** Hold the SHIFT key.
- **Windows Terminal** Hold the SHIFT key.
Refer to the documentation for your terminal emulator, if it is not listed above.