Skip to content

Commit 7838617

Browse files
committed
Added colored terminal output.
1 parent 9fc6d23 commit 7838617

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

.vscode/c_cpp_properties.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Mac",
5+
"includePath": [
6+
"${workspaceFolder}/**"
7+
],
8+
"defines": [],
9+
"macFrameworkPath": [
10+
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks"
11+
],
12+
"compilerPath": "/usr/bin/clang",
13+
"cStandard": "c11",
14+
"intelliSenseMode": "clang-x64"
15+
}
16+
],
17+
"version": 4
18+
}

Makefile.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ bindir = @bindir@
2323
srcdir = @srcdir@
2424
VPATH = @srcdir@
2525

26+
# Terminal colors
27+
RED=`tput setaf 1`
28+
GREEN=`tput setaf 2`
29+
RESET=`tput sgr0`
30+
2631
.PHONY: all clean seedtool check
2732
all clean seedtool check:
2833
cd src && $(MAKE) $@
@@ -72,12 +77,12 @@ distcheck: $(tarball)
7277
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst uninstall
7378
@remaining="`find $(distdir)/_inst -type f | wc -l`"; \
7479
if test "$${remaining}" -ne 0; then \
75-
echo "*** $${remaining} file(s) remaining in stage directory!"; \
80+
echo "$(RED)*** $${remaining} file(s) remaining in stage directory!$(RESET)"; \
7681
exit 1; \
7782
fi
7883
cd $(distdir) && $(MAKE) clean
7984
rm -rf $(distdir)
80-
@echo "*** Package $(tarball) is ready for distribution."
85+
@echo "$(GREEN)*** Package $(tarball) is ready for distribution.$(RESET)"
8186

8287
.PHONY: FORCE
8388
FORCE:

src/Makefile.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ bindir = @bindir@
2121
srcdir = @srcdir@
2222
VPATH = @srcdir@
2323

24+
# Terminal colors
25+
RED=`tput setaf 1`
26+
GREEN=`tput setaf 2`
27+
RESET=`tput sgr0`
28+
2429
COMPILER = g++
2530
CFLAGS = --debug -O0
2631
CXXFLAGS = -std=c++17 -stdlib=libc++ --debug -O0

0 commit comments

Comments
 (0)