for my $tab (@{ $self->{tabs} }) {
$idx++;
- my $txt = " $idx ";
+ my $act = $tab->{activity} && $tab != $self->{cur}
+ ? "*" : " ";
+
+ my $txt = "$act$idx$act";
my $len = length $txt;
substr $text, $ofs, $len + 1, "$txt|";
my ($self, $tab) = @_;
if (my $cur = $self->{cur}) {
+ delete $cur->{activity};
$cur->XUnmapWindow ($cur->parent) if $cur->mapped;
$cur->focus_out;
}
$tab->focus_in;
$tab->XMapWindow ($tab->parent);
$self->refresh;
+ delete $tab->{activity};
()
}
()
}
+sub tab_activity {
+ my ($self, $tab) = @_;
+
+ $self->refresh;
+}
+
package urxvt::ext::tabbed::tab;
# helper extension implementing the subwindows of a tabbed terminal.
}
}
+sub on_add_lines {
+ $_[0]->{activity}++
+ or $_[0]{term}{parent}->tab_activity ($_[0]);
+ ()
+}