NAME Term::Graille::Textarea

Text editting area

SYNOPSIS

use Term::Graille::Interact;
use Term::Graille::Textarea ;   

my $editor=new Term::Graille::Textarea(
      geometry=>[60,30],  #  [$Width, $Height]
      position=>[2,2],    #  [$row, $column] 
      );

DESCRIPTION

Allows an area for multiline text to be entered and editted.

FUNCTIONS

my $menu=Term::Graille::Menu->new(%params)

Creates a new Textarea; params are menu The menu tree as an Array ref containing strings and arrayrefs. Branches are Array refs, and end nodes are strings. See above example to visualise structure. redraw This is a function that needs to be supplied to redraw the application screen. The menu will overwrite parts of the application screen, and this function needs to be provided to restore the screen. callback The menu does not call any functions, instead returns the leaf string selected. It is upto the main application to use this string to in a dispatch routine (the callback function supplied) pos Optional. The default position is [2,2], but setting this parameter allows the menu to be placed elsewhere highlightColour Optional. The selected item is highlighted default "black on_white" normalColour Optional. The normal colour of menu items "white on_black"