fix(terminal): add right click copy action

Replace the conflicting keyboard copy shortcut with an xterm-aware Copy action shown for selected output.
This commit is contained in:
2026-07-22 14:15:46 +02:00
parent 75b67f2a6f
commit b289edf5a9
3 changed files with 55 additions and 60 deletions
@@ -6,8 +6,9 @@ Users cannot reliably copy terminal output from the browser terminal. Browser co
## Required behavior
- Copying a selected terminal region with `Ctrl+Shift+C` copies text to the system clipboard without sending input to the terminal.
- `Ctrl+C` remains a terminal interrupt, including when output is selected.
- Right-clicking a selected terminal region presents an xterm-aware Copy action that writes the selection to the system clipboard.
- Browser native context menus remain available when no terminal output is selected.
- Terminal keyboard input, including `Ctrl+C`, remains unchanged.
- Copy requests expose the xterm selection as plain text.
- Pasting plain text is handled once and follows bracketed-paste mode when enabled.
- Normal terminal interrupts still work when there is no active selection.