On Tue, Dec 02, 2008 at 06:13:52PM -0500, Jim Karsten <[EMAIL PROTECTED]> wrote:

> Is there a way to change the selection.screen from the primary to
> secondary screen using the perl api commands or an X event? I'm working
> on a perl plugin to allow me to select text within a terminal window
> with a keyboard. I don't like using a mouse. I have a simple proof of
> concept working, at least within the primary screen, but if I open
> an application, vim or screen, for example, the selection commands
> (selection_beg, selection_end, etc) act on the primary screen. The only
> way I've been been able to change the selection.screen to a secondary
> screen is with a mouseclick. Once clicked the selection commands work as
> expected.

first of all - could you format your e-mails a little bit? It is hard to
read mails composed of single long lines. Shifting the burden of making
your mail readable to the recipient isn't that good either, if you want to
be heard.

>             $self->selection_beg( $row_beg+1, 0);
>             $self->selection_end( $row_beg+2, 0);
>             $self->selection_make(urxvt::CurrentTime);

It seems to me that making the screen accessible is not the worst thing
to do indeed, but maybe it should just be set to the current screen
on selection_beg time (or on selection_make), so your code would work
automatically.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [EMAIL PROTECTED]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to