about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-07-28 00:49:53 +0100
committerJames Booth <boothj5@gmail.com>2012-07-28 00:49:53 +0100
commitee6ac9be264db31736bde40af0320fa9542e885f (patch)
tree4ff9c82ed8ed5572d967c3a7c42d9bb33ec880e7 /src
parent0d9c300bc47aa8a250cf63e233aa465ae584840c (diff)
downloadprofani-tty-ee6ac9be264db31736bde40af0320fa9542e885f.tar.gz
Simple tinyurl test
Diffstat (limited to 'src')
-rw-r--r--src/windows.c5
1 files changed, 5 insertions, 0 deletions
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);