1Term::UI::History(3) User Contributed Perl Documentation Term::UI::History(3)
2
3
4
6 Log::Message::Simple
7
9 use Term::UI::History qw[history];
10
11 history("Some message");
12
13 ### retrieve the history in printable form
14 $hist = Term::UI::History->history_as_string;
15
16 ### redirect output
17 local $Term::UI::History::HISTORY_FH = \*STDERR;
18
20 This module provides the "history" function for "Term::UI", printing
21 and saving all the "UI" interaction.
22
23 Refer to the "Term::UI" manpage for details on usage from "Term::UI".
24
25 This module subclasses "Log::Message::Simple". Refer to its manpage for
26 additional functionality available via this package.
27
29 history("message string" [,VERBOSE])
30
31 Records a message on the stack, and prints it to "STDOUT" (or actually
32 $HISTORY_FH, see the "GLOBAL VARIABLES" section below), if the "VER‐
33 BOSE" option is true.
34
35 The "VERBOSE" option defaults to true.
36
38 $HISTORY_FH
39 This is the filehandle all the messages sent to "history()" are
40 being printed. This defaults to *STDOUT.
41
43 "Log::Message::Simple", "Term::UI"
44
46 This module by Jos Boumans <kane@cpan.org>.
47
49 This module is copyright (c) 2005 Jos Boumans <kane@cpan.org>. All
50 rights reserved.
51
52 This library is free software; you may redistribute and/or modify it
53 under the same terms as Perl itself.
54
55
56
57perl v5.8.8 2006-09-04 Term::UI::History(3)