aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-06-09 00:37:42 +0200
committerLouis Burda <quent.burda@gmail.com>2021-06-09 00:37:42 +0200
commit78bf5d564e712cd604eb8f8ac612be5a7b4e186c (patch)
treefa48a76a940cccb7a8a2a2b58f674b3f8f205d6e
parentacd91305638fc2de783b22ed23b67141538e5328 (diff)
downloadenowars5-service-stldoctor-78bf5d564e712cd604eb8f8ac612be5a7b4e186c.tar.gz
enowars5-service-stldoctor-78bf5d564e712cd604eb8f8ac612be5a7b4e186c.zip
fix dump() command extra newline, added new welcome message
-rw-r--r--service/src/msgs/cat_flag1
-rw-r--r--service/src/msgs/welcome8
-rw-r--r--service/src/util.c2
-rw-r--r--src/msgs/cat_flag1
-rw-r--r--src/msgs/welcome8
-rw-r--r--src/util.c2
6 files changed, 16 insertions, 6 deletions
diff --git a/service/src/msgs/cat_flag b/service/src/msgs/cat_flag
index d29ceea..681e95b 100644
--- 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
index 2f77bfb..ac75bb4 100644
--- 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
index 140d08b..d8b9c98 100644
--- 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
index d29ceea..681e95b 100644
--- 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
index 2f77bfb..ac75bb4 100644
--- 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
index ce22c4e..8bd8448 100644
--- 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);
}