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

Function isFullscreenEnvEnabled

src/utils/fullscreen.ts:112–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 * opt in).
111 */
112export function isFullscreenEnvEnabled(): boolean {
113 // Explicit user opt-out always wins.
114 if (isEnvDefinedFalsy(process.env.CLAUDE_CODE_NO_FLICKER)) return false
115 // Explicit opt-in overrides auto-detection (escape hatch).
116 if (isEnvTruthy(process.env.CLAUDE_CODE_NO_FLICKER)) return true
117 // Auto-disable under tmux -CC: alt-screen + mouse tracking corrupts
118 // terminal state on double-click and mouse wheel is dead.
119 if (isTmuxControlMode()) {
120 if (!loggedTmuxCcDisable) {
121 loggedTmuxCcDisable = true
122 logForDebugging(
123 'fullscreen disabled: tmux -CC (iTerm2 integration mode) detected · set CLAUDE_CODE_NO_FLICKER=1 to override',
124 )
125 }
126 return false
127 }
128 return process.env.USER_TYPE === 'ant'
129}
130
131/**
132 * Whether fullscreen mode should enable SGR mouse tracking (DEC 1000/1002/1006).

Callers 15

renderToolUseMessageFunction · 0.85
MessageImplFunction · 0.85
StructuredDiff.tsxFile · 0.85
StatusLineInnerFunction · 0.85
MessagesImplFunction · 0.85
FullscreenLayoutFunction · 0.85
_temp3Function · 0.85
CondensedLogoFunction · 0.85
ConfigFunction · 0.85
PromptInputFunction · 0.85

Calls 4

isEnvDefinedFalsyFunction · 0.85
isEnvTruthyFunction · 0.85
isTmuxControlModeFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected