In article <
[email protected]>,
Javier <
[email protected]d> wrote:
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
Update: I just had an instance where --delete didn't work for me (as well).
It does seem to be a little murky. The clipboard implementation in X is
kinda weird/primitive, although elegant in a certain way.
As you say in a later followup, it seems to be dependent on which
"xterm-like" terminal program you're running. I just had an instance
running in LXterminal where:
xsel --delete -b
didn't do anything. The contents of the -b clipboard stayed intact.
However, the following worked in this instance, and I *think* that it will always work:
xsel -ib < /dev/null
P.S. There is some functionality of xsel where it "backgrounds" itself.
That is, you do a "ps" listing and it shows "xsel" processes running in the background. The "man page" explains this, but it never made any sense to
me. In any case, you might try killing these processes; that may cause the clipboard contents to vanish. Worth a try...
--
"This ain't my first time at the rodeo"
is a line from the movie, Mommie Dearest, said by Joan Crawford at a board meeting.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)