/usr/share/doc/libcurses-ui-perl/examples/demo-buttonbox is in libcurses-ui-perl 0.9609-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #!/usr/bin/perl -w
# 2004 (c) by Marcus Thiesen (marcus@thiesen.org)
# This file is a part of Curses::UI and might be distributed
# under the same terms as perl itself.
# Use the libraries from the distribution, instead of
# system wide libraries.
use FindBin;
use lib "$FindBin::RealBin/../lib";
use strict;
use Curses::UI;
$Curses::UI::debug = 0;
my $cui = new Curses::UI( -color_support => 1 );
my $win1 = $cui->add(
'win1', 'Window',
-border => 1,
-y => 1,
-bfg => 'red',
);
$win1->add("box1", "Buttonbox",
-buttons => [ {
-label => "< ADD >",
}, {
-label => "< FOO >" }] ,
);
$win1->add("box2", "Buttonbox",
-y => 10,
-vertical => 1,
-buttons => [ {
-label => "< ADD >",
}, {
-label => "< FOO >" }] ,
);
$cui->set_binding( sub {exit 0;}, "q");
$cui->mainloop;
|