1 | #! perl | 1 | #! perl |
---|---|---|---|
2 | 2 | ||
3 | # this creates a simple digital clock | 3 | # this creates a simple digital clock |
4 | 4 | ||
5 | sub on_init { | 5 | sub on_start { |
6 | my ($self) = @_; | 6 | my ($self) = @_; |
7 | 7 | ||
8 | $self->{overlay} = $self->overlay (-1, 0, 8, 1, urxvt::OVERLAY_RSTYLE, 0); | 8 | $self->{overlay} = $self->overlay (-1, 0, 8, 1, urxvt::OVERLAY_RSTYLE, 0); |
9 | $self->{timer} = urxvt::timer | 9 | $self->{timer} = urxvt::timer |
10 | ->new | 10 | ->new |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |