Termui text can't be selected for copy-and-paste
- Dominant language
- Go
- Stars
- 13.6k
- Forks
- 819
- PR merge metrics
- No merged PRs in 30d
Description
What's the reason that text displayed in termui can't be selected with the mouse for copy-and-paste? The curses library supports it, tools like "top" allow the user to select text and copy it.

This seems to be related to https://github.com/gizak/termui/issues/67, which claims it only happens after a while, but I've found it happens right from the start, even with a simple hello world program on both Mac and Linux.
Would be great if you could add some hints on why this is, this would be a great thing to have for termui (and downstream projects like termdash), as almost all users expect this to work in a terminal UI.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with a simple hello world program on macOS or Linux, then read the related termui issue #67 and compare the behavior with curses and top. Trace how termui interacts with terminal mouse selection; done means identifying the cause and either restoring copy-and-paste selection or documenting the limitation and its workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100