MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / put

Function put

docs/components/Playground.jsx:25–25  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

23 let line = ''
24 let col = 0
25 const put = (c) => { line = line.slice(0, col) + c + line.slice(col + 1); col += 1 }
26 for (const ch of text) {
27 if (ch === '\n') { lines.push(line); line = ''; col = 0 }
28 else if (ch === '\r') { col = 0 }

Callers 1

applyTerminalControlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected