Tom Molesworth > Tickit-Widget-Statusbar > Tickit::Widget::Statusbar

Download:
Tickit-Widget-Statusbar-0.001.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.001   Source  

NAME ^

Tickit::Widget::Statusbar - provides a simple status bar implementation

VERSION ^

version 0.001

SYNOPSIS ^

 my $statusbar = Tickit::Widget::Statusbar->new;
 $statusbar->update_status('Ready to start');

DESCRIPTION ^

Provides a status bar, typically for use at the bottom of the terminal to indicate when we're busy doing something. You'll probably want this as the last widget in a Tickit::Widget::VBox with expand omitted or set to 0.

Currently the statusbar contains the status text, a memory usage indicator (VSZ), CPU usage, and a clock. It should also allow progress bars, sparklines, and the ability to configure things, but as yet it does not.

METHODS ^

Not too many user-serviceable parts inside as yet. This is likely to change in future.

new

Instantiates the status bar.

update_status

Set current status. Takes a single parameter - the string to set the status to.

Returns $self.

INHERITED METHODS ^

Tickit::ContainerWidget

child_opts, child_resized, find_child, focus_next, remove, set_child_opts, window_lost

Tickit::Widget

get_style_pen, get_style_text, get_style_values, key_focus_next_after, key_focus_next_before, on_pen_changed, parent, pen, redraw, reshape, resized, set_parent, set_pen, set_style, set_style_tag, set_window, style_classes, take_focus, window

AUTHOR ^

Tom Molesworth <cpan@entitymodel.com>

LICENSE ^

Copyright Tom Molesworth 2011-2013. Licensed under the same terms as Perl itself.

syntax highlighting: