From 7c3ee246fb626ab09b3b05055efdfaf3a00e60e7 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 23 Jun 2014 17:04:30 -0400 Subject: Fixed more bugs, added more features :) --- util.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'util.c') diff --git a/util.c b/util.c index 6ca83fe..a3c336b 100644 --- a/util.c +++ b/util.c @@ -13,10 +13,19 @@ void allLower(char* str) } void print_string(const char* str) /* print string, slowly */ { + int window_height; + int junk; + getmaxyx(stdscr, window_height, junk); int i=0; while(str[i]) { addch(str[i]); + int cursx, cursy; + getyx(stdscr, cursy, cursx); + if(cursy==window_height) + { + scroll(stdscr); + } usleep(SLEEP_TIME); refresh(); ++i; -- cgit v1.1