MCPcopy Create free account
hub / github.com/tiann/hapi / finalizeTerminal

Function finalizeTerminal

cli/src/modules/common/remote/RemoteLauncherBase.ts:105–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 }
104
105 protected finalizeTerminal(): void {
106 restoreTerminalState();
107 if (this.hasTTY) {
108 try {
109 process.stdin.pause();
110 } catch {
111 }
112 }
113 if (this.inkInstance) {
114 this.inkInstance.unmount();
115 }
116 this.messageBuffer.clear();
117 }
118
119 protected async start(handlers: RemoteLauncherTerminalHandlers): Promise<RemoteLauncherExitReason> {
120 this.setupTerminal(handlers);

Callers

nothing calls this directly

Calls 2

restoreTerminalStateFunction · 0.90
clearMethod · 0.80

Tested by

no test coverage detected