selection

command
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL