Skip to content

fix(terminal): use Ctrl+Shift+C/V for copy/paste on Linux#34

Merged
penso merged 1 commit intopenso:mainfrom
joshuadavidthomas:fix-terminal-copy-paste
Mar 10, 2026
Merged

fix(terminal): use Ctrl+Shift+C/V for copy/paste on Linux#34
penso merged 1 commit intopenso:mainfrom
joshuadavidthomas:fix-terminal-copy-paste

Conversation

@joshuadavidthomas
Copy link
Copy Markdown
Contributor

On macOS, Cmd+C/V is used for copy/paste in terminals. On Linux, the standard convention is Ctrl+Shift+C/V.

Previously, Ctrl+Shift+C was sent as SIGINT (\x03) to the terminal, making it impossible to copy selected text on Linux.

Changes:

  • platform_command_for_keystroke() now checks Ctrl+Shift+C/V on Linux
  • Ctrl+Shift+C/V are no longer sent as terminal input on Linux
  • Added platform-specific tests

Closes #29

On macOS, Cmd+C/V is used for copy/paste in terminals.
On Linux, the standard convention is Ctrl+Shift+C/V.

Previously, Ctrl+Shift+C was sent as SIGINT (\x03) to the terminal,
making it impossible to copy selected text on Linux.

Changes:
- platform_command_for_keystroke() now checks Ctrl+Shift+C/V on Linux
- Ctrl+Shift+C/V are no longer sent as terminal input on Linux
- Added platform-specific tests
@penso penso merged commit 649ed20 into penso:main Mar 10, 2026
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.

Can't copy/paste with Ctrl+Shift+C/V in embedded terminal on Linux

2 participants