PRINTFAIL(3)
๐ฌ messages(3) โ the libbash glow-up your terminal deserves
okay bestie, so messages(3) is a libbash library (that's the LOCAL one, section 3, she's untitled but we love her anyway ๐
) and she implements a whole set of functions to print standard status messages. no cap.
โจ NAME โจ
messages โ libbash library that implements a set of functions to print standard status messages ๐
๐ฆ SYNOPSIS ๐ฆ
printOK [indent]
printFAIL [indent]
printNA [indent]
printATTN [indent]
printWAIT [indent]
๐ธ DESCRIPTION ๐ธ
๐ General
messages is a collection of functions to print standard status messages โ those [ OK ] and [FAIL] messages you literally see during the Linux boot process. it's giving โจritualโจ
The function list, periodt:
printOKโ Prints a standard[ OK ]message (green) ๐printFAILโ Prints a standard[FAIL]message (red) โค๏ธprintNAโ Prints a standard[ N/A]message (yellow) ๐printATTNโ Prints a standard[ATTN]message (yellow) ๐printWAITโ Prints a standard[WAIT]message (yellow) ๐
Detailed interface description follows, bestie. keep reading ๐
๐ง indent
Column to move to before printing.
Default indent is calculated as TTY_WIDTH-10. If current tty width can not be determined (for example, in case of serial console), it defaults to 80, so default indent is 80-10=10 ๐งฎ
lowkey iconic that she just does the math for you. she's the main character fr fr
๐ FUNCTIONS DESCRIPTIONS ๐
๐ printOK [indent]
Prints a standard [ OK ] message (green). slay. you ate. ๐
โค๏ธ printFAIL [indent]
Prints a standard [FAIL] message (red). it happens, we move ๐ญ
๐ printNA [indent]
Prints a standard [ N/A] message (yellow). not applicable bestie, not our problem โจ
๐ printATTN [indent]
Prints a standard [ATTN] message (yellow). pay attention, this one's talking to you ๐
๐ printWAIT [indent]
Prints a standard [WAIT] message (yellow). hold on babe, she's loading ๐
๐ EXAMPLES ๐
Run a program named MyProg, and report it's success or failure:
echo -n 'Running MyProg...'
printWAIT
if MyProg ; then
printOK
else
printFAIL
fi
look at that control flow. the drama. the suspense. printWAIT then boom, printOK or printFAIL. cinema. ๐
๐ซถ AUTHORS ๐ซถ
- Hai Zaar
<haizaar@haizaar.com> - Gil Ran
<gil@ran4.net>
(the two legends who made the boot screen cute, we stan ๐)
๐ฅ SEE ALSO ๐ฅ
ldbash(1)libbash(1)
and that's the whole vibe check, bestie ๐ this page came from Linux, version UNDATED โ so she's timeless, she's ethereal, she's giving forever-girl ๐ฆโญ go forth and print your status messages, you absolute icon ๐ โจ
๐ฆ where this page comes from
- debian bookworm: libbash 0.9.11-3 ยท GPL-3.0-only
- debian trixie: libbash 0.9.11-3 ยท GPL-3.0-only
- ubuntu jammy: libbash 0.9.11-3 ยท GPL-3.0-only
- ubuntu noble: libbash 0.9.11-3 ยท GPL-3.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms