Term::UI::History(3)
π NAME π
Okay so this is Term::UI::History(3), and the module is Term::UI::History β aka the history function. It's literally here to keep the receipts of your Term::UI era, no cap. π
β¨ SYNOPSIS β¨
use Term::UI::History qw[history];
history("Some message");
### retrieve the history in printable form
$hist = Term::UI::History->history_as_string;
### redirect output
local $Term::UI::History::HISTORY_FH = \*STDERR;
πΈ DESCRIPTION πΈ
This module provides the history function for Term::UI, printing and saving all the UI interaction. Like, every little interaction? saved. Obsessed. π«Ά
If you want details on usage from Term::UI, the assignment is the Term::UI manpage. Go read it, bestie. π
Also, this module subclasses Log::Message::Simple. For the additional functionality available via this package, refer to its manpage β iykyk. π§
π οΈ FUNCTIONS π οΈ
π history("message string" [,VERBOSE]) π
This function records a message on the stack, and prints it to STDOUT β or actually $HISTORY_FH, see the GLOBAL VARIABLES section below π β if the VERBOSE option is true.
The VERBOSE option defaults to true. So yes, it's yapping by default, fr fr. π£οΈπ¬
π GLOBAL VARIABLES π
$HISTORY_FHβ this is the filehandle all the messages sent tohistory()are being printed. This defaults to*STDOUT. So that's the default output situation, bestie. π
π¦ See Also π¦
Log::Message::Simple, Term::UI. Go read them, periodt. ππ
π AUTHOR π
This module by Jos Boumans <kane@cpan.org>. Iconic. β¨
π COPYRIGHT π
This module is copyright (c) 2005 Jos Boumans <kane@cpan.org>. All rights reserved.
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
Cute little sign-off: this page is from perl v5.42.0, dated 2021-08-07, and it's the Term::UI::History(3) page. Bye bestie, go make some history ππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Term-UI 0.50-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms