--- rxvt-unicode/src/perl/tabbed 2012/01/09 17:49:00 1.29 +++ rxvt-unicode/src/perl/tabbed 2012/09/04 22:41:12 1.35 @@ -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) = @_; @@ -79,14 +115,12 @@ $tab->XMoveResizeWindow ( $tab->parent, 0, $self->{tabheight} + 1, - $self->width, - $self->height - $self->{tabheight} + 2 * $tab->int_bwidth + $self->width, $self->height - $self->{tabheight} ); $tab->XMoveResizeWindow ( $tab->parent, 0, $self->{tabheight}, - $self->width, - $self->height - $self->{tabheight} + 2 * $tab->int_bwidth + $self->width, $self->height - $self->{tabheight} ); }