Curses:...g::Basic(3)
π NAME π
okay bestie, welcome to the Curses:...g::Basic(3) page in User Contributed Perl Documentation β¨ this whole thing is about Curses::UI::Dialog::Basic β literally Create and manipulate basic dialogs π
π CLASS HIERARCHY π
here's the family tree, no cap π³
Curses::UI::Widget
|
+----Curses::UI::Container
|
+----Curses::UI::Window
|
+----Curses::UI::Dialog::Basic
π¦ SYNOPSIS π¦
grab the vibe from this code, bestie:
use Curses::UI;
my $cui = new Curses::UI;
my $win = $cui->add('window_id', 'Window');
# The hard way.
# -------------
my $dialog = $win->add(
'mydialog', 'Dialog::Basic',
-message => 'Hello, world!'
);
$dialog->focus;
$win->delete('mydialog');
# The easy way (see Curses::UI documentation).
# --------------------------------------------
my $buttonvalue = $cui->dialog(-message => 'Hello, world!');
# or even
$cui->dialog('Hello, world!');
π DESCRIPTION π
Curses::UI::Dialog::Basic is a basic dialog, periodt. This type of dialog has a message on it and one or more buttons π«Ά It can be used to show a message to your program's user (βThe thingy has been updatedβ) or to get some kind of confirmation from the user (βAre you sure you want to update the thingy?β).
See exampes/demo-Curses::UI::Dialog::Basic in the distribution for a short demo π
β¨ OPTIONS β¨
-title < TEXT >β sets the title of the dialog window to TEXT π-message < TEXT >β sets the message to show to TEXT. the text may contain newline (\n) characters π-buttons < ARRAYREF >β one of the button-setup options, explained right below π-selected < INDEX >β one of the button-setup options, explained right below π-buttonalignment < VALUE >β one of the button-setup options, explained right below π
Together, these options set the buttons that have to be used. For an explanation of these options, see the Curses::UI::Buttonbox documentation π
π METHODS π
new ( HASH )β standard method, bestielayout ( )β standard methoddraw ( BOOLEAN )β standard methodfocus ( )β standard method
These are standard methods. See Curses::UI::Container for an explanation of these π§
get ( )β this method will callgeton the buttons object of the dialog and return itsreturnvalue. SeeCurses::UI::Buttonboxfor more information on this π₯
πΈ SEE ALSO πΈ
Curses::UI, Curses::UI::Container, Curses::UI::Buttonbox π¦
π 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 π that's the whole page, bestie β it's from perl v5.42.2, dated 2023-07-03, and it's the Curses:...g::Basic(3) manual page. bye π«Ά
π¦ where this page comes from
- alpine 3.24: perl-curses-ui-doc 0.9609-r3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms