From 51c4778f2a6532b3661ba3fc15a9386086dee83d Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 22 Jun 2014 11:18:39 -0400 Subject: Added Help text --- joshua.c | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'joshua.c') diff --git a/joshua.c b/joshua.c index 34b8cf6..7a3ffe5 100644 --- a/joshua.c +++ b/joshua.c @@ -1,7 +1,7 @@ #include #include #include -#define RANDOM_LOOPS 3 +#define RANDOM_TIME 1 #define SLEEP_TIME 50000 void allLower(char* str) { @@ -17,6 +17,7 @@ void print_string(const char* str) /* print string, slowly */ { addch(str[i]); usleep(SLEEP_TIME); + beep(); refresh(); ++i; } @@ -24,14 +25,16 @@ void print_string(const char* str) /* print string, slowly */ void random_stuff(void) /* print random junk on the screen for about 3 seconds */ { int maxx, maxy; + int stop=time(0)+RANDOM_TIME; getmaxyx(stdscr, maxy, maxx); - for(int i=0;i