[GH-ISSUE #491] Troubles accessing system clipboard #127

Open
opened 2026-03-02 23:44:45 +03:00 by kerem · 2 comments
Owner

Originally created by @PabloZaiden on GitHub (Jan 7, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/491

I've been building a small TUI with opentui, and probably the only issue that keeps coming back to me is the (lack of) handling of the system clipboard.

I couldn't find a proper way to use expected terminal functionality in modern OSs to select test with the mouse and copy it to the clipboard, or instead of typing something in a textbox, paste it from the system clipboard.

For now, I've implemented custom keyboard shortcuts to send stuff to the clipboard... but I don't love the solution.

What am I missing?

Originally created by @PabloZaiden on GitHub (Jan 7, 2026). Original GitHub issue: https://github.com/anomalyco/opentui/issues/491 I've been building a small TUI with opentui, and probably the only issue that keeps coming back to me is the (lack of) handling of the system clipboard. I couldn't find a proper way to use expected terminal functionality in modern OSs to select test with the mouse and copy it to the clipboard, or instead of typing something in a textbox, paste it from the system clipboard. For now, I've implemented custom keyboard shortcuts to send stuff to the clipboard... but I don't love the solution. What am I missing?
Author
Owner

@faebeee commented on GitHub (Jan 8, 2026):

Having the same issue. Would be great to be able to paste into <input component

<!-- gh-comment-id:3723732627 --> @faebeee commented on GitHub (Jan 8, 2026): Having the same issue. Would be great to be able to paste into `<input` component
Author
Owner

@PabloZaiden commented on GitHub (Jan 8, 2026):

And to easily copy content, especially if it's highlighted with the mouse

<!-- gh-comment-id:3725651448 --> @PabloZaiden commented on GitHub (Jan 8, 2026): And to easily copy content, especially if it's highlighted with the mouse
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#127
No description provided.