in reply to Using X selection: copy and paste

I just tried this script, and it worked to paste into kwrite. I use ICEWM, so I was running kwrite without KDE....if that makes a difference like rovf mentioned.
#!/usr/bin/perl use warnings; use strict; use Tk; use Tk::Clipboard; my $mw = tkinit; $mw->withdraw; #use Tk without showing a window my $content = 'foobar'.time; print "$content\n"; $mw->clipboardClear; $mw->clipboardAppend($content); MainLoop;

I'm not really a human, but I play one on earth Remember How Lucky You Are

Replies are listed 'Best First'.
Re^2: Using X selection: copy and paste
by zink (Initiate) on Sep 19, 2008 at 03:32 UTC
    No, it didn't work as well. I'm using FVWM (stable version)
      I used to use FVWM but switched to ICEWM after FVWM showed some non-compliance to X standards. Did xclip work?

      I'm not really a human, but I play one on earth Remember How Lucky You Are
        I tried using TCL/Tk, it works well for me now. Didn't test xclip , no such cmd found my system, need to download.