(text: string)
| 21 | } |
| 22 | |
| 23 | function writeOsc52(text: string) { |
| 24 | if (!process.stdout.isTTY) return |
| 25 | const sequence = `\x1b]52;c;${Buffer.from(text).toString("base64")}\x07` |
| 26 | process.stdout.write(process.env.TMUX || process.env.STY ? `\x1bPtmux;\x1b${sequence}\x1b\\` : sequence) |
| 27 | } |
| 28 | |
| 29 | export async function read() { |
| 30 | if (platform() === "darwin") { |