From 2df4d322fe19f6eb7e1901638fd4adedd9bdc1ab Mon Sep 17 00:00:00 2001 From: nishi Date: Mon, 29 Jan 2024 00:19:14 +0000 Subject: [PATCH] w3b render_site git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@126 d27a3e52-49c5-7645-884c-6793ebffc270 --- Example/w3b/w3b.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Example/w3b/w3b.c b/Example/w3b/w3b.c index d01f120..6efda10 100644 --- a/Example/w3b/w3b.c +++ b/Example/w3b/w3b.c @@ -93,6 +93,9 @@ void access_site(const char* url) { } } +void render_site(){ +} + int main(int argc, char** argv) { int i; databuf = NULL; @@ -130,8 +133,14 @@ int main(int argc, char** argv) { mode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING; SetConsoleMode(winstdout, mode); #endif + bool rendered = false; clear_console(); while(true) { /* Loop */ + if(!rendered){ + clear_console(); + render_site(); + rendered = true; + } if(c != '\n' && c != '\r') { printf("(O)pen, (Q)uit"); printf("? "); @@ -159,6 +168,7 @@ int main(int argc, char** argv) { if(!acc && url != NULL) { access_site(url); acc = true; + rendered = false; } } printf("\n"); -- 2.43.0