Revision 12837
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
504 | 504 |
{ |
505 | 505 |
kw_params format; local format="${format-1}" # bold |
506 | 506 |
local highlight="$(test "$format" && can_highlight_msg; exit2bool)" |
507 |
echo "${highlight:+[${format}m}$1${highlight:+[0m}" |
|
507 |
echo "${highlight:+[0;${format}m}$1${highlight:+[0m}"
|
|
508 | 508 |
} |
509 | 509 |
|
510 | 510 |
log_line!() # highlights log_level 1 messages to stand out against other output |
Also available in: Unified diff
bugfix: lib/sh/util.sh: highlight_msg(): need to reset any existing formatting before applying new formatting