Test2:...::Term(3pm)

✨ NAME ✨

okay bestie, this is Test2::Harness::Util::Term (a.k.a. the manual page Test2:...::Term(3pm), iykyk) β€” it's the whole terminal utilities situation for Test2::Harness. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically this module is the one that goes πŸ‘€ at the terminal your harness is running inside and comes back with the tea. That's it, that's the whole job. It gives you the lowdown on the terminal the harness is living in. 🌸


πŸŽ€ SYNOPSIS πŸŽ€

here's the vibe, copy-paste coded exactly like this and you're golden:

use Test2::Harness::Util::Term qw/USE_ANSI_COLOR/;

if (USE_ANSI_COLOR) {
    ...
}
else {
    ...
}

πŸ’– EXPORTS πŸ’–

  • $bool = USE_ANSI_COLOR() β€” this one hands you back a $bool, and it's true when Term::ANSIColor is actually available and usable. that's the whole check. no cap. ✨

πŸ”₯ SOURCE πŸ”₯

if you wanna go peek at the code (and honestly, icon behavior), the source code repository for Test2-Harness is right here:

http://github.com/Test-More/Test2-Harness/


πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org>

🌈 AUTHORS 🌈

  • Chad Granum <exodist@cpan.org>

Copyright 2020 Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/


and that's the whole page bestie, we ate πŸ“ β€” this was Test2:...::Term(3pm) from perl v5.40.1, dated 2026-05-10, delivered to you with all the love πŸ’–πŸ«Ά

πŸ“¦ where this page comes from