Term::Stool::LiUser)Contributed Perl DocumentTerm::Stool::List(t) NAME Term::Stool::List - scrolling list DESCRIPTION This is a scrollable list widget. Term::Stool::Widget is the parent of this class. FIELDS contents A reference to an array that holds the list contents. cursor The location of the cursor bar in the list. This is the selected list item. scrollpos The topmost visible line of the list. activebarcolor The color of the scroll bar when the list is active. A Term::Stool::Color object. inactivebarcolor The color of the scroll bar when the list is inactive. A Term::Stool::Color object. vscrollbar The vertical scrollbar on the right hand side of the list. Will only be displayed if the list needs to scroll, and is generally created and set up automati- cally. METHODS init Sets the fields above to reasonable defaults. This includes calculating a minimum width for the list based on the size of its contents. display Draws the list. Also draws the vertical scrollbar if necessary, after updating the thumb position. resize Resize the list and its vscrollbar. value Returns the currently selected value. input Up and down arrow keys scroll, also handle home and end and pageup/pagedown. AUTHOR Joey Hess <joey@kitenet.net> 2001-05-23 perl v5.6.1 Term::Stool::List(t)