MCPcopy Index your code
hub / github.com/coder/coder / encodeTerminalPayload

Function encodeTerminalPayload

site/src/modules/terminal/WorkspaceTerminal.tsx:67–69  ·  view source on GitHub ↗
(payload: Record<string, number | string>)

Source from the content-addressed store, hash-verified

65const ESCAPED_CARRIAGE_RETURN = "\x1b\r";
66
67const encodeTerminalPayload = (payload: Record<string, number | string>) => {
68 return new TextEncoder().encode(JSON.stringify(payload));
69};
70
71export const WorkspaceTerminal = ({
72 ref,

Callers 2

WorkspaceTerminalFunction · 0.85
scheduleTerminalResizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected