Curses::UI::SearchableCurses::UI::Searchable is a Perl class that can add 'less'-like search abilities to a widget. | |
Download |
Curses::UI::Searchable Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Maurice Makaay
- Publisher web site:
- http://search.cpan.org/~mdxi/Curses-UI-0.9601/lib/Curses/UI/Searchable.pm
Curses::UI::Searchable Tags
Curses::UI::Searchable Description
Curses::UI::Searchable is a Perl class that can add 'less'-like search abilities to a widget. Curses::UI::Searchable is a Perl class that can add 'less'-like search abilities to a widget.SYNOPSIS package MyWidget; use Curses::UI::Searchable; use vars qw(@ISA); @ISA = qw(Curses::UI::Searchable); .... sub new () { # Create class instance $this. .... $this->set_routine('search-forward', &search_forward); $this->set_binding('search-forward', '/'); $this->set_routine('search-backward', &search_backward); $this->set_binding('search-backward', '?'); } sub layout_content() { my $this = shift; # Layout your widget's content. .... return $this; } sub number_of_lines() { my $this = shift; # Return the number of lines in # the widget's content. return .... } sub getline_at_ypos($;) { my $this = shift; my $ypos = shift; # Return the content on the line # where ypos = $ypos return .... } Requirements: · Perl
Curses::UI::Searchable Related Software