MCPcopy Create free account
hub / github.com/Marus/cortex-debug / onOpen

Method onOpen

src/frontend/pty.ts:106–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 private onOpen() {
107 this.isReady = true;
108 if (this.pendingWrites.length) {
109 for (const data of this.pendingWrites) {
110 this.write(data);
111 }
112 this.pendingWrites = [];
113 } else {
114 this.doPrompt();
115 }
116 }
117
118 private onClose() {
119 this.emit('close');

Callers 1

PtyTerminalClass · 0.95

Calls 2

writeMethod · 0.95
doPromptMethod · 0.95

Tested by

no test coverage detected