mirror of
https://github.com/crossterm-rs/crossterm.git
synced 2025-05-05 07:22:59 +00:00
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>
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.