From 52fc880014773f4406724d58a8bb9709bc0160a0 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 23 Dec 2010 16:27:29 +0000 Subject: Redirect help to online man page --- xxxterm.c | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'xxxterm.c') diff --git a/xxxterm.c b/xxxterm.c index b7758ce..9ab05d3 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -1001,14 +1001,28 @@ focus(struct tab *t, struct karg *args) int help(struct tab *t, struct karg *args) { + char *help; + if (t == NULL) errx(1, "help"); - webkit_web_view_load_string(t->wv, - "

XXXTerm

", - NULL, - NULL, - NULL); + + help = XT_DOCTYPE + "" + "" + "XXXterm" + "" + "" + "" + "XXXterm man pagehttp://opensource.conformal.com/" + "cgi-bin/man-cgi?xxxterm" + "" + "" + ; + + webkit_web_view_load_string(t->wv, help, NULL, NULL, NULL); return (0); } @@ -1451,13 +1465,13 @@ dlman_table_row(char *html, struct download *dl) gdouble progress; char cur_sz[FMT_SCALED_STRSIZE]; char tot_sz[FMT_SCALED_STRSIZE]; - char *xtp_prefix; + char *xtp_prefix; DNPRINTF(XT_D_DOWNLOAD, "%s: dl->id %d\n", __func__, dl->id); /* All actions wil take this form: * xxxt://class/seskey - */ + */ xtp_prefix = g_strdup_printf("%s%d/%s/", XT_XTP_STR, XT_XTP_DL, dl_session_key); -- cgit 1.4.1-2-gfad0