Skip to content

feat: name and test the osc 52 copy path - #68

Merged
backnotprop merged 1 commit into
mainfrom
feat/osc52-copy
Sep 9, 2026
Merged

feat: name and test the osc 52 copy path#68
backnotprop merged 1 commit into
mainfrom
feat/osc52-copy

Conversation

@backnotprop

Copy link
Copy Markdown
Contributor

The TUI's clipboard delivery already wrote OSC 52 and nothing else, which is what lets a copy reach a remote client's clipboard through Herdr 0.9.0. This extracts the sequence builder, documents why the path exists, and pins it with tests: exact bytes for ASCII, empty and multi-byte text, oversized text emitted whole, and a structural test that headless modes (--print, --export, --snapshot) never emit. README gains one sentence. No behavior change.

refs plannotator/herdr-annotate#40

The clipboard delivery already emitted OSC 52 and no native clipboard
write, so on Herdr 0.9.0 a copy already reaches the terminal the person
is viewing from rather than the server the app runs on. Give the
sequence its own function, say why in one place, and pin the bytes:
plain text, empty, multi-byte UTF-8, and an oversized payload that is
emitted whole instead of truncated.

Also pin that headless runs never emit, so --print, --export and
--snapshot cannot start writing escape sequences into their output.

refs #40
@backnotprop
backnotprop added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit c931e2f Sep 9, 2026
2 checks passed
@backnotprop
backnotprop deleted the feat/osc52-copy branch September 9, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant