1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/makefiles/utils/ansi_special.mk
Juan Carrano 1036115f2d
makefiles/utils/ansi: Refactor ansi codes into their own file.
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.
2021-05-04 10:52:50 +02:00

17 lines
532 B
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Make does not recognize escaped characters (e.g. \t, \033, etc).
# The following variables contain the characters themselves.
# This file is inherently fragile (i.e. your editor could destroy the tab
# without you realizing, to be careful when editing this.
# To generate this: $ printf "ANSI_ESC := \033# comment"
ANSI_ESC := # you may or may not be able to see that character in your editor
# The third parameter to the subst is a tab - be careful not to replace it with
# spaces!
TAB := $(subst ,, )
define NEWLINE
endef