NAME

Pcore::Lib::Term

METHODS

prompt

Prompting for user input and returns received value.

    my $res = Pcore::Lib::Prompt::prompt($query, \@answers, %options);
  • OPTIONS

    • default - default value, returned if enter pressed with no input;

    • confirm - if true, user need to confirm input with enter;

pause

Blocking wait for any key pressed.

    Pcore::Lib::Prompt::pause([$message], %options);
  • OPTIONS

    • timeout - timeout in seconds;