MCPcopy Create free account
hub / github.com/anomalyco/opencode / pushSize

Function pushSize

packages/app/src/components/terminal.tsx:221–230  ·  view source on GitHub ↗
(cols: number, rows: number)

Source from the content-addressed store, hash-verified

219 }
220
221 const pushSize = (cols: number, rows: number) => {
222 return client.pty
223 .update({
224 ptyID: id,
225 size: { cols, rows },
226 })
227 .catch((err) => {
228 debugTerminal("failed to sync terminal size", err)
229 })
230 }
231
232 const getTerminalColors = (): TerminalColors => {
233 const mode = theme.mode() === "dark" ? "dark" : "light"

Callers 1

scheduleSizeFunction · 0.85

Calls 2

debugTerminalFunction · 0.85
updateMethod · 0.65

Tested by

no test coverage detected