Skip to main content

Module link_registry

Module link_registry 

Source
Expand description

OSC 8 hyperlink registry.

The LinkRegistry maps link IDs to URLs. This allows cells to store compact 24-bit link IDs instead of full URL strings.

§Usage

use ftui_render::link_registry::LinkRegistry;

let mut registry = LinkRegistry::new();
let id = registry.register("https://example.com");
assert_eq!(registry.get(id), Some("https://example.com"));

Structs§

LinkRegistry
Registry for OSC 8 hyperlink URLs.