aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorFranklin Wei <franklin@fwei.tk>2014-06-22 16:47:24 -0400
committerFranklin Wei <franklin@fwei.tk>2014-06-22 16:47:24 -0400
commit314aa1044b78ad58e0a9e53b38c91de8714b5922 (patch)
tree86c776eb080e882903df4a723e3be8daa786bc67 /util.c
parentcdbad1c7e4d89d8d11b34f625905b6949bba3fe7 (diff)
downloadwargames-server-314aa1044b78ad58e0a9e53b38c91de8714b5922.zip
wargames-server-314aa1044b78ad58e0a9e53b38c91de8714b5922.tar.gz
wargames-server-314aa1044b78ad58e0a9e53b38c91de8714b5922.tar.bz2
wargames-server-314aa1044b78ad58e0a9e53b38c91de8714b5922.tar.xz
Added map, improved logon garbage
Diffstat (limited to 'util.c')
-rw-r--r--util.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/util.c b/util.c
new file mode 100644
index 0000000..a02150e
--- /dev/null
+++ b/util.c
@@ -0,0 +1,13 @@
+#include <util.h>
+#include <curses.h>
+void print_string(const char* str) /* print string, slowly */
+{
+ int i=0;
+ while(str[i])
+ {
+ addch(str[i]);
+ usleep(SLEEP_TIME);
+ refresh();
+ ++i;
+ }
+}