tui-panel-select 0.1.6

Panel-scoped mouse text selection and clipboard copy for ratatui apps
Documentation
[package]
name = "tui-panel-select"
version = "0.1.6"
description = "Panel-scoped mouse text selection and clipboard copy for ratatui apps"
keywords = ["ratatui", "tui", "selection", "clipboard", "terminal"]
categories = ["command-line-interface"]
readme = "README.md"
edition.workspace = true
license.workspace = true
repository.workspace = true
authors.workspace = true

[dependencies]
ratatui.workspace = true
base64.workspace = true
ansi-to-tui = { workspace = true, optional = true }

# Used in `clipboard.rs` to call `setsid()` in the forked clipboard-helper
# child, so it runs in its own session and is detached from our controlling
# terminal rather than dying with our process group.
[target.'cfg(unix)'.dependencies]
libc = "0.2"

[features]
default = ["terminal-guard", "scrollbar"]
# Opt-in (default-on) panic-safe terminal mouse-capture guard. Disable it if
# you only want the pure selection/wrapping logic and would rather not pull in
# the process-global panic-hook and terminal side effects.
terminal-guard = []
# Opt-in (default-on) vertical scrollbar helpers: a panel-agnostic
# `scroll_for_track_row` (track click/drag -> scroll offset) and
# `render_scrollbar` (draw the thumb), plus `MultiSelectPanel` convenience
# wrappers. Disable it if you draw your own scroll indicator.
scrollbar = []
# Opt-in ANSI-coloured content: `SelectablePanel::set_ansi_content` parses
# ANSI escape sequences (via `ansi-to-tui`) so rendered rows keep their colour
# while selection/copy continue to operate on the plain, stripped text.
ansi = ["dep:ansi-to-tui"]