<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=7005&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Textmode/Terminal Browser]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=7005</link>
		<description><![CDATA[The most recent posts in Textmode/Terminal Browser.]]></description>
		<lastBuildDate>Mon, 10 Mar 2025 08:47:30 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Textmode/Terminal Browser]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=54846#p54846</link>
			<description><![CDATA[<h5>SVG?</h5><p>In an XTerm?</p><p>I read about &quot;something something SVG&quot; in Chawan before, but only today I tried it:</p><p><span class="postimg"><img src="https://web.archive.org/web/20250310083326if_/https://yeti.tilde.institute/tmp/chawan/20250310-083030__chawan__mathsvg.png" alt="20250310-083030__chawan__mathsvg.png" /></span></p>]]></description>
			<author><![CDATA[dummy@example.com (yeti)]]></author>
			<pubDate>Mon, 10 Mar 2025 08:47:30 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=54846#p54846</guid>
		</item>
		<item>
			<title><![CDATA[Re: Textmode/Terminal Browser]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=54307#p54307</link>
			<description><![CDATA[<p>This looks great. Thanks for posting it.</p>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Sat, 25 Jan 2025 20:02:49 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=54307#p54307</guid>
		</item>
		<item>
			<title><![CDATA[Re: Textmode/Terminal Browser]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=54300#p54300</link>
			<description><![CDATA[<p><strong>Google Image Search?</strong></p><p>In an XTerm?</p><p><span class="postimg"><img src="https://web.archive.org/web/20250205165212if_/https://yeti.tilde.institute/tmp/chawan/20250125-002559__chawan__google_images_search.png" alt="20250125-002559__chawan__google_images_search.png" /></span></p><p>Would you believe this without screenshot?</p>]]></description>
			<author><![CDATA[dummy@example.com (yeti)]]></author>
			<pubDate>Sat, 25 Jan 2025 00:38:57 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=54300#p54300</guid>
		</item>
		<item>
			<title><![CDATA[Re: Textmode/Terminal Browser]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53922#p53922</link>
			<description><![CDATA[<h5>Gitea?&#160; Really?</h5><div class="codebox"><pre><code>[[siteconf]]
host = &quot;tildegit.org&quot;
cookie = true
scripting = true</code></pre></div><p><span class="postimg"><img src="https://web.archive.org/web/20250106153946if_/https://yeti.tilde.institute/tmp/chawan/20250106-153524__chawan__gitea_at_tildegit.png" alt="20250106-153524__chawan__gitea_at_tildegit.png" /></span></p><p>Login works.<br />Colourcancer danger zone.<br />Maybe this is worth some fine tuning and a repo to play with instead of risking to screw up the other ones.</p>]]></description>
			<author><![CDATA[dummy@example.com (yeti)]]></author>
			<pubDate>Mon, 06 Jan 2025 16:54:33 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53922#p53922</guid>
		</item>
		<item>
			<title><![CDATA[Re: Textmode/Terminal Browser]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53917#p53917</link>
			<description><![CDATA[<h5>Unfinished</h5><p>..., but it looks surprisingly simple to add a protocol:</p><div class="codebox"><pre><code>~$ cat .config/chawan/cgi-bin/nex
#!/bin/sh

printf &#039;Cha-Control: Connected\r\n&#039;
printf &#039;Status: 200\r\n&#039; # ~ HTTP OK
printf &#039;Cha-Control: ControlDone\r\n&#039;
printf &#039;\r\n&#039;

printf &#039;%s\n&#039; &quot;$MAPPED_URI_PATH&quot; \
| nc &quot;$MAPPED_URI_HOST&quot; &quot;${MAPPED_URI_PORT:-1900}&quot;

##
## To do:
## - HTML-ify as &lt;pre&gt;...&lt;/pre&gt;
## - links --&gt; active
##
~$ cat .config/chawan/urimethodmap 
nex: /cgi-bin/nex
~$ cha nex://nightfall.city/nex/info/specification.txt</code></pre></div><div class="codebox"><pre class="vscroll"><code>                           THE NEX PROTOCOL                                    
                                                                               
Nex is a simple internet protocol designed for distributed document            
retrieval. It&#039;s inspired by gopher and gemini.                                 
                                                                               
Servers should listen on port 1900. Afterall, night falls at 7pm!              
Users connect and send the server a path which may be empty. The               
server responds with text or binary data and close the connection. No          
state is retained.                                                             
                                                                               
Document content is returned as-is. Directory content use plain text           
with a special syntax where each line beginning by &quot;=&gt; &quot; followed by a         
URL is considred a link. The URL can be absolute or relative. Here are         
examples:                                                                      
                                                                               
=&gt; nex://my-site.net                                                           
=&gt; about.txt                                                                   
=&gt; ../nexlog/                                                                  
                                                                               
Clients can assume that an empty path or a path finishing with / is a          
directory. A document should be displayed based on the path&#039;s file             
extension. When there is no extension, plain text is assumed.                  
                                                                               
Here is an example telnet session:                                             
telnet nex.nightfall.city 1900                                                 
hello-world.txt                                                                
                                                                               
Hello world!                                                                   </code></pre></div><p>\o/</p><p>Which surprise will be next?</p>]]></description>
			<author><![CDATA[dummy@example.com (yeti)]]></author>
			<pubDate>Mon, 06 Jan 2025 08:09:36 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53917#p53917</guid>
		</item>
		<item>
			<title><![CDATA[Re: Textmode/Terminal Browser]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53895#p53895</link>
			<description><![CDATA[<h5>I2P works.&#160; <span class="bbc">\o/</span></h5><p><span class="postimg"><img src="https://web.archive.org/web/20250105073731if_/https://yeti.tilde.institute/tmp/chawan/20250105-073448__chawan__I2P_works.png" alt="20250105-073448__chawan__I2P_works.png" /></span></p><p>... still fighting with <span class="bbc">*.onion</span> addresses.</p>]]></description>
			<author><![CDATA[dummy@example.com (yeti)]]></author>
			<pubDate>Sun, 05 Jan 2025 07:49:19 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53895#p53895</guid>
		</item>
		<item>
			<title><![CDATA[Re: Textmode/Terminal Browser]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53885#p53885</link>
			<description><![CDATA[<h5>Testing login and quick reply.</h5><p>Login works after accepting cookies (I&#039;ll do that with site specific rules for now) and clicking into the editarea opens my default text editor.&#160; This is (N)VI on my ARM guinea pigs.</p><p>Well, I definitely had browsers before that were far less fun than this one.&#160; <span class="bbc">\o/</span></p><p>Written on <del>my Android phone</del> <ins>a Pi2 using Chawan over SSH in XTerm</ins>.</p><p>EDIT: And &quot;go back&quot; looks like needing JS.</p>]]></description>
			<author><![CDATA[dummy@example.com (yeti)]]></author>
			<pubDate>Sat, 04 Jan 2025 18:00:33 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53885#p53885</guid>
		</item>
		<item>
			<title><![CDATA[Re: Textmode/Terminal Browser]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53883#p53883</link>
			<description><![CDATA[<div class="codebox"><pre><code>~$ ls /opt/chawan/libexec/chawan/
ansi2html  dirlist2html  gopher2html  md2html  uri2html  urlenc
cgi-bin    gmi2html      img2html     nc       urldec
~$ ls /opt/chawan/libexec/chawan/cgi-bin/
about   chabookmark  finger  gemini  http  man      resize  sixel    stbi
canvas  file         ftp     gopher  jebp  nanosvg  sftp    spartan</code></pre></div><p>There is much more under the hood than I mentioned.&#160; Like W3M it plays (man)pager too, I assume <span class="bbc">dirlist2html</span> will mimic W3M&#039;s file system viewer and seeing the smolweb protocols and even more being supported is really nice too.&#160; I think its protocol diversity is in the same class as Elinks and Dillo while the overlap not completely is 1:1 to them.&#160; E.g. Elinks currently is the only browser supporting <span class="bbc">fsp:</span> I know of.</p><p>EDIT20240105<br />I mentioned the GUI browser Dillo side by side to Elinks because of its protocol diversity and I typically mention W3M and Emacs in the same context too.&#160; Dillo is so easy to extend, that I could take it&#039;s Spartan plugin and turn it into one for the Nex protocoll easily.<br />/EDIT20240105</p><p>I&#039;ve no idea what <span class="bbc">nanosvg</span> is expected to do, my only own webpage with embedded SVG code did not render the graphic.</p><p>Meanwhile I&#039;ve built it on Devuan5/armhf, NetBSD9.1/amd64, NetBSD9.3/amd64, NetBSD10.0/amd64 and OpenBSD7.3/amd64.&#160; The Devuan5/armel build still crawls on a Pi1.&#160; It works in most cases for all protocols I tested and as man viewer, but <span class="bbc">http:</span> and <span class="bbc">https:</span> refuse to work on the NetBSDs while the rest works.&#160; As usual, answers will find me, so I&#039;m patient with that situation.&#160; OmmmMMMmmm...&#160; ;-)</p><p>It gives me one wide smile after the other:</p><p><span class="postimg"><img src="https://web.archive.org/web/20250104151550if_/https://yeti.tilde.institute/tmp/chawan/20250104-151324__chawan__sooo_cute.png" alt="20250104-151324__chawan__sooo_cute.png" /></span></p><p>And I had a crash with <span class="bbc">postbank.de</span> which probably has a gigantic amount of JS in its page.&#160; Without JS being enabled it rendered and looked halfway familiar.&#160; Lots of other JS-heavy pages don&#039;t work, but I care more for my own cheat sheets and outsourced reminders written in Orgmode/Org-Babel and for those Chawan is the first textmode/terminal browser that renders this stuff without butchering the layout:</p><p><span class="postimg"><img src="https://web.archive.org/web/20250104152517if_/https://yeti.tilde.institute/tmp/chawan/20250104-152317__chawan__orgbabel_notes.png" alt="20250104-152317__chawan__orgbabel_notes.png" /></span></p><p>I expect to discover more positive surprises.</p>]]></description>
			<author><![CDATA[dummy@example.com (yeti)]]></author>
			<pubDate>Sat, 04 Jan 2025 14:52:23 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53883#p53883</guid>
		</item>
		<item>
			<title><![CDATA[Re: Textmode/Terminal Browser]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53882#p53882</link>
			<description><![CDATA[<p>Looks interesting, most text browsers are difficult to navigate with, I have found, but this is looking like we could do away with a GUI altogether.</p>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Sat, 04 Jan 2025 14:10:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53882#p53882</guid>
		</item>
		<item>
			<title><![CDATA[Textmode/Terminal Browser]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53880#p53880</link>
			<description><![CDATA[<p>Probably worth watching:</p><h5>Chawan - a web browser for your terminal</h5><p><a href="https://sr.ht/~bptato/chawan/" rel="nofollow">https://sr.ht/~bptato/chawan/</a></p><p>My build of Nim-2.2.0 as <span class="bbc">/opt/nim</span> &quot;bonsai&quot; on Devuan5 just has finished, but I&#039;ve not built Chawan on Linux with it yet.&#160; Strangely on the NetBSD9 I tried it on, it does build, but does not work correctly.&#160; So here some snapshots of it running on OpenBSD7 viewed via SSH in an XTerm on Linux:</p><p><span class="postimg"><img src="https://web.archive.org/web/20250104105733if_/https://yeti.tilde.institute/tmp/chawan/20250103-201720__chawan__home_sweet_home.png" alt="20250103-201720__chawan__home_sweet_home.png" /></span></p><p><span class="postimg"><img src="https://web.archive.org/web/20250104110122if_/https://yeti.tilde.institute/tmp/chawan/20250103-175931__chawan__in_xterm.png" alt="20250103-175931__chawan__in_xterm.png" /></span></p><p><span class="postimg"><img src="https://web.archive.org/web/20250104110329if_/https://yeti.tilde.institute/tmp/chawan/20250103-205007__chawan__wikipedia__double-plus-better.png" alt="20250103-205007__chawan__wikipedia__double-plus-better.png" /></span></p><p>I&#039;m probably still far from having it configured correctly (and optimally).</p>]]></description>
			<author><![CDATA[dummy@example.com (yeti)]]></author>
			<pubDate>Sat, 04 Jan 2025 11:15:37 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53880#p53880</guid>
		</item>
	</channel>
</rss>
