aboutsummaryrefslogtreecommitdiff
path: root/loading.h
diff options
context:
space:
mode:
authorBen Burwell <bburwell1@gmail.com>2013-04-29 16:13:34 -0400
committerBen Burwell <bburwell1@gmail.com>2013-04-29 16:13:34 -0400
commitca9e46c937e75df43d2f80f0d957fabb07892c29 (patch)
tree0d8ae2bc1d1e3e248c746586a5daf7cb58a79463 /loading.h
Init
Diffstat (limited to 'loading.h')
-rw-r--r--loading.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/loading.h b/loading.h
new file mode 100644
index 0000000..6aa43de
--- /dev/null
+++ b/loading.h
@@ -0,0 +1,24 @@
+/**
+ * Localchat
+ * Ben Burwell
+ *
+ * Loading display
+ */
+
+void loading() {
+
+ printf(" Loading... 3");
+ fflush(stdout);
+ sleep(1);
+
+ printf("\r Loading... 2");
+ fflush(stdout);
+ sleep(1);
+
+ printf("\r Loading... 1");
+ fflush(stdout);
+ sleep(1);
+
+ printf("\r Loading... Done.\n\n");
+
+} \ No newline at end of file