wok-next view mate-common/stuff/patches/fix-coloring.patch @ rev 21543

updated ccid (1.4.30 -> 1.4.32)
author Hans-G?nter Theisgen
date Sun Jun 21 17:20:25 2020 +0100 (2020-06-21)
parents
children
line source
1 Fix coloring - previously it made the logs broken and weird in the web interface
2 because bold-on and bold-off was on the diffelent lines of the log.
4 --- a/macros/mate-autogen
5 +++ b/macros/mate-autogen
6 @@ -49,16 +49,14 @@
8 # some terminal codes ...
9 if tty 1>/dev/null 2>&1; then
10 - boldface="`tput bold 2>/dev/null`"
11 - normal="`tput sgr0 2>/dev/null`"
12 + boldface=$'\e'[1m
13 + normal=$'\e'[0m
14 else
15 boldface=
16 normal=
17 fi
18 printbold() {
19 - echo $ECHO_N "$boldface" $ECHO_C
20 - echo "$@"
21 - echo $ECHO_N "$normal" $ECHO_C
22 + printf "$boldface%s$normal\n" "$@"
23 }
24 printerr() {
25 echo "$@" >&2