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 use copy/paste in WSL bash.

See original GitHub issue

I am currently using Windows version 1903. After installing the Windows PowerShell v6+, the new PowerShell console window does not support Control-V paste after entering WSL(Linux Subsystem) bash. The original PowerShell console does support bash and hotkey copy/paste.

Steps to reproduce

  1. Installed Powershell using following command
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
  1. Type bash to enter Ubuntu in windows.
  2. Try to use hotkeys, such as Ctrl-V or Ctrl-P OR right-click in the window.

Expected behavior

Paste information copied.

Actual behavior

No response in the console. See attached photo for info.

https://drive.google.com/file/d/10NJyFhcM-XC4G5FQL4NjzkYeM91SM0sl/view

image

Environment data


See the photo link above. Note: Github’s markdown editor’s URL does not allow me to use the photo from google drive as a link. Please copy/paste to check to photo.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
daxian-dbwcommented, Oct 15, 2019

The question is that pwsh run in WSL but (1) Ctrl-C/P do not work, (2) right click doesn’t work.

@iSazonov The screenshots shows starting bash from pwsh, not running pwsh in WSL.

0reactions
iSazonovcommented, Oct 12, 2019

@daxian-dbw The question is that pwsh run in WSL but (1) Ctrl-C/P do not work, (2) right click doesn’t work.

@ralic Install latest PSReadline version (Beta5) and try Ctrl-C/P.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WSL terminal's keyboard paste is not working
You have enabled paste using Ctrl + Shift + V . This is perhaps why Ctrl + V is not working. Share.
Read more >
Copy and Paste arrives for Linux/WSL Consoles
With the new copy & paste option selected, you'll be able to copy and paste text using [CTRL] + [SHIFT] + [C|V] respectively....
Read more >
How to enable Ctrl+C and Ctrl+V in WSL?
To Copy: Ctrl + Shift + C · To Paste: Ctrl + Shift + V.
Read more >
How do I copy/paste in WSL terminal? · Issue #1482
In my Ubuntu terminal, however, ctrl+shift+v does not paste. It se... ... It seems the only way to copy/paste is to use right-click....
Read more >
Copy Paste in Bash on Ubuntu on Windows
In order to be able to copy from Terminal, Just use CTRL+M and this will enable you to select and copy selected Text....
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