1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Simple tinyurl test

This commit is contained in:
James Booth 2012-07-28 00:49:53 +01:00
parent 0d9c300bc4
commit ee6ac9be26

View File

@ -34,6 +34,7 @@
#include "util.h" #include "util.h"
#include "contact.h" #include "contact.h"
#include "preferences.h" #include "preferences.h"
#include "tinyurl.h"
#define CONS_WIN_TITLE "_cons" #define CONS_WIN_TITLE "_cons"
#define PAD_SIZE 200 #define PAD_SIZE 200
@ -517,6 +518,10 @@ _create_windows(void)
wprintw(_cons_win, "\n"); wprintw(_cons_win, "\n");
_win_show_time(_cons_win); _win_show_time(_cons_win);
wprintw(_cons_win, "Type '/help' to get started.\n"); 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); prefresh(_cons_win, 0, 0, 1, 0, rows-3, cols-1);