From ee6ac9be264db31736bde40af0320fa9542e885f Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 28 Jul 2012 00:49:53 +0100 Subject: [PATCH] Simple tinyurl test --- src/windows.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/windows.c b/src/windows.c index a28bdbc6..1d52fa64 100644 --- a/src/windows.c +++ b/src/windows.c @@ -34,6 +34,7 @@ #include "util.h" #include "contact.h" #include "preferences.h" +#include "tinyurl.h" #define CONS_WIN_TITLE "_cons" #define PAD_SIZE 200 @@ -517,6 +518,10 @@ _create_windows(void) wprintw(_cons_win, "\n"); _win_show_time(_cons_win); wprintw(_cons_win, "Type '/help' to get started.\n"); + + tinyurl_init(); + char *url = tinyurl_get("http://www.london2012.com/schedule-and-results/"); + cons_show(url); } prefresh(_cons_win, 0, 0, 1, 0, rows-3, cols-1);