MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / cloneTerminalCaps

Function cloneTerminalCaps

packages/node/src/repro/recorder.ts:111–128  ·  view source on GitHub ↗
(caps: TerminalCaps | null)

Source from the content-addressed store, hash-verified

109}
110
111function cloneTerminalCaps(caps: TerminalCaps | null): TerminalCaps | null {
112 if (caps === null) return null;
113 return {
114 colorMode: caps.colorMode,
115 supportsMouse: caps.supportsMouse,
116 supportsBracketedPaste: caps.supportsBracketedPaste,
117 supportsFocusEvents: caps.supportsFocusEvents,
118 supportsOsc52: caps.supportsOsc52,
119 supportsSyncUpdate: caps.supportsSyncUpdate,
120 supportsScrollRegion: caps.supportsScrollRegion,
121 supportsCursorShape: caps.supportsCursorShape,
122 supportsOutputWaitWritable: caps.supportsOutputWaitWritable,
123 supportsUnderlineStyles: caps.supportsUnderlineStyles,
124 supportsColoredUnderlines: caps.supportsColoredUnderlines,
125 supportsHyperlinks: caps.supportsHyperlinks,
126 sgrAttrsSupported: caps.sgrAttrsSupported,
127 };
128}
129
130function buildBackendCapsSnapshot(
131 backend: RuntimeBackend,

Callers 2

createReproRecorderFunction · 0.85
resolveTerminalCapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected