HeyPuter/terminal

Cannot copy and paste between windows in Windows 11

miracle777 opened this issue · 11 comments

I am on Windows 11 and use Microsoft Edge.
I cannot copy text in the Puter app and paste it into the Windows 11 app.
I am not good at English, so I tried to translate by copying the text in the Puter window and pasting it into the DeepL window, which works in Windows 11.
But I couldn't copy and paste.

And vice versa, I could not paste the text from the Windows 11 application into the Puter window.

Please let me know how to solve the problem.

Thank you for the bug report!
Where in Puter were you trying to paste the text into?

Thank you very much.
I have now copied the text from the Windows app to my Puter notepad.

The first thing I tried was to paste the text, into Terminal

The first thing I tried was to paste the text, into Terminal

Is this only happening for the Terminal app?

Sorry, I'm sorry, I'm not sure what to do.
I have only just started using it and have not tried it with more than one application.
In Notepad, I was able to paste.
In Terminal, I can't seem to paste.

I have the same issue, I can't paste text into the Terminal

Text could not be pasted from the Puter notepad to the terminal.
Not being able to paste text into the terminal is inconvenient, but I would like to enter it manually as an opportunity to learn the commands.

Ctrl + Shift + V will paste it. But I think it would be better if we had the same keyboard shortcuts as the host environment. Even I got confused right now.

Thank you very much.
I have now been able to paste it.
Thank you for your help.

The trouble with using Ctrl+V for paste is that this sequence also has special meaning for terminal emulators; it instructs the terminal to enter the next input literally, which is sometimes useful. For example if you want to input ETX (0x03) you would type Ctrl+V,Ctrl+C.

What we could do is reverse these - make Ctrl+Shift+V used for literal inputs and Ctrl+V used for paste.

Also I'm going to move this issue to the repository for the terminal app.

lucj commented

Hi, on MacOS I can copy from the host and paste into the NotePad application, but I cannot do the same in the Terminal app.

I'm seeing two issues:

  1. Neither Ctrl-V or Ctrl-Shift-V work for me on Firefox.
  2. "Paste" in the context menu also doesn't work. That's probably an xterm.js issue?

For 1, that's an issue with navigator.clipboard.readText() having patchy support in different browsers. Though if we reversed the shortcuts as @KernelDeimos suggested, we could probably get by that by just not consuming the key events when Ctrl-V is pressed, and letting the browser handle it normally. Though 2 suggests that might still not work.