Skip to content

Fix #95 win32 copy/paste from/to system clipboard - #96

Open
clach04 wants to merge 1 commit into
0xku:mainfrom
clach04:win32-clipboard-copypaste
Open

clach04 wants to merge 1 commit into
0xku:mainfrom
clach04:win32-clipboard-copypaste

Conversation

@clach04

@clach04 clach04 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor
  • Read/write the Windows clipboard via the Win32 API (CF_UNICODETEXT), replacing clip.exe (unicode-unsafe)
  • Paste (ctrl+v, ctrl+shift+v, shift+insert) prefers the OS clipboard, falling back to Textual's internal buffer; image paste unchanged
  • Selection/copy mirrors to the OS clipboard alongside Textual's buffer
  • TODO notes: Linux clipboard reading unimplemented; mouse capture left on (right-click paste under CMD.exe does not work)
  • Document keyboard/clipboard behavior in README and welcome screen

- Read/write the Windows clipboard via the Win32 API (CF_UNICODETEXT),
  replacing clip.exe (unicode-unsafe)
- Paste (ctrl+v, ctrl+shift+v, shift+insert) prefers the OS clipboard,
  falling back to Textual's internal buffer; image paste unchanged
- Selection/copy mirrors to the OS clipboard alongside Textual's buffer
- TODO notes: Linux clipboard reading unimplemented; mouse capture left
  on (right-click paste under CMD.exe does not work)
- Document keyboard/clipboard behavior in README and welcome screen
@clach04

clach04 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

GHA failure appears to be due to GHA environment:

Run uv run python -m pyright .
/home/runner/work/kon/kon/src/kon/ui/clipboard.py
  /home/runner/work/kon/kon/src/kon/ui/clipboard.py:56:21 - error: "WinDLL" is not a known attribute of module "ctypes" (reportAttributeAccessIssue)
  /home/runner/work/kon/kon/src/kon/ui/clipboard.py:57:23 - error: "WinDLL" is not a known attribute of module "ctypes" (reportAttributeAccessIssue)
2 errors, 0 warnings, 0 informations
WARNING: there is a new pyright version available (v1.1.408 -> v1.1.411).
Please install the new version or set PYRIGHT_PYTHON_FORCE_VERSION to `latest`

Error: Process completed with exit code 1.

@0xku

0xku commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Thanks for all the PRs. Will review them tomorrow.

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.

2 participants