Package : perl-Prompt-Timeout

Package details

Summary: Prompt() with auto-selecting default value in case of inactivity

Description:
This module provides only one function, prompt(), and it's exported by
default.

prompt
my $res = prompt ( $question, $default, $timeout );

Prints a $question and waits for the input. If no keys are pressed
during $timeout seconds, $default is assumed. When pressing just Enter
key, $default is assumed. If prompt() detects that it is not running
interactively, $default will be used without prompting too.


URL: https://metacpan.org/release/Prompt-Timeout
License: GPL+ or Artistic

Maintainer: nobody

List of RPMs