Hello,

maybe there is a misunderstanding here....

The way these new functions in tabbedex are supposed to be used is the
following:
- you just add the tabbedex source to ~/.urxvt/ext/tabbedex
- add as usual "tabbedex" to the .Xdefaults via:
  urxvt*perl-ext-common: ....,tabbedex

Then you can just normally start urxvt.
If you want some automatism there is a mechanism built-in in urxvt which has
as the API escape-sequences, as all other commands (font changes etc.).
For these OSC = operating system commands the character sequence is
"ESC ] 777 ; string ST" as explained in the manual urxvtperl(3).

So, to open a new tab in urxvt you can now write in any shell-script:
printf "\033]777;tabbedex;new_tab\007"

As shown here (https://github.com/michaeltraxler/urxvt-perls at the bottom) I
invented some more calls which makes the "remote control" and scripting of a
tab in urxvt possible.

The tabbedex-code you only have to touch if the functions available
(new_tab, make_current, set_tab_name, interactive_command) are not sufficient
for you.
Try the example script and the commands with arguments should (I hope) be self
explaining.

Michael


On Freitag 2015-01-02 05:39, kario tay wrote:

Date: Fri, 2 Jan 2015 05:39:03
From: kario tay <[email protected]>
To: Michael Traxler <[email protected]>
Cc: [email protected]
Subject: Re: urxvt, tabbedex, tmux: Opening a new tab and sending a command

Created Perl extension "osc_test" to experiment
with the new version "tabbedex":

----

#! perl

sub on_child_start
{
        my ($self, @argv) = @_;
        my $tabbedex = $self->{tabbedex};

        my $tab_command = "new_tab";
        my $osc = "emacs";
        $tabbedex->tab_osc_seq_perl($self, $tab_command, $osc);
}

----

Command:

urxvt -pe osc_test

----

Outcomes:

1. A new urxvt window opens.

2. On the commandline of the originating window
(the window into which the command was entered),
an error message:

urxvt: Can't call method "tab_osc_seq_perl" on an undefined value at 
/path/to/urvxt/extensions/osc_test line 11.

-----

P.S. An idle thought -- what if urxvt was written in LISP... now that would be
truly wizardlike (cue the inevitable interjections about Python and Haskell, of 
course).


-----Original Message-----
From: [email protected]
Sent: Sat, 27 Dec 2014 04:41:46 +0100 (CET)
To: [email protected]
Subject: Re: urxvt, tabbedex, tmux: Opening a new tab and sending a
command

Hi,

I can contribute to that:

You can find my extended tabbedex extention here:
https://github.com/michaeltraxler/urxvt-perls/blob/master/tabbedex

where the help with an example script can be found here:
https://github.com/michaeltraxler/urxvt-perls

____________________________________________________________
Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.
Check it out at http://mysecurelogon.com/manager




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

Reply via email to