App::Raps2::UI - App::Raps2 User Interface
my $ui = App::Raps2::UI->new(); my $input = $ui->read_line('Say something'); my $password = $ui->read_pw('New password', 1); $ui->to_clipboard('stuff!');
This manual documents App::Raps2::UI version 0.54
App::Raps2::UI is used by App::Raps2 to interface with the user, i.e. do input and output on the terminal.
Returns a new App::Raps2::UI object.
Print the list items neatly formatted to stdout. Each item looks like [ key, value ]. When list is called for the first time, it will print the keys as well as the values.
Print "question: " to stdout and wait for the user to input text followed by a newline. prefill sets the default content of the answer field.
Returns the user's reply, excluding the newline.
Like read_line, but repeats message each time the user hits return. Input is terminated by EOF (Ctrl+D). Returns a string concatenation of all lines (including newlines).
Prompt the user for a password. message is displayed, the user's input is noch echoed. If verify is set, the user has to enter the same input twice, otherwise read_pw dies. Returns the input.
Call command to place string in the primary X Clipboard. command defaults to xclip -l 1.
xclip -l 1
Returns true upon success, undef if the operation failed. Use $! to get the error message.
pair consinsts of [ key, value ]. For each pair, prints " key : value" to stdout.
When App::Raps2::UI encounters an error, it uses Carp(3pm)'s confess function to die with a backtrace.
This module requires Term::ReadLine and the xclip executable.
Unknown.
App::Raps2(3pm).
Copyright (C) 2011-2015 by Daniel Friesel <derf@finalrewind.org>
0. You just DO WHAT THE FUCK YOU WANT TO.
To install App::Raps2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Raps2
CPAN shell
perl -MCPAN -e shell install App::Raps2
For more information on module installation, please visit the detailed CPAN module installation guide.