Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions public/terminal-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,13 @@ function createTerminalEntry(session) {
scrollback: 10000,
convertEol: true,
allowProposedApi: true,
// A TUI that turns on full mouse tracking (CSI ?1003h) makes xterm forward every
// drag to the application, so normal text selection is dead. Terminal.app and
// iTerm2 let you hold Option to override that; xterm.js requires opting in.
// Without this, selecting (and therefore copying) inside such a session is
// impossible on macOS and Cmd+C silently leaves the previous clipboard contents
// in place. Windows/Linux get the same escape hatch via Shift, which needs no flag.
macOptionClickForcesSelection: true,
linkHandler: {
activate: (_event, uri) => {
if (uri.startsWith('file://') && typeof openFileInPanel === 'function') {
Expand Down