You are not logged in.

#1 2005-10-31 11:42:17

mr_brightside
Member
Registered: 2005-09-01
Posts: 78

urxvt line wrapping, or something similar?

Other than changing the font size and/or the terminal geometry, is there a parameter that can be used with urxvt to get decent spacing of overflowing lines? By this I mean, e.g. you look at a man page for a particular command, and the lines overflow onto the next row of characters, so they looks like

                [parameter]...d....e.....s......c.....r....i.....p.....t.....i....o.....n..............................................
............................

i.e. overflowing onto the next line. I loathe this, and wish for the overflow to be nicely tabbed in, if possible big_smile. I'm pretty sure this is impossible without making either of the aforementioned 2 changes, but if anyone's got a workaround, I'd love to hear it. Searching through the urxvt man page turned up nothing of use :cry:

Offline

#2 2005-10-31 16:23:43

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: urxvt line wrapping, or something similar?

Hmmm, can you post a screenshot of what you mean?  Just to check, get 'most' from pacman and "export PAGER=most" in your ~/.bashrc.  See if that changes man pages at all (besides making them colored).  I don't think I experience what you're talking about...

Offline

#3 2005-10-31 19:04:53

mr_brightside
Member
Registered: 2005-09-01
Posts: 78

Re: urxvt line wrapping, or something similar?

quick reply, i tried most and it gets rid of the overlap; now i get the overlap not being wrapped, but just continuing off the side of the terminal (i also get funky colouring in my console...). Dunno if that gives you any clues phrakture...

I'll do a screenie when I've got more time, but I'm rushing off to a dinner now. I'll edit this later with a link.

Offline

#4 2005-10-31 19:26:34

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: urxvt line wrapping, or something similar?

Sounds like it's most likely a terminfo issue - what does "echo $TERM" give you?

Offline

#5 2005-10-31 20:00:30

mr_brightside
Member
Registered: 2005-09-01
Posts: 78

Re: urxvt line wrapping, or something similar?

$TERM is currently set as xterm-color. Do I need to change it? I know changing it to urxvt won't help...

Offline

#6 2005-10-31 20:32:32

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: urxvt line wrapping, or something similar?

i think he means he wants wrapped lines to be tabbed in, for readability.

my man pages seem to be tabbed properly. i'm using urxvt, and my $TERM is set to rxvt-unicode.

mr_brightside, open up your ~/.Xdefaults file, and add this line:
urxvt*termName: rxvt-unicode

i'm not sure if that will fix your problem, but it will at least set the proper terminal for you smile

Offline

#7 2005-11-01 04:31:12

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: urxvt line wrapping, or something similar?

Actually, urxvt sets it's term type to "rxvt-unicode" automatically... I'd say get rid of every *termName and TERM= setting you can find.

Offline

#8 2005-11-01 08:38:41

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: urxvt line wrapping, or something similar?

phrakture wrote:

Actually, urxvt sets it's term type to "rxvt-unicode" automatically... I'd say get rid of every *termName and TERM= setting you can find.

hey, you're right. i don't think it always did, though, otherwise i would never have set it smile

Offline

#9 2005-11-01 11:49:12

mr_brightside
Member
Registered: 2005-09-01
Posts: 78

Re: urxvt line wrapping, or something similar?

I tried both your suggestions, but no difference, sadly... :cry:

Here's a couple of screens to show what I mean:

screenshot 1
screenshot 2

You can see the dramatic change when I've shifted the font size from Bitstream Vera Sans Mono 15 to 13.

Any other ideas guys?

Offline

#10 2005-11-01 19:06:50

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: urxvt line wrapping, or something similar?

Use the -c option:
man -c ls

To make man have that behavior permanently, add:
alias man='man -c'
to your ~/.bashrc

Offline

#11 2005-11-01 20:04:53

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: urxvt line wrapping, or something similar?

OK, I see what's wrong now.

You're using a non-standard console size. Man pages should automatically be formatted for the console size you are running. However, man doesn't keep track of the size while it's running... ie, if you run man, and then make the console narrower, you'll get line wrapping issues.

The screenshots you took were of vimtutor. Unfortunately for you, that's a preformatted text file, meaning that it doesn't care what size your console is.

To avoid this problem, run your console at a minimum width of 80 chars. Man can deal with it, but not everything can.

Offline

#12 2005-11-01 20:55:47

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: urxvt line wrapping, or something similar?

Typical console (for historic reasons) are 80 chars or 132 chars wide.  For the record.  And I agree with Mr Guitar (heh) - I could get the same results if I started man then resized the terminal, I think.

Offline

#13 2005-11-01 21:41:04

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: urxvt line wrapping, or something similar?

phrakture wrote:

I could get the same results if I started man then resized the terminal, I think.

Yes, that's what happen on my system.

Offline

#14 2005-11-02 00:33:20

mr_brightside
Member
Registered: 2005-09-01
Posts: 78

Re: urxvt line wrapping, or something similar?

Thanks a lot for the info guys, I'll make sure my terminal's above the threshold size from now on.
tongue

Offline

Board footer

Powered by FluxBB