UI::Various::PoorTerm::Window - concrete implementation of UI::Various::Window
# This module should never be used directly! # It is used indirectly via the following: use UI::Various::Window;
This module is the specific minimal fallback implementation of UI::Various::Window. It manages and hides everything specific to the last resort UI.
The documentation of this module is only intended for developers of the package itself.
$ui_element->_show;
Show the complete window by printing its title and all its elements. Active elements (basically everything not just simple Text) are numbered to allow later interaction with them. The method should only be called from _process!
Text
_process
$ui_element->_process;
Handle the action of the UI element. For a PoorTerm's window this means a loop of printing the window's elements and allowing to select one of the active ones for processing until the window is exited or destroyed.
PoorTerm
PoorTerm's concrete implementation of UI::Various::Window::destroy sets a flag for auto-destruction in _process.
UI::Various, UI::Various::Window
Copyright (C) Thomas Dorner.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See LICENSE file for more details.
Thomas Dorner <dorner@cpan.org>
To install UI::Various, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UI::Various
CPAN shell
perl -MCPAN -e shell install UI::Various
For more information on module installation, please visit the detailed CPAN module installation guide.