Curses:...g::Error(3)
β¨ NAME β¨
okay bestie, this is the Curses:...g::Error(3) manual page from the User Contributed Perl Documentation, and it's all about Curses::UI::Dialog::Error β the widget whose whole personality is Create and manipulate error dialogs. no cap, that's the name-section summary. π
𧬠CLASS HIERARCHY π§¬
the way that this widget has a whole family tree is iconic. here's the lineage, exactly:
Curses::UI::Widget
|
+----Curses::UI::Container
|
+----Curses::UI::Window
|
+----Curses::UI::Dialog::Basic
|
+----Curses::UI::Dialog::Error
π SYNOPSIS π
here's the summoning ritual, bestie. hard way first, then easy way, then the "or even" way:
use Curses::UI;
my $cui = new Curses::UI;
my $win = $cui->add('window_id', 'Window');
# The hard way.
# -------------
my $dialog = $win->add(
'mydialog', 'Dialog::Error',
-message => 'The world has gone!'
);
$dialog->focus;
$win->delete('mydialog');
# The easy way (see Curses::UI documentation).
# --------------------------------------------
$cui->error(-message => 'The world has gone!');
# or even:
$cui->error('The world has gone!');
π DESCRIPTION π
okay so Curses::UI::Dialog::Error is a basic error dialog. lowkey it's almost the same as Curses::UI::Dialog::Basic, except for the fact that a warning sign is drawn to the left of the message using ASCII "art":
_
/ \
/ ! \
/_____\
it's giving warning-triangle-but-make-it-terminal, and honestly it ate. π«Ά
since this class is very closely related to the basic dialog, peep Curses::UI::Dialog::Basic for a description of the options and methods that you can use. that's the tea. β
π SEE ALSO π
go give these a look too, bestie:
Curses::UICurses::UI::Dialog::Basic
βοΈ AUTHOR βοΈ
the legal-ish bits, preserved with love:
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.
π okay that's the whole page, bestie! this one's taggedCurses:...g::Error(3)and comes fromperl v5.42.2, dated2023-07-03. mwah, go make cute error dialogs π
π¦ 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