NAME

Term::GentooFunctions - provides gentoo's einfo, ewarn, eerror, ebegin and eend.

SYNOPSIS

use Term::GentooFunctions qw(:all)

einfo "this is kinda neat...";

ebegin "I hope this works...";
 ....
eend $truefalse; # the result is backwards of gentoo; ie, 0 is bad, 1 is good.

prints

einfo, ewarn, and error show informative lines

ebegin and eend

ebegin and eend show the beginning and ends of things.

Additionally, eend returns the result passed in for handy returns at the bottom of functions...

sub eg {
    eend 0; # eg now returns a false!!  Huzzah!
}

Lastly, eend will use $_ if it is not passed any arguments.

indents

you can also use eindent and eoutdent to show trees of things happening:

einfo "something" eindent einfo "something else" # indented eoutdent einfo "something else (again)" # un-dented

bash

BTW, Term::GentooFunctions will use RC_INDENTATION and RC_DEFAULT_INDENT from /sbin/functions.sh... So you can eindent in a bash_script.sh and your perl_script.pl will use the indent level! However, to get it to work you must

export RC_INDENTATION RC_DEFAULT_INDENT 

before you fork to perl. Also, T::GF won't be able to modify the indent level in a way that will propagate back up to bash (obviously).

AUTHOR

Please contact me with ANY suggestions, no matter how pedantic.

Jettero Heller <japh@voltar-confed.org>

COPYRIGHT

GPL! I included a gpl.txt for your reading enjoyment.

Though, additionally, I will say that I'll be tickled if you were to include this package in any commercial endeavor. Also, any thoughts to the effect that using this module will somehow make your commercial package GPL should be washed away.

I hereby release you from any such silly conditions.

This package and any modifications you make to it must remain GPL. Any programs you (or your company) write shall remain yours (and under whatever copyright you choose) even if you use this package's intended and/or exported interfaces in them.

SEE ALSO

Term::Size, Term::ANSIColor, Term::ANSIScreen