using perl extenstions from scripts

Michael Traxler M.Traxler at gsi.de
Thu Jan 9 01:33:55 CET 2014


Hello,

>> note the different name of the function (on_osc_seq_perl is never called!).
> on_osc_seq_perl is definitely being called, otherwise it couldn't have
> been forwarded to your tab_osc_seq_perl from urxvt::ext::tabbedex::tab.

Here I can only report what I experience. If I put in tabbedex

sub on_osc_seq_perl {
   print "reached on_osc_seq_perl\n";
}

I never get an output. If I use tab_osc_seq_perl it works!
In a new extension (from scratch, without the other stuff in tabbedex) this
function on_osc_seq_perl works!

> That strongly depends on the exqct problem you are trying to solve. If the
> tab is guaranteed to run a shell at the moment that is expecting fresh
> comamnd input this you can just feed it "mycommand\r" via tt_write for
> example.
>
> The cleaner way would be to start a new tab running the command you want to
> run.

This is exactly the way I want to do it, but I don't know how.
How can I tell the method
$self->new_tab;
to directly start a certain command (after calling the standard shell of course).?

Thanks,


Michael





More information about the rxvt-unicode mailing list