You are not logged in.

#1 2014-01-04 15:12:39

RobotGymnast
Member
Registered: 2013-06-10
Posts: 24

Line wrapping in resized terminal

When I resize my xfce4-terminal, the point at which a line wraps remains the same. How do I get it to always wrap at the edge of the window?

Thanks

Offline

#2 2014-01-04 20:46:46

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: Line wrapping in resized terminal

xfce4-terminal uses vte to draw the actual terminal emulator and vte does not support line wrapping. However, vte3 does so you could try another terminal. I know that termite will re-wrap lines and gnome-terminal panthenon-terminal, roxterm, and sakura should also work.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#3 2014-01-04 21:00:53

RobotGymnast
Member
Registered: 2013-06-10
Posts: 24

Re: Line wrapping in resized terminal

When you say "does not support line wrapping", what do you mean? It IS wrapping my lines, just at 80 chars instead of at the window border. I've been using xfce4-terminal for over a year, I'm almost certain I've had it wrap at the window edge instead of at 80 chars before.. Of course, I could be crazy. I'll look into other terminals - I've been trying to avoid all the gnome dependencies.

Last edited by RobotGymnast (2014-01-04 21:01:04)

Offline

#4 2014-01-04 21:30:22

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Line wrapping in resized terminal

I like the urxvt terminal, which supports line wrapping as Stebalien described.
Urxvt has no gnome dependencies and it does not require vte3.
Another thing is that some terminal programs have their own implementation for performing line wrapping. For example "man" does its wrapping with respect to word borders. This problem is described here:
http://unix.stackexchange.com/questions … on-changes

Offline

#5 2014-01-04 21:34:16

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: Line wrapping in resized terminal

Oh. Sorry, I thought you wanted it to reflow existing lines on resize. I can't reproduce the bug here. Can you test a clean bash profile (no bashrc modifications)?


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#6 2014-01-04 22:26:31

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Line wrapping in resized terminal

See if 'checkwinsize' is on or off by using the 'shopt' command with no arguments or with a grep added:

$ shopt | grep 'checkw'

You can turn this option on in your ~/.bashrc with:

shopt -s checkwinsize

I don't know why checkwinsize would suddenly be turned off for you.  You aren't remotely logging in to the computer, are you?

Offline

#7 2014-01-09 20:50:41

xstaticxgpx
Member
Registered: 2008-10-22
Posts: 48

Re: Line wrapping in resized terminal

I've been using xfce4-terminal for years and I've never had an issue but recently this thing is driving me crazy. Whenever I resize my terminal the line wrap breaks and starts overwriting the same line repeatedly.

At default size, it wraps properly...

edit* hopefully this makes it clearer,

<standard size>
$  dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
dddddddddddddddddddddddddddddddddddddd^C
<expanded or maximized>
$  
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd <loops forever on the same line>

and if I reload bash after expanding/maximizing, the line wrapping works properly again. Something has been broken here somewhere... I've never had to specify any shopt option before but I've added checkwinsize to my bashrc and it makes no difference

Last edited by xstaticxgpx (2014-01-09 20:58:26)

Offline

#8 2014-01-09 21:10:30

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Line wrapping in resized terminal

This happens to me too, but only rarely; maybe twice a month on a machine I use 5 days a week. I've just learned to deal with it.

A workaround is to resize, open new tab, close old tab.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB