|
|
@@ -200,11 +200,6 @@ function App() {
|
|
|
renderer.console.onCopySelection = async (text: string) => {
|
|
|
if (!text || text.length === 0) return
|
|
|
|
|
|
- const base64 = Buffer.from(text).toString("base64")
|
|
|
- const osc52 = `\x1b]52;c;${base64}\x07`
|
|
|
- const finalOsc52 = process.env["TMUX"] ? `\x1bPtmux;\x1b${osc52}\x1b\\` : osc52
|
|
|
- // @ts-expect-error writeOut is not in type definitions
|
|
|
- renderer.writeOut(finalOsc52)
|
|
|
await Clipboard.copy(text)
|
|
|
.then(() => toast.show({ message: "Copied to clipboard", variant: "info" }))
|
|
|
.catch(toast.error)
|
|
|
@@ -627,11 +622,6 @@ function App() {
|
|
|
}
|
|
|
const text = renderer.getSelection()?.getSelectedText()
|
|
|
if (text && text.length > 0) {
|
|
|
- const base64 = Buffer.from(text).toString("base64")
|
|
|
- const osc52 = `\x1b]52;c;${base64}\x07`
|
|
|
- const finalOsc52 = process.env["TMUX"] ? `\x1bPtmux;\x1b${osc52}\x1b\\` : osc52
|
|
|
- /* @ts-expect-error */
|
|
|
- renderer.writeOut(finalOsc52)
|
|
|
await Clipboard.copy(text)
|
|
|
.then(() => toast.show({ message: "Copied to clipboard", variant: "info" }))
|
|
|
.catch(toast.error)
|