Curses:...browser(3)
πΈ NAME πΈ
Okay bestie, welcome to the <rainbow>Curses:...browser(3)</rainbow> page β User Contributed Perl Documentation, fr fr. This is the manual for Curses::UI::Dialog::Dirbrowser: create and manipulate filebrowser dialogs. π
π¦ CLASS HIERARCHY π¦
The ancestry is giving main character energy, and it goes exactly like this:
Curses::UI::Widget
|
+----Curses::UI::Container
|
+----Curses::UI::Window
|
+----Curses::UI::Dialog::Dirbrowser
β¨ SYNOPSIS β¨
Here's the whole vibe in 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::Dirbrowser'
);
$dialog->focus;
my $file = $dialog->get();
$win->delete('mydialog');
# The easy way (see Curses::UI documentation).
# --------------------------------------------
$file = $cui->filebrowser();
$file = $cui->loadfilebrowser();
$file = $cui->savefilebrowser();
π DESCRIPTION π
Curses::UI::Dialog::Dirbrowser is a dirbrowser dialog. This type of dialog can be used to select a directory, anywhere on the filesystem. ποΈ
See exampes/demo-Curses::UI::Dialog::Dirbrowser in the distribution for a short demo. That path is literally exampes/..., iykyk. π
π OPTIONS π
-title < TEXT >β Set the title of the dialog window to TEXT. β¨-path < PATH >β Set the path to start with to PATH. If this path does not exist, the filebrowser will start in therootdirectory. π«Ά-show_hidden < BOOLEAN >β If BOOLEAN has a true value, hidden files (the filename starts with a dot) will also be shown. By default this option is set to false. π
π§ METHODS π§
new ( OPTIONS )layout ( )draw ( BOOLEAN )focus ( )
These are standard methods. See Curses::UI::Container for an explanation of these. π
get ( )β This method will return the complete path to the file that was selected using the filebrowser. If no file was selected, this method will return an undefined value. π¦
π₯ SPECIAL BINDINGS π₯
escapeβ This will invoke the cancel button, so the filebrowser widget returns without selecting any file. π~β If the directory- or filelistbox of the dialog window has the focus and the tilde (~) button is pressed, the filebrowser willchdirto the homedirectory of the current user. π§
π SEE ALSO π
Curses::UICurses::UI::ContainerCurses::UI::Buttonbox
π AUTHOR π
Copyright tea and license facts, served fresh:
- 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.
Sign-off, bestie: perl v5.42.2, dated 2023-07-03, page Curses:...browser(3) β that's the whole page, mwah ππ
π¦ 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