Johannes Agricola 7da7e31596
Add copying to clipboard using OSC52 (#974)
Many terminal emulators support copying text to clipboard using
ANSI OSC Ps; PT ST with Ps = 5 2, see
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands

This enables copying even through SSH and terminal multiplexers.

Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
2025-04-05 16:38:59 +02:00
..
2025-02-04 21:37:16 -08:00
2024-06-16 14:44:34 +02:00
2023-08-05 15:34:27 +02:00
2022-06-06 18:10:06 +02:00

Lines of Code MIT Join us on Discord

Crossterm Examples

The examples are compatible with the latest release.

Structure

├── examples
│   └── interactive-test
│   └── event-*
│   └── stderr
File Name Description Topics
examples/interactive-test interactive, walk through, demo cursor, style, event
event-* event reading demos (async) event reading
stderr crossterm over stderr demo raw mode, alternate screen, custom output
is_tty Is this instance a tty ? tty

Run examples

$ cargo run --example [file name]

To run the interactive-demo go into the folder examples/interactive-demo and run cargo run.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.