The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

my $dialog=Term::Graille::Dialog->new(%params)

Creates a new dialog box; params are options the possible options that may be selected redraw This is a function to redraws the application screen. The dialog box may overwrite parts of the application screen, and this function needs to be provided to restore the screen. callback The dialog does not call any functions itself, instead returns the button value pressed. if the $dialog->{entry} is set this is also sent. In prompts, the entry is populated by user. It is upto the main application to use this data (the callback function supplied) pos Optional. The default position is [2,2], but setting this parameter allows the dialog to be placed elsewhere highlightColour Optional. The selected item is highlighted default "black on_white" normalColour Optional. The normal colour of text items "white on_black"