ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/example-refresh-hooks
(Generate patch)

Comparing rxvt-unicode/src/perl/example-refresh-hooks (file contents):
Revision 1.2 by root, Wed Jan 18 11:05:09 2006 UTC vs.
Revision 1.3 by root, Sun Jun 10 17:31:53 2012 UTC

1#! perl 1#! perl
2 2
3# this creates a simple digital clock by overwriting the refresh hooks 3=head1 NAME
4
5 example-refresh-hooks - example of how to use refresh hooks
6
7=head1 DESCRPTION
8
9Displays a very simple digital clock in the upper right corner of the
10window. Illustrates overwriting the refresh callbacks to create your own
11overlays or changes.
12
13=cut
4 14
5sub on_init { 15sub on_init {
6 my ($self) = @_; 16 my ($self) = @_;
7 17
8 # force a refresh every second 18 # force a refresh every second

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines