commit 78bf5d564e712cd604eb8f8ac612be5a7b4e186c
parent acd91305638fc2de783b22ed23b67141538e5328
Author: Louis Burda <quent.burda@gmail.com>
Date: Wed, 9 Jun 2021 00:37:42 +0200
fix dump() command extra newline, added new welcome message
Diffstat:
6 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/service/src/msgs/cat_flag b/service/src/msgs/cat_flag
@@ -3,3 +3,4 @@
= u u =_______| \\
_ w __( \__))
c_____>__(_____)__,
+
diff --git a/service/src/msgs/welcome b/service/src/msgs/welcome
@@ -1,2 +1,6 @@
-Welcome to STLDoctor!
-Submit a stl file and we'll analyze it!
+ ┌─┐┌┬┐┬ ┌┬┐┌─┐┌─┐┌┬┐┌─┐┬─┐ ┬
+ └─┐ │ │ │││ ││ │ │ │├┬┘ ▓
+ └─┘ ┴ ┴─┘─┴┘└─┘└─┘ ┴ └─┘┴└─ │
+
+ We analyze your STL files!
+
diff --git a/service/src/util.c b/service/src/util.c
@@ -127,7 +127,7 @@ dump(const char *filename)
if (!(f = fopen(filename, "r"))) return;
while ((nb = fread(buf, 1, sizeof(buf) - 1, f)))
- printf("%.*s\n", nb, buf);
+ printf("%.*s", nb, buf);
fclose(f);
}
diff --git a/src/msgs/cat_flag b/src/msgs/cat_flag
@@ -3,3 +3,4 @@
= u u =_______| \\
_ w __( \__))
c_____>__(_____)__,
+
diff --git a/src/msgs/welcome b/src/msgs/welcome
@@ -1,2 +1,6 @@
-Welcome to STLDoctor!
-Submit a stl file and we'll analyze it!
+ ┌─┐┌┬┐┬ ┌┬┐┌─┐┌─┐┌┬┐┌─┐┬─┐ ┬
+ └─┐ │ │ │││ ││ │ │ │├┬┘ ▓
+ └─┘ ┴ ┴─┘─┴┘└─┘└─┘ ┴ └─┘┴└─ │
+
+ We analyze your STL files!
+
diff --git a/src/util.c b/src/util.c
@@ -133,7 +133,7 @@ dump(const char *filename)
if (!(f = fopen(filename, "r"))) return;
while ((nb = fread(buf, 1, sizeof(buf) - 1, f)))
- printf("%.*s\n", nb, buf);
+ printf("%.*s", nb, buf);
fclose(f);
}