1 | #! perl |
1 | #! perl |
|
|
2 | |
|
|
3 | #:META:X_RESOURCE:tabbar-fg:colour:tab bar foreground colour |
|
|
4 | #:META:X_RESOURCE:tabbar-bg:colour:tab bar background colour |
|
|
5 | #:META:X_RESOURCE:tab-fg:colour:tab foreground colour |
|
|
6 | #:META:X_RESOURCE:tab-bg:colour:tab background colour |
2 | |
7 | |
3 | sub refresh { |
8 | sub refresh { |
4 | my ($self) = @_; |
9 | my ($self) = @_; |
5 | |
10 | |
6 | my $ncol = $self->ncol; |
11 | my $ncol = $self->ncol; |
… | |
… | |
43 | $self->want_refresh; |
48 | $self->want_refresh; |
44 | } |
49 | } |
45 | |
50 | |
46 | sub new_tab { |
51 | sub new_tab { |
47 | my ($self, @argv) = @_; |
52 | my ($self, @argv) = @_; |
48 | |
|
|
49 | my $offset = $self->fheight; |
|
|
50 | |
53 | |
51 | # save a backlink to us, make sure tabbed is inactive |
54 | # save a backlink to us, make sure tabbed is inactive |
52 | push @urxvt::TERM_INIT, sub { |
55 | push @urxvt::TERM_INIT, sub { |
53 | my ($term) = @_; |
56 | my ($term) = @_; |
54 | $term->{parent} = $self; |
57 | $term->{parent} = $self; |