From 44c2c76518fc6f1540698cdb78f7349f3b7537bf Mon Sep 17 00:00:00 2001 From: nishi Date: Fri, 2 Feb 2024 05:33:10 +0000 Subject: [PATCH] w3b git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@160 d27a3e52-49c5-7645-884c-6793ebffc270 --- Example/w3b/w3b.c | 4 ++++ W3Version.h.p | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Example/w3b/w3b.c b/Example/w3b/w3b.c index 7b01c35..9b7c232 100644 --- a/Example/w3b/w3b.c +++ b/Example/w3b/w3b.c @@ -29,6 +29,7 @@ HANDLE winstdout; #include #endif +char* allurl = NULL; int termw, termh; extern int strcasecmp(const char* s1, const char* s2); @@ -354,6 +355,7 @@ void render_site() { write(1, databuf + i, 1); } } + titlebuf = __W3_Concat("Raw: ", allurl); } char* seq = malloc(1024); sprintf(seq, "\x1b[1;%dH", termw - strlen(titlebuf != NULL ? titlebuf : "No title") - 1); @@ -398,6 +400,7 @@ int main(int argc, char** argv) { char c = 0; bool acc = false; if(url != NULL) { + allurl = url; access_site(url); acc = true; } @@ -434,6 +437,7 @@ int main(int argc, char** argv) { if(url != NULL) free(url); url = malloc(2049); scanf("%s", url); + allurl = url; acc = false; break; case 'd': diff --git a/W3Version.h.p b/W3Version.h.p index 4165329..0af4010 100644 --- a/W3Version.h.p +++ b/W3Version.h.p @@ -6,7 +6,7 @@ extern "C" { #endif -#define LIBW3_VERSION "2.2G" \ +#define LIBW3_VERSION "2.2H" \ SUFFIX #ifdef __cplusplus -- 2.43.0