Re: [dev] [surf] read from stdin

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Fri, 21 Mar 2025 09:23:28 +0100

> Hi,

Hi,

> > I thought it did have this feature. That’s wild.
> >
> > > On Mar 15, 2025, at 5:05 PM, Avid Seeker <avidseeker_AT_disroot.org>
> > > wrote:
> > >
> > > I was kinda surprised suckless surf doesn't have this feature.
> > >
> > > It's a surprisingly frequently asked [1] question and a
> > > straightforward way to render HTML.

I'm not sure what's surprising/wild about this,
that's the first time this comes up in ~15 years of surf existence,
apparently none of the other graphical web browsers support it either.

> I found some legit use cases for this, and since it was not very hard
> to achieve I wrote a small patch that consumes all the input and
> writes a temporary file that then it is hijacked into a file:// uri.
> It is just a proof of concept, and in case of being added would
> require also changes to the man page.
>
> There are some use cases where consuming the html
> from stdin can be convenient. The only possible
> way to achieve that is to write the full input
> stream and then convert it to a file:// uri.
> ---

What about /dev/stdin?
Received on Fri Mar 21 2025 - 09:23:28 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 21 2025 - 09:24:09 CET