MCPcopy Create free account
hub / github.com/SplootCode/splootcode / read

Method read

packages/editor/src/runtime/wasm-tty/wasm-tty.ts:26–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }
25
26 async read() {
27 this.input = []
28 this.inputSplit = []
29
30 const promise = new Promise((resolve) => {
31 this.xterm.write('\x00', () => resolve(true))
32 }).then(() => {
33 const buf = this.xterm.buffer.active
34 this.inputStartCursorX = buf.cursorX
35 this.inputStartCursorY = buf.cursorY + buf.baseY
36 this.inputCursorX = this.inputStartCursorX
37 this.inputCursorY = 0
38 this.xterm.focus()
39 })
40
41 return promise
42 }
43
44 reflowInput() {
45 const cols = this.xterm.cols

Callers 15

PythonFrameClass · 0.80
testExpressionParsingMethod · 0.80
testBreakMethod · 0.80
testDictMethod · 0.80
testMemberExpressionMethod · 0.80
testTuplesMethod · 0.80
testSetsMethod · 0.80
testReturnBareMethod · 0.80

Calls

no outgoing calls

Tested by 15

testExpressionParsingMethod · 0.64
testBreakMethod · 0.64
testDictMethod · 0.64
testMemberExpressionMethod · 0.64
testTuplesMethod · 0.64
testSetsMethod · 0.64
testReturnBareMethod · 0.64
testReturnWithValueMethod · 0.64