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

Function termEnvForColorMode

packages/node/src/testing/ptyTargetConfig.ts:55–78  ·  view source on GitHub ↗
(colorMode: ScenarioCapabilityProfile["colorMode"])

Source from the content-addressed store, hash-verified

53}
54
55function termEnvForColorMode(colorMode: ScenarioCapabilityProfile["colorMode"]): EnvMap {
56 switch (colorMode) {
57 case "none":
58 return Object.freeze({
59 TERM: "dumb",
60 COLORTERM: undefined,
61 });
62 case "16":
63 return Object.freeze({
64 TERM: "xterm",
65 COLORTERM: undefined,
66 });
67 case "256":
68 return Object.freeze({
69 TERM: "xterm-256color",
70 COLORTERM: undefined,
71 });
72 case "truecolor":
73 return Object.freeze({
74 TERM: "xterm-256color",
75 COLORTERM: "truecolor",
76 });
77 }
78}
79
80function nativeConfigForCapabilities(
81 profile: ScenarioCapabilityProfile,

Callers 1

buildPtyTargetEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected