… | |
… | |
5 | #:META:X_RESOURCE:tab-fg:colour:tab foreground colour |
5 | #:META:X_RESOURCE:tab-fg:colour:tab foreground colour |
6 | #:META:X_RESOURCE:tab-bg:colour:tab background colour |
6 | #:META:X_RESOURCE:tab-bg:colour:tab background colour |
7 | |
7 | |
8 | =head1 NAME |
8 | =head1 NAME |
9 | |
9 | |
10 | tabbed - tabbed interface to urxvt |
10 | tabbed - tabbed interface to urxvt |
11 | |
11 | |
12 | =head1 DESCRIPTION |
12 | =head1 DESCRIPTION |
13 | |
13 | |
14 | This transforms the terminal into a tabbar with additional terminals, that |
14 | This transforms the terminal into a tabbar with additional terminals, that |
15 | is, it implements what is commonly referred to as "tabbed terminal". The topmost line |
15 | is, it implements what is commonly referred to as "tabbed terminal". The topmost line |
16 | displays a "[NEW]" button, which, when clicked, will add a new tab, followed by one |
16 | displays a "[NEW]" button, which, when clicked, will add a new tab, followed by one |
17 | button per tab. |
17 | button per tab. |
18 | |
18 | |
19 | Clicking a button will activate that tab. Pressing B<Shift-Left> and |
19 | Clicking a button will activate that tab. Pressing B<Shift-Left> and |
20 | B<Shift-Right> will switch to the tab left or right of the current one, |
20 | B<Shift-Right> will switch to the tab left or right of the current one, |
21 | while B<Shift-Down> creates a new tab. |
21 | while B<Shift-Down> creates a new tab. Pressing B<Ctrl-Left> and |
|
|
22 | B<Ctrl-Right> will renumber the current tab by moving it to the left or |
|
|
23 | to the right. |
22 | |
24 | |
23 | The tabbar itself can be configured similarly to a normal terminal, but |
25 | The tabbar itself can be configured similarly to a normal terminal, but |
24 | with a resource class of C<URxvt.tabbed>. In addition, it supports the |
26 | with a resource class of C<URxvt.tabbed>. In addition, it supports the |
25 | following four resources (shown with defaults): |
27 | following four resources (shown with defaults): |
26 | |
28 | |
… | |
… | |
398 | |
400 | |
399 | # helper extension implementing the subwindows of a tabbed terminal. |
401 | # helper extension implementing the subwindows of a tabbed terminal. |
400 | # simply proxies all interesting calls back to the tabbed class. |
402 | # simply proxies all interesting calls back to the tabbed class. |
401 | |
403 | |
402 | { |
404 | { |
403 | for my $hook qw(start destroy key_press property_notify) { |
405 | for my $hook (qw(start destroy key_press property_notify)) { |
404 | eval qq{ |
406 | eval qq{ |
405 | sub on_$hook { |
407 | sub on_$hook { |
406 | my \$parent = \$_[0]{term}{parent} |
408 | my \$parent = \$_[0]{term}{parent} |
407 | or return; |
409 | or return; |
408 | \$parent->tab_$hook (\@_) |
410 | \$parent->tab_$hook (\@_) |