Revision 12811
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
488 | 488 |
highlight_msg() # usage: [format=...] highlight_msg msg |
489 | 489 |
# format: the # in xfree86.org/current/ctlseqs.html#Character_Attributes |
490 | 490 |
{ |
491 |
kw_params format; local format="${format-4}" # underline
|
|
491 |
kw_params format; local format="${format-1}" # bold
|
|
492 | 492 |
local highlight="$(test "$format" && can_highlight_msg; exit2bool)" |
493 | 493 |
echo "${highlight:+[${format}m}$1${highlight:+[0m}" |
494 | 494 |
} |
Also available in: Unified diff
fix: lib/sh/util.sh: highlight_msg(): bold instead of underlining because the underlining interferes with the readability of the commands