Documentation
¶
Overview ¶
Command selection shows tuikit.Selection: a mouse drag over a rendered frame, painted in place and copied out as plain text.
go run ./examples/selection
Drag across the text with the left button held. The highlight follows the drag, and releasing copies the range to the clipboard — the footer echoes what went there. Press q to quit.
The point is that the app draws the selection itself. A terminal program that enables mouse tracking takes drag events away from the terminal, so the terminal's own selection stops working; without something like this, there is no way to copy anything off the screen.
Click to show internal directories.
Click to hide internal directories.