I am trying to wrap my head around Curses/NCurses (still don't understand the difference) and perl, more exactly the Curses::UI
modules, more exactly the Curses::UI::Widget package - see http://search.cpan.org/~mdxi/Curses-UI/lib/Curses/UI/Widget.pm .
For understanding it, I would like to see some super-simple "Hello World" Curses::UI::Widget
to start there.
There is a simple example in Curses::UI::Widget
documentation, but that doesn't work, since it calls $this->generic_focus
and it's undefined, and I have no idea what it should actually do.
Is there some actual tutorial for writing Curses::UI
widgets, or at least some working examples?
edit: To make myself clear: the basic text-editor from the documentation works from me, but now I would like to write my own widgets and I am not sure which functions to implement and how.
Mainly, I am not sure what should method focus
do and if I have to implement the method generic_focus
or not.
edit 2:
For example, in the linked documentation above, the function generic_focus
is written as if it was implemented in Curses::UI::Widget
, but it actually isn't implemented anywhere. What is going on exactly?