Buffer incoming terminal.write() only after onSelectionChange reports a non-empty selection — NOT during mousedown. This lets xterm.js render the selection highlight normally, then prevents incoming data from clearing it. The buffer flushes when the user clears the selection (click/keypress) or after a 5s safety timeout. Previous attempts broke because they buffered during mousedown which prevented xterm.js from rendering the highlight in the first place. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| e2e | ||
| screenshots | ||
| server | ||
| src | ||
| .env.local.example | ||
| .gitignore | ||
| next-env.d.ts | ||
| next.config.js | ||
| package.json | ||
| postcss.config.mjs | ||
| tsconfig.json | ||
| vitest.config.ts | ||