diff --git a/src/core/opamConsole.ml b/src/core/opamConsole.ml index 154645ee0f6..08b1ecf3fed 100644 --- a/src/core/opamConsole.ml +++ b/src/core/opamConsole.ml @@ -209,11 +209,11 @@ let style_code (c: text_style) = match c with (* not nestable *) let colorise style s = if not (color ()) then s else - Printf.sprintf "\027[%sm%s\027[m" (style_code style) s + Printf.sprintf "\027[%sm%s\027[0m" (style_code style) s let colorise' styles s = if not (color ()) then s else - Printf.sprintf "\027[%sm%s\027[m" + Printf.sprintf "\027[%sm%s\027[0m" (String.concat ";" (List.map style_code styles)) s diff --git a/tests/Makefile b/tests/Makefile index 1a75b5ddc07..d6bc572bb71 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -52,14 +52,14 @@ printf = /usr/bin/printf define RUN @COUNT=$$(ls -1 $(REPOKIND)-*.log 2>/dev/null | wc -l); \ LOG=$$($(printf) "$(REPOKIND)-%02d-$(1).log" $$COUNT); \ -$(printf) " %02d \e[1m%-20s\e[m ..................................... " \ +$(printf) " %02d \e[1m%-20s\e[0m ..................................... " \ $$COUNT $(1); \ if $(MAKE) $(1) >$$LOG 2>&1; then \ - $(printf) "\e[32m[ OK ]\e[m\n"; \ + $(printf) "\e[32m[ OK ]\e[0m\n"; \ else \ - $(printf) "\e[31m$(1) FAILED\e[m\n\n" >>$$LOG; \ - $(printf) "\e[31m[FAIL]\e[m\n"; \ - { $(printf) "\e[31m>> %s FAILED <<\e[m\n" $(1); cat $$LOG; } \ + $(printf) "\e[31m$(1) FAILED\e[0m\n\n" >>$$LOG; \ + $(printf) "\e[31m[FAIL]\e[0m\n"; \ + { $(printf) "\e[31m>> %s FAILED <<\e[0m\n" $(1); cat $$LOG; } \ >> failed-$(REPOKIND).log; \ fi; \ cat $$LOG >> fulltest-$(REPOKIND).log