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

Method print

packages/editor/src/runtime/wasm-tty/wasm-tty.ts:75–78  ·  view source on GitHub ↗

* Prints a message and properly handles new-lines

(message: string)

Source from the content-addressed store, hash-verified

73 * Prints a message and properly handles new-lines
74 */
75 print(message: string) {
76 const normInput = message.replace(/\n/g, '\r\n')
77 this.xterm.write(normInput)
78 }
79
80 /**
81 * Erase a character at cursor location

Callers 5

generateCodeStringMethod · 0.80
generateCodeStringMethod · 0.80
generateCodeStringMethod · 0.80
generateHtmlElementMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected