You are not logged in.

#1 2013-11-24 17:26:13

lazork
Member
Registered: 2008-11-12
Posts: 30

[SOLVED] gnome-terminal and line wrapping bug after resizing

If I open a terminal and resize or maximize it (it won't happen if the size is decreased), commands won't properly wrap at the end of the increased width, but will instead return at the beginning of the same line after 80 characters.
Basically I get something like this:

http://i.imgur.com/7Zb9Vzd.gif

The output of the command however occupies the whole window correctly; this happens only to what I'm writing (and it is completely inconsistent: it often happens, but not always).
This happens even with the default ~/.bashrc and /etc/bash.bashrc.
Is there something I can check or do?


-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by lazork (2015-02-06 22:03:21)

Offline

#2 2013-12-16 20:45:55

raincomplex
Member
Registered: 2013-12-16
Posts: 1

Re: [SOLVED] gnome-terminal and line wrapping bug after resizing

I'm getting this too. It happens most of the time but not always. It's very similar to this problem except it happens even with PS1 set to the empty string. I use a tiling wm, so my windows are automatically sized larger than a fresh terminal would be normally. Looking at my pacman.log and the date of your post, I'm going to guess that if it's a gnome-terminal bug, it was introduced by 3.10.2.

Offline

#3 2013-12-16 22:14:11

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 714

Re: [SOLVED] gnome-terminal and line wrapping bug after resizing

I saw a news item relevant to this in the last few days: http://www.phoronix.com/scan.php?page=n … px=MTU0MDE

Offline

#4 2015-02-06 22:02:29

lazork
Member
Registered: 2008-11-12
Posts: 30

Re: [SOLVED] gnome-terminal and line wrapping bug after resizing

I know I posted this problem a long time ago, but, since I finally found a solution, I wanted to share it in case anyone else stumbles upon this.
http://unix.stackexchange.com/questions … -correctly
Basically, if

$ shopt | grep checkwinsize

returns

checkwinsize    off

then you need to set (for example by adding it to your .bashrc):

$ shopt -s checkwinsize

Offline

Board footer

Powered by FluxBB