NAME
Quizzer::FrontEnd::Text - Text FrontEnd
DESCRIPTION
This FrontEnd is for a simple user interface that uses plain text output. It uses ReadLine to make the user interface just a bit nicer.
METHODS
resize
This method from my base class is overridden, so after the screen size changes, $Text::Wrap::columns is updated to match.
display
Displays text wrapped to fit on the screen. If too much text is displayed at once, it will page it. If a title has been set and has not yet been displayed, displays it first.
display_nowrap
Display text, paging if necessary. If a title has been set and has not yet been displayed, displays it first.
title
Display a title. Only do so once per title. The title is stored in the title property of the object. If a value is passed in, this will set the title instead.
prompt
Pass it the text to prompt the user with, and an optional default. The user will be prompted to enter input, and their input returned. If a title is pending, it will be displayed before the prompt.
prompt_password
Same as prompt, except what the user enters is not echoed to the screen and the default is never shown in the prompt.
AUTHOR
Joey Hess <joey@kitenet.net>