MCPcopy Create free account
hub / github.com/anus-dev/ANUS / startPaste

Method startPaste

packages/cli/src/ui/hooks/useKeypress.test.ts:83–90  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

81
82 // Helper to simulate the start of a paste, without the end.
83 startPaste(text: string) {
84 if (this.isLegacy) {
85 this.emit('data', Buffer.from('\x1B[200~' + text));
86 } else {
87 this.emit('keypress', null, { name: 'paste-start' });
88 this.emit('keypress', null, { sequence: text });
89 }
90 }
91
92 // Helper to simulate a single keypress event.
93 pressKey(key: Partial<Key>) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected