Curses:...tViewer(3)

✨ NAME ✨

okay so bestie, this is the Curses:...tViewer(3) page from the User Contributed Perl Documentation, and it's literally about Curses::UI::TextViewer β€” the class you use to create and manipulate textviewer widgets. periodt. πŸ’…

🧚 CLASS HIERARCHY 🧚

the family tree is giving main character energy:

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

πŸŽ€ SYNOPSIS πŸŽ€

here's the whole setup, no cap:

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

           my $textviewer = $win->add(
               'mytextviewer', 'TextViewer',
           -text => "Hello, world!\n"
                      . "Goodbye, world!"
           );

           $textviewer->focus();

🌸 DESCRIPTION 🌸

Curses::UI::TextViewer is a widget that can be used to create a textviewer widget. yes, icon behavior. 😌

This class is derived from Curses::UI::TextEditor. the only special thing about this class is that the -readonly option is forced to a true value. so for the usage of Curses::UI::TextViewer, see Curses::UI::TextEditor. iykyk. πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

go look at Curses::UI, Curses::UI::TextEditor, β€” bestie homework, but make it cute. 🫢

πŸ‘‘ 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.


mwah πŸ’‹ this lil page is serving perl v5.42.2 energy, dated 2023-07-03. slay and goodbye. 🌈✨

πŸ“¦ where this page comes from