A!ex– Thanks! That's perfect. Convenience isn't really an issue, since I only want it for occasional debugging.
–Shaughan openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c If I replace all the old parts in my PC with new ones, will it turn into a Greek ship? https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts …if you're just gonna end up in Arizona, then being dead isn't that much of a downgrade. "Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3. "I do not pretend here to develop a theory which is _universally_ valid, but it may at least have some galactic relevance." Paul Krugman, "The theory of interstellar trade," 1978, p. 2. http://fermatslibrary.com/s/the-theory-of-interstellar-trade If war was arithmetic, mathematicians would rule the world. Littlefinger, _Game of Thrones, Season 2, Episode 4 Not everybody benefits from a misspent youth. Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28. Sent from ProtonMail, encrypted email based in Switzerland. On Sunday, November 5th, 2023 at 9:26 AM, Alexander Burger <picolisp@software-lab.de> wrote: > Hi Shaughan, > > > Is there a way to view the generated html within pilbox? > > > Yes, though a bit tricky, as this is not built-in. > > > Get a PTY (pseudo TTY) to the REPL in your PilBox, as described in: > > https://picolisp-explored.com/mobile-app-development-in-picolisp-v-getting-a-remote-shell-to-your-pc > > > Then temporarily modify the 'http' function in-memory (without actually > modifying the source code!!): > > : (v http) > > Move down to line 49 > > (out *HtSock > > change it to e.g. > > (out "src.html" > > and type > > :w > > Now 'http' is modified in-memory. No need to exit Vip yet. > > > In the PILBox GUI, click on something where you want to see the source. As the > output is written to the file instead of the WebView component, you will see > no > reaction at all in the GUI. > > > Now, in Vip in the PTY REPL, undo the change by typing "u" twice, an exit Vip > with > > :x > > Now the PilBox GUI works normally again. > > > You can look at the generated file with > > : (vi "src.html") > > > or get it to the shell (Termux or PC) where you started 'pty' from > > : (pbGet "src.html") > > > This is just a quick shot, a prove of concept. The whole process could > probably > be made more convenient. > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe