MCPcopy Create free account
hub / github.com/Noumena-Network/code / render

Method render

src/ink/components/App.tsx:159–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isRawModeSupportedMethod · 0.95

Tested by

no test coverage detected