()
| 152 | return this.props.stdin.isTTY; |
| 153 | } |
| 154 | override render() { |
| 155 | return <TerminalSizeContext.Provider value={{ |
| 156 | columns: this.props.terminalColumns, |
| 157 | rows: this.props.terminalRows |
| 158 | }}> |
| 159 | <AppContext.Provider value={{ |
| 160 | exit: this.handleExit |
| 161 | }}> |
| 162 | <StdinContext.Provider value={{ |
| 163 | stdin: this.props.stdin, |
| 164 | setRawMode: this.handleSetRawMode, |
| 165 | isRawModeSupported: this.isRawModeSupported(), |
| 166 | internal_exitOnCtrlC: this.props.exitOnCtrlC, |
| 167 | internal_eventEmitter: this.internal_eventEmitter, |
| 168 | internal_querier: this.querier |
| 169 | }}> |
| 170 | <TerminalFocusProvider> |
| 171 | <ClockProvider> |
| 172 | <CursorDeclarationContext.Provider value={this.props.onCursorDeclaration ?? (() => {})}> |
| 173 | {this.state.error ? <ErrorOverview error={this.state.error as Error} /> : this.props.children} |
| 174 | </CursorDeclarationContext.Provider> |
| 175 | </ClockProvider> |
| 176 | </TerminalFocusProvider> |
| 177 | </StdinContext.Provider> |
| 178 | </AppContext.Provider> |
| 179 | </TerminalSizeContext.Provider>; |
| 180 | } |
| 181 | override componentDidMount() { |
| 182 | // In accessibility mode, keep the native cursor visible for screen magnifiers and other tools |
| 183 | if (this.props.stdout.isTTY && !isEnvTruthy(process.env.CLAUDE_CODE_ACCESSIBILITY)) { |
nothing calls this directly
no test coverage detected