https://github.com/mainrs/terminal-link-rs
A Rust library for creating clickable links inside of terminals
https://github.com/mainrs/terminal-link-rs
rust-library
Last synced: 16 days ago
JSON representation
A Rust library for creating clickable links inside of terminals
- Host: GitHub
- URL: https://github.com/mainrs/terminal-link-rs
- Owner: mainrs
- License: apache-2.0
- Created: 2021-03-11T23:57:56.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T00:09:56.000Z (over 1 year ago)
- Last Synced: 2025-05-07T12:11:40.457Z (16 days ago)
- Topics: rust-library
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license-apache
Awesome Lists containing this project
README
# terminal-link
> Create clickable links inside your terminal.
## Usage
```rust
use terminal_link::Link;fn main() {
let link = Link::new("DuckDuckGo", "https://duckduckgo.com");
println!("{}", link);
}
```## Supported terminals
As of now, the terminals listed in [this Gist](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) have support for clickable links.
## Shortcomings
The library does not do any runtime-checks to determine if a terminal actually supports clickable links. This will be implemented in a later release.
#### License
Licensed under either of Apache License, Version
2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.