copy not working
See original GitHub issueUbuntu 18.04 xsel 1.2.0
First of all I don’t know if is a xsel
or cht.sh
client problem.
Shell mode:
$ cht.sh --shell
cht.sh> cd python
cht.sh/python> append file
# python - How do you append to a file?
with open("test.txt", "a") as myfile:
myfile.write("appended text")
cht.sh/python> copy
copy: 4 lines copied to the selection
The output says it was copied. I try to paste (ctrl + v) it somewhere and I realized it was not on the clipboard.
But if I run the xsel
command it shows the output:
$ xsel
# python - How do you append to a file?
with open("test.txt", "a") as myfile:
myfile.write("appended text")
I can reproduce something like:
$ cat /etc/hosts | xsel --clipboard
And this works with either ctrl + v
or the xsel
command.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[SOLVED] Copy and Paste Not Working on Windows 10
How to fix copy and paste not working? · Close any video players · Close any open applications · Clear your clipboard ·...
Read more >How to Fix It When Copy and Paste Isn't Working in Windows ...
One of the most common causes of copy and paste issues on Windows is when an installed application is interfering with the clipboard....
Read more >How to Fix Copy and Paste Not Working in Windows
How to Fix Copy and Paste Not Working in Windows · 1. Update Windows · 2. Temporarily Disable Antivirus Software · 3. Run...
Read more >7 Methods to Fix Copy and Paste Function Not Working
7 Solutions to Fix Copy and Paste Not Working Windows 10 ; Solution 1: Close Open Applications ; Solution 2: Check Your System...
Read more >How to Fix When Copy-Paste Isn't Working - Alphr
Copy-Paste Not Working in Windows 10 · Check if Windows Is Updated · Keyboard Troubleshooting · Check for Viruses · Close Open Applications...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you say that you can see it with
xsel
but you can’t paste it, it means that it is copied to the selection buffer of X Window (PRIMARY), but not to the clipboard (CLIPBOARD).It depends on that where you try to paste it in. For example, if you paste it into xterm or vim running in xterm it is PRIMARY what used here, and if you are trying to paste it indo Google Docs running inside Firefox it is CLIPBOARD what is used here.
How could check it:
edit cht.sh and change every occurrence of
xsel -i
withxsel -bi
.After that it should work as you expect.
The main question of course still remains, what should be used by default
PRIMARY
orCLIPBOARD
or both? We currently usePRIMARY
as it is the main selection buffer in X Window.@juliuswz,
@juliuswz Agree. I think we should use
xsel -bi
in the client. Will be fixed soon.