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] 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.



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

2021-10-14 Thread Rudy Dellomas (dther)
On 21/10/14 12:28PM, 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
> 

`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`




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

2021-10-14 Thread Greg Reagle
On Thu, Oct 14, 2021, at 7:20 PM, Martin Tournoij wrote:
> I wonder if there's a way to do the same with tmux 樂

I had the same question.  Let me/us know if you find out.

> Also suspect you can get pretty close with far less code and curses 
> shizzle. I'll have to try some stuff later.

Again, let me/us know.  I see no alternative to tcvt for the same 
functionality.  Vim and Emacs can do it, but only within vim and emacs.



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

2021-10-14 Thread Martin Tournoij
On Fri, Oct 15, 2021, at 03:55, Greg Reagle wrote:
> On Thu, Oct 14, 2021, at 2:24 PM, Markus Wichmann wrote:
>> 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
>
> Shill--I wish.  I get no money from people using it. Just trying to be 
> helpful.
>   http://subdivi.de/~helmut/tcvt/

Ah, this seems nice; unfortunately it wreaks havoc on my (st) terminal; it 
resets some colours, and many basic keys don't work (e.g. ^U, arrow keys, 
function keys), etc. It's not very functional.

Terminals are always fun.

I wonder if there's a way to do the same with tmux 樂 In Vim you can use :vsplit 
and :scrollbind, but that works on in, well, Vim.

Also suspect you can get pretty close with far less code and curses shizzle. 
I'll have to try some stuff later.



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

2021-10-14 Thread Martin Tournoij
On Fri, Oct 15, 2021, at 04:24, Страхиња Радић wrote:
> On 21/10/14 12:28, Greg Reagle wrote:
>> Useful, but a lot of wasted screen space on my monitor:
>> man dwm
>
> If MANWIDTH is unset (default), man page will take all of the available width 
> of
> the terminal, unless:

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.

Actually, mandoc doesn't even look at MANWIDTH; you need to use "man -Owidth=20 
page" or "man -Owidth=$COLUMNS page". I'm not entirely sure if there's a way to 
make it behave like GNU man – I much prefer the mandoc behaviour myself as long 
lines are so hard to read (especially since MANWIDTH is a "hard width" and it 
won't shrink if your terminal is too small; at least, it didn't last time I 
used it but that was years ago).

But no idea if the OP is using mandoc or GNU man or anything else.



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

2021-10-14 Thread Greg Reagle
On Thu, Oct 14, 2021, at 2:24 PM, Markus Wichmann wrote:
> 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

Shill--I wish.  I get no money from people using it. Just trying to be helpful.
  http://subdivi.de/~helmut/tcvt/



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

2021-10-14 Thread Страхиња Радић
On 21/10/14 12:28, Greg Reagle wrote:
> Useful, but a lot of wasted screen space on my monitor:
> man dwm

If MANWIDTH is unset (default), man page will take all of the available width of
the terminal, unless:

- COLUMNS is also somehow unset (it is set by most sane shells by default), or
- ioctl(2) is somehow nonfunctional, or
- you are not using a tilling wm, or
- you are using a floating terminal, in which case switching it back to full
  screen should use up more of the screen space.

I have no idea what tcvt is or does. Since you haven't provided any details on
that program(?)/script(?), I can only guess.


signature.asc
Description: PGP signature


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

2021-10-14 Thread Markus Wichmann
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.

Ciao,
Markus



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

2021-10-14 Thread Greg Reagle
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