P is for Practical | |
PerlMonks |
Re: full screen UI in perlby toma (Vicar) |
on Jun 12, 2001 at 12:49 UTC ( [id://87751]=note: print w/replies, xml ) | Need Help?? |
Curses has quite a few functions, some of which you may
find useful. The addstr();refresh() functions
do what you want. There are also more full-featured curses functions in Curses::Forms and Curses::Widgets. Here is a snippet that uses Curses to do something like what you want. The hard part is figuring out how to keep the screen refreshed while your code is off doing something more interesting.
The Perl Curses module documentation assumes that you already understand the curses library. For simple tasks, it's not too bad to figure out. As your requirements become more complex, it is easy to get bogged down in the details of curses. Another approach would be to use a GUI status window such as one provided by Tk (warning: Tk link returns lots of stuff). It should work perfectly the first time! - toma
In Section
Seekers of Perl Wisdom
|
|