1Term::UI::History(3) User Contributed Perl Documentation Term::UI::History(3)
2
3
4
6 Term::UI::History - history function
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 Records a message on the stack, and prints it to "STDOUT" (or actually
31 $HISTORY_FH, see the "GLOBAL VARIABLES" section below), if the
32 "VERBOSE" option is true.
33
34 The "VERBOSE" option defaults to true.
35
37 $HISTORY_FH
38 This is the filehandle all the messages sent to "history()" are
39 being printed. This defaults to *STDOUT.
40
42 "Log::Message::Simple", "Term::UI"
43
45 This module by Jos Boumans <kane@cpan.org>.
46
48 This module is copyright (c) 2005 Jos Boumans <kane@cpan.org>. All
49 rights reserved.
50
51 This library is free software; you may redistribute and/or modify it
52 under the same terms as Perl itself.
53
54
55
56perl v5.32.0 2020-07-28 Term::UI::History(3)