MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getClipboardPath

Function getClipboardPath

src/ink/termio/osc.ts:64–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62export type ClipboardPath = 'native' | 'tmux-buffer' | 'osc52'
63
64export function getClipboardPath(): ClipboardPath {
65 const nativeAvailable =
66 process.platform === 'darwin' && !process.env['SSH_CONNECTION']
67 if (nativeAvailable) return 'native'
68 if (process.env['TMUX']) return 'tmux-buffer'
69 return 'osc52'
70}
71
72/**
73 * Wrap a payload in tmux's DCS passthrough: ESC P tmux ; <payload> ESC \

Callers 1

showCopiedToastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected