Tickit::Console - build full-screen console-style applications
Tickit::Console
Returns a new instance of a Tickit::Console. Takes the following named arguments:
Callback to invoke when a line of text is entered in the entry widget.
$on_line->( $console, $text )
Adds a new tab to the console, and returns an object representing it.
Takes the following named arguments:
Name for the tab.
Optional. Provides a different callback to invoke when a line of text is entered while this tab is active. Invoked the same way as above.
See "TAB OBJECTS" below for more information about the returned object.
These methods are all passed through to the underlying Tickit::Widget::Tabbed object.
Returns or sets the tab name text
Appends a line of text to the tab. $string may either be a plain perl string, or an instance of String::Tagged containing formatting tags, as specified by Tickit::Widget::Scroller. Options will be passed to the Tickit::Widget::Scroller::Item::Line used to contain the string.
$string
Paul Evans <leonerd@leonerd.org.uk>
To install Tickit::Console, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tickit::Console
CPAN shell
perl -MCPAN -e shell install Tickit::Console
For more information on module installation, please visit the detailed CPAN module installation guide.