Why this is not purging the x selection/clipboard?
xsel -dp; xsel -db; xsel -ds; # This doesn't work
xsel -cp; xsel -cb; xsel -cs; # This doesn't work either
echo | xsel -ip # works, but there's a newline in the selection
printf '' | xsel -ip # This has no effect the selection
1) I think it has to do with the fact that -d is ambiguous between being
the usual XToolkit option for DISPLAY and being a tool-specific option for delete.
2) --delete works
1) I think it has to do with the fact that -d is ambiguous between being
the usual XToolkit option for DISPLAY and being a tool-specific option for >> delete.
2) --delete works
You are right that -d is a bad option name for an X program.
In any case, I am testing --delete and it doesn't do anything at all.
xsel --delete --primary
xsel --delete --clipboard
It works for me:
$ xsel -ip <<< "THis is a test"
$ xsel -p
THis is a test
$ xsel -p --delete
$ xsel -p
$
1) I think it has to do with the fact that -d is ambiguous between being
the usual XToolkit option for DISPLAY and being a tool-specific option for >> delete.
2) --delete works
You are right that -d is a bad option name for an X program.
In any case, I am testing --delete and it doesn't do anything at all.
xsel --delete --primary
xsel --delete --clipboard
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 384 |
Nodes: | 16 (2 / 14) |
Uptime: | 62:54:08 |
Calls: | 8,174 |
Calls today: | 6 |
Files: | 13,113 |
Messages: | 5,864,696 |