Which widgets allow cursor highlighting and copying? #1843
-
I've made a small app that generates data (flat text) in a I want to be able to use the mouse to highlight text and right-click for copy, or use CTRL+C to copy. Is highlighting and/or copying text from a Static() widget available? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Generally copying text from the application is something that is down to your terminal, and how that works can differ between terminals. Textual itself doesn't have a method of placing text in your operating system's clipboard. I've not tested it myself but I imagine it would be possible to add something like that to your application with a library such as pyperclip. |
Beta Was this translation helpful? Give feedback.
Generally copying text from the application is something that is down to your terminal, and how that works can differ between terminals. Textual itself doesn't have a method of placing text in your operating system's clipboard.
I've not tested it myself but I imagine it would be possible to add something like that to your application with a library such as pyperclip.