[Toybox] pending/man roadmap

Rob Landley rob at landley.net
Thu Aug 27 14:59:28 UTC 2026


On 8/26/26 21:47, Avery Terrel via Toybox wrote:
> I noticed most `troff` commands in `man` are currently stubbed out. Is
> it a goal to interpret them further, or automatically pipe `man` to
> `more` when writing to a tty?

There was a toys/pending/man.c but when I tried to engage with it long 
ago but multiple other people kept changing it under me, and after the 
third time I deleted all my changes to apply theirs I stopped looking at 
it until it stopped moving.

Then there was a pandemic and I forgot about it entirely. If this is an 
expression of interest I can go look.

Automatically piping things to less when writing to a tty is fine, lots 
of commands do that (including everything in git). It's a NOP in 
pipelines and you can | cat yourself to disable it when you want to.

Turns out "less" is slightly tricksy to write if you want to properly 
support UTF8 and preserve color changes, but the big hiccup there is 
figuring out how to TEST it. Alas the txpect infrastructure I did in 
testing is insufficient, I need a toys/example/faketty.c that creates 
its own pty which can simulate a specific width and height of a terminal 
and report on the cursor position at the end, and _that_ is basically 
the plumbing of "screen". I've got a start in "watch" but it needs more 
work, and for me to come up with a design for how to get the metadata 
info into and out of it while allowing the raw text output through so 
the test has something to evaluate.

Rob

I wanted to do "more" as a subset of "less" but it turns out their 
behavior is very different. I have at least one old blog entry on that 
but it's surprisingly hard to think what to grep for to find it...


More information about the Toybox mailing list