Re: [dev] tcvt: very useful for seeing more at once

2021-10-15 Thread Jochen Sprickerhof

* Markus Wichmann  [2021-10-14 20:24]:

On Thu, Oct 14, 2021 at 12:28:52PM -0400, Greg Reagle wrote:

FYI

Useful, but a lot of wasted screen space on my monitor:
man dwm

MUCH better!  I see the entire man page:
tcvt -c 4 man dwm



You know, if you were trying to shill the program, you might have done
better if you had provided the homepage. I searched for "tcvt", and all
I found was a Dutch site for something to do with VTOL, and a registry
for the TransCatheter Valve Treatment. I am reasonably sure you meant
neither.


I guess this:

https://subdivi.de/~helmut/tcvt/

Cheers Jochen


signature.asc
Description: PGP signature


Re: [dev] tcvt: very useful for seeing more at once

2021-10-15 Thread Страхиња Радић
On 21/10/15 07:03, Martin Tournoij wrote:
> Note that mandoc has a default of 78 if not set; GNU man (and maybe some
> others?) do indeed take up the full width by default, but mandoc won't take up
> more than 78.

I've mostly used GNU man, and from my briefly trying other versions of man I
didn't go into that much detail regarding whether they set MANWIDTH or not, so I
don't know.

In any case, navigating man pages using the default pager is easy enough.


signature.asc
Description: PGP signature


Re: [dev] tcvt: very useful for seeing more at once

2021-10-15 Thread Rudy Dellomas (dther)
On 21/10/15 06:23AM, Greg Reagle wrote:
> On Thu, Oct 14, 2021, at 9:56 PM, Rudy Dellomas (dther) wrote:
> > [...]
> > `tmux new ';' splitw -h man dwm`
> 
> No, this does not do what tcvt does.  Have you actually tried it?  Nor does 
> the MANWIDTH variable.
> 

You're right, sorry, my mistake. I realised after sending that that
`tcvt` creates one long terminal as opposed to 4 terminal panes. That's
useful behaviour that I'm surprised there isn't a tmux
command for. I could see myself using it to monitor logs and such.

I tried to whip something up using `copy-mode`, which allows the reading
of another pane's history using using the flags `-t` and `-s`. I
couldn't get it to work, but I'm sure it would be possible, if not easy,
to make some kind of special .tmuxrc. Using tmux rather than inventing a
new terminal emulator would be worth it (in my opinion) in preventing
strange printing behaviour.



Re: [dev] tcvt: very useful for seeing more at once

2021-10-15 Thread Greg Reagle
On Thu, Oct 14, 2021, at 9:56 PM, Rudy Dellomas (dther) wrote:
> `tcvt` is a python terminal multiplexer, which is a bit excessive for the
> purpose of saving terminal columns. Even forgoing that GNU man has
> $MANWIDTH, why not just use vertical split tmux? It's faster (written in
> C) and is much more versatile. This would do more or less the same:
>
> `tmux new ';' splitw -h man dwm`

No, this does not do what tcvt does.  Have you actually tried it?  Nor does the 
MANWIDTH variable.



Re: [dev] Tiny VMs and parsers

2021-10-15 Thread an2qzavok
buzzard.2 is a classic: https://www.ioccc.org/years.html#1992
Despite being an entry to a competition, the code itself is actually
barely obfuscated, just very terse, and it comes with pretty good
design docs.

Stack machines and forth are rather good in general. I started by
reading https://users.ece.cmu.edu/~koopman/stack_computers/
and then found https://forthworks.com/retro/ which vm is very
pleasant to look at and has interesting assembler.
You can also try looking at https://wiki.xxiivv.com/site/uxn.html

For something more high level, I myself am currently eyeing Urbit.
Though, there's plenty of crypto/NFT cultism, their core stuff is not
really developer friendly, and I don't like how their VM reimplements
half of the standard C library, so I wouldn't really endorse it.

>preferred non lisp, supporting infix notation
Eeeh, prefix/postfix notation makes things so much easier.
Just embrace it.



Re: [dev] tcvt: very useful for seeing more at once

2021-10-15 Thread Sebastian LaVine
On Thu Oct 14, 2021 at 9:56 PM EDT, Rudy Dellomas (dther) wrote:
> [...] why not just use vertical split tmux? It's faster (written in
> C) and is much more versatile. This would do more or less the same:
>
> `tmux new ';' splitw -h man dwm`

For me, this command splits into two shells, only one of which displays
the man page. The advantage of tcvt over this is that there are multiple
columns, all displaying the same man page (only one invocation of man),
each column as if it were attached the bottom of the previous one.