diff options
author | Marco Peereboom <marco@conformal.com> | 2010-12-23 16:27:29 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2010-12-23 16:27:29 +0000 |
commit | 52fc880014773f4406724d58a8bb9709bc0160a0 (patch) | |
tree | 54505e0bb73dc3642808ebc056b13756b5830c5c /xxxterm.c | |
parent | a0c61c74f4add570134decd7ed733ed7536f7e4f (diff) | |
download | xombrero-52fc880014773f4406724d58a8bb9709bc0160a0.tar.gz |
Redirect help to online man page
Diffstat (limited to 'xxxterm.c')
-rw-r--r-- | xxxterm.c | 28 |
1 files changed, 21 insertions, 7 deletions
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, - "<html><body><h1>XXXTerm</h1></body></html>", - NULL, - NULL, - NULL); + + help = XT_DOCTYPE + "<html>" + "<head>" + "<title>XXXterm</title>" + "<meta http-equiv=\"REFRESH\" content=\"0;" + "url=http://opensource.conformal.com/cgi-bin/man-cgi?xxxterm\">" + "</head>" + "<body>" + "XXXterm man page<a href=\"http://opensource.conformal.com/" + "cgi-bin/man-cgi?xxxterm\">http://opensource.conformal.com/" + "cgi-bin/man-cgi?xxxterm</a>" + "</body>" + "</html>" + ; + + 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); |