mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
1036115f2d
The escape codes and special chars now live in their own module. The color module is only concerned with detecting whether to use colors or not. Additional variables are defined with hard a coded ESC char, a tab and a newline. This removes the need for echo or printf.
12 lines
383 B
Makefile
12 lines
383 B
Makefile
# ANSI Terminal codes and other escape sequences.
|
|
# The objective of this definitions is to be able to write special characters
|
|
# without resorting to shell commands like echo.
|
|
|
|
include $(RIOTMAKE)/utils/ansi_special.mk
|
|
|
|
ANSI_GREEN := $(ANSI_ESC)[1;32m
|
|
ANSI_RED := $(ANSI_ESC)[1;31m
|
|
ANSI_YELLOW := $(ANSI_ESC)[1;33m
|
|
ANSI_PURPLE := $(ANSI_ESC)[1;35m
|
|
ANSI_RESET := $(ANSI_ESC)[0m
|