--- rxvt-unicode/src/perl/tabbed 2012/01/06 14:06:52 1.28 +++ rxvt-unicode/src/perl/tabbed 2013/05/25 23:14:08 1.36 @@ -1,5 +1,41 @@ #! perl +#:META:X_RESOURCE:tabbar-fg:colour:tab bar foreground colour +#:META:X_RESOURCE:tabbar-bg:colour:tab bar background colour +#:META:X_RESOURCE:tab-fg:colour:tab foreground colour +#:META:X_RESOURCE:tab-bg:colour:tab background colour + +=head1 NAME + +tabbed - tabbed interface to urxvt + +=head1 DESCRIPTION + +This transforms the terminal into a tabbar with additional terminals, that +is, it implements what is commonly referred to as "tabbed terminal". The topmost line +displays a "[NEW]" button, which, when clicked, will add a new tab, followed by one +button per tab. + +Clicking a button will activate that tab. Pressing B and +B will switch to the tab left or right of the current one, +while B creates a new tab. Pressing B and +B will renumber the current tab by moving it to the left or +to the right. + +The tabbar itself can be configured similarly to a normal terminal, but +with a resource class of C. In addition, it supports the +following four resources (shown with defaults): + + URxvt.tabbed.tabbar-fg: + URxvt.tabbed.tabbar-bg: + URxvt.tabbed.tab-fg: + URxvt.tabbed.tab-bg: + +See I in the @@RXVT_NAME@@(1) manpage for valid +indices. + +=cut + sub refresh { my ($self) = @_; @@ -366,7 +402,7 @@ # simply proxies all interesting calls back to the tabbed class. { - for my $hook qw(start destroy key_press property_notify) { + for my $hook (qw(start destroy key_press property_notify)) { eval qq{ sub on_$hook { my \$parent = \$_[0]{term}{parent}