question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to paste to terminal

See original GitHub issue

OS: Ubuntu 19.10, x86_64, code-server is running in Docker container Browser: Firefox 74 Version: latest from Docker, pulled today

  1. I’ve got a command I want to execute in clipboard 2a. I press Ctrl+Shift+V, just as in VS Code terminal, it doesn’t work 2b. I try right-clicking the terminal, I get this: image As you can see, no Paste option 2c. For last try I pressed Ctrl+V, and I got ^V, as usual.
  2. In none of these cases command is pasted.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
code-ashercommented, Mar 9, 2020

Yeah, it’s a bit of a mess on Firefox.

Firefox doesn’t support the clipboard API so it’s not possible to do anything but a native paste (which is why there’s no right-click menu for pasting).

Unfortunately while Firefox will perform a native paste with Ctrl+v, that keybinding already has a different assignment in the terminal so it can’t be used.

Normally Ctrl+Shift+V would also perform a native paste but in Firefox that only works in contenteditable=true elements for some reason, and the terminal doesn’t use that (it probably should though).

Shift+Insert does usually perform a native paste in Firefox though so that might work for you.

0reactions
code-ashercommented, Mar 11, 2020

I’ll go ahead and close this in favor of #1106. I’ll edit it a little to reflect better the current situation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copy and paste doesn't work in the terminal - Ask Ubuntu
Mark the text, that you want to paste by pressing the left mouse button and move the mouse. · Press shift + ctrl...
Read more >
How to Enable Copy-Paste in the Windows Command Prompt
Go to “Options” and check “Use Ctrl+Shift+C/V as Copy/Paste” in “Edit Options.”.
Read more >
Unable to paste to terminal #1402 - coder/code-server - GitHub
I've got a command I want to execute in clipboard 2a. I press Ctrl+Shift+V, just as in VS Code terminal, it doesn't work...
Read more >
Unable to copy text in terminal window using shortcut key Ctrl ...
Open Developer PowerShell in Visual Studio. · Select some text. · Press Ctrl+Ins to copy. · Press Shift+Ins to paste. I expected that...
Read more >
Why doesn't copy and paste work in the terminal? - Quora
Copying and Pasting inside a terminal is different from that to in normal OS. You have to use Ctrl+Shift+C for copy and Ctrl+Shift+V...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found