Shawn Boyette > Curses-UI-0.9609 > Curses::UI::TextEditor

Download:
Curses-UI-0.9609.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  35
Open  6
View/Report Bugs
Module Version: 1.5   Source  

NAME ^

Curses::UI::TextEditor - Create and manipulate texteditor widgets

CLASS HIERARCHY ^

 Curses::UI::Widget
 Curses::UI::Searchable
    |
    +----Curses::UI::TextEditor

SYNOPSIS ^

    use Curses::UI;
    my $cui = new Curses::UI;
    my $win = $cui->add('window_id', 'Window');

    my $editor = $win->add(
        'myeditor', 'TextEditor',
        -vscrollbar => 1,
        -wrapping   => 1,
    );

    $editor->focus();
    my $text = $editor->get();

DESCRIPTION ^

Curses::UI::TextEditor is a widget that can be used to create a couple of different kinds of texteditors. These are:

See exampes/demo-Curses::UI::TextEditor in the distribution for a short demo of these.

STANDARD OPTIONS ^

-parent, -x, -y, -width, -height, -pad, -padleft, -padright, -padtop, -padbottom, -ipad, -ipadleft, -ipadright, -ipadtop, -ipadbottom, -title, -titlefullwidth, -titlereverse, -onfocus, -onblur

For an explanation of these standard options, see Curses::UI::Widget.

WIDGET-SPECIFIC OPTIONS ^

METHODS ^

DEFAULT BINDINGS ^

There are different sets of bindings for each mode in which this widget can be used.

All modes (editor, single line and read only)

All edit modes (all but read only mode)

Only for the read only mode

SEE ALSO ^

Curses::UI, Curses::UI::TextViewer Curses::UI::TextEntry Curses::UI::Widget, Curses::UI::Common

AUTHOR ^

Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.

Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)

This package is free software and is provided "as is" without express or implied warranty. It may be used, redistributed and/or modified under the same terms as perl itself.

syntax highlighting: