File: xosd.pl

package info (click to toggle)
libui-dialog-perl 1.21-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 808 kB
  • sloc: perl: 7,403; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 581 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
use UI::Dialog::Backend::XOSD;
use Time::HiRes qw( usleep );
$| = 1;
my @opts =
  ( debug => 3,
    font => "lucidasans-bold-24",
    #font => "-*-fixed-*-*-*-*-20-*-*-*-*-*-iso8859-*",
    delay => 2,
    colour => "green",
    pos => "middle",
    align => "center",
  );

my $d = new UI::Dialog::Backend::XOSD ( @opts );

$d->line( text => "this is a line test" );
$d->gauge( percent => "5" );
$d->gauge( text => "gauging something", percent => "50" );
$d->gauge( text => "gauging something again", percent => "100" );