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: | 349 |
Nodes: | 16 (0 / 16) |
Uptime: | 142:48:15 |
Calls: | 7,613 |
Calls today: | 1 |
Files: | 12,790 |
Messages: | 5,684,507 |