konsole reports wrong window size (lines=24) to terminal programs

Bug #353483 reported by Skewray
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KDE Base
Fix Released
Medium
kdebase (Fedora)
Won't Fix
Medium
kdebase (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: konsole

9.04 install:

I have /bin/tcsh running as my shell in konsole. If I create a new konsole window larger than 24 lines and start up vim, sometimes vim will think that the window is only 24 lines tall. Resizing the konsole window appears to fix the problem. This bug did not exist in 8.10.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: konsole 4:4.2.2-0ubuntu1
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 SHELL=/bin/tcsh
SourcePackage: kdebase
Uname: Linux 2.6.28-11-generic x86_64

Revision history for this message
In , Jonathan (jonathan-redhat-bugs) wrote :

Description of problem:

When opening a new tab in a konsole window with dimensions 80x40, the new tab has LINES=24 set in the environment.

Version-Release number of selected component (if applicable):

kdebase-4.1.3-2.fc10.x86_64

How reproducible:

Always

Steps to Reproduce:

1. Close all konsole windows
2. Open new konsole window, resize to 80x40, close window.
3. Open konsole window then open a new tab
4. In the new tab run 'echo $LINES ; resize ; echo $LINES'

Actual results:

$ echo $LINES ; resize ; echo $LINES
24
COLUMNS=80;
LINES=40;
export COLUMNS LINES;
40

Expected results:

$ echo $LINES ; resize ; echo $LINES
40
COLUMNS=80;
LINES=40;
export COLUMNS LINES;
40

Additional info:

Note that after running resize, the environment changes to the correct value.
This only seems to happen if the window is 80x40, any other size, e.g. 81x40 or 80x39 the value of $LINES is correct in the new tab.

Revision history for this message
In , Rex (rex-redhat-bugs) wrote :

I'm currently testing kde-4.2(beta2), and can't reproduce this there, so hopefully that means

Revision history for this message
In , Jaroslav (jaroslav-redhat-bugs) wrote :

I can reproduce it in KDE 4.1 (kdebase-4.1.3-2.fc10.x86_64).

Revision history for this message
In , Jaroslav (jaroslav-redhat-bugs) wrote :

And it is still reproducible in latest SVN trunk (clean, no Fedora patches). Looks like this bug: https://bugs.kde.org/show_bug.cgi?id=176902 (Vim in tabbed shell truncated to 24 lines).

Revision history for this message
In , Steven (steven-redhat-bugs) wrote :

Thank you for the bug report. This issue needs to be addressed by the upstream developers. Please submit a report at http://bugs.kde.org. You are requested to add the bugzilla link here for tracking purposes. Please make sure the bug isn't already in the upstream bug tracker before filing it.

Revision history for this message
In , Jonathan (jonathan-redhat-bugs) wrote :

the external bug is already linked, see comment #3

Revision history for this message
In , Kevin (kevin-redhat-bugs) wrote :

Thanks, we will continue monitoring this upstream.

Revision history for this message
In , Kevin (kevin-redhat-bugs) wrote :

Reopening to track KDE 4.2 push (reference added to the KDE 4.2 update, so Bodhi should autoclose it).

Revision history for this message
In , Jonathan (jonathan-redhat-bugs) wrote :

Thanks for continuing to monitor this upstream, although everybody failed to notice that it's not fixed upstream, and certainly isn't fixed in the current release. Changing to CLOSED - UPSTREAM since that's a bit more accurate.

Revision history for this message
In , Kevin (kevin-redhat-bugs) wrote :

It got included in my mass close because it got added to the kde42 tracker as fixed in 4.2. Apparently somebody incorrectly claimed it was fixed in 4.2. I've taken it off that tracker. Sorry for the mess.

Revision history for this message
Skewray (ubuntu-skewray) wrote :
Revision history for this message
Richard Hansen (rhansen) wrote :

I have also experienced this bug, but it doesn't always happen. konsole remembers window size, so perhaps this bug is only triggered when the remembered window size is a particular value.

Changed in kdebase (Ubuntu):
status: New → Confirmed
Revision history for this message
Richard Hansen (rhansen) wrote :

I should note that I see it in bash (I don't use tcsh or vim).

Revision history for this message
Richard Hansen (rhansen) wrote :

This bug appears to have worsened in Karmic -- I see it almost every time I open a new konsole window or open a new tab inside an existing konsole window.

summary: - konsole + tcsh + vim has wrong window size
+ konsole reports wrong window size (columns, rows) to terminal programs
Revision history for this message
Jonathan Thomas (echidnaman) wrote : Re: konsole reports wrong window size (columns, rows) to terminal programs

Hi there!

Thanks for reporting this bug! Your bug seems to be a problem with the KDE program itself, and not with our KDE packages. While we appreciate your issue, it would be better if it was tracked at https://bugs.kde.org, so that the KDE developers can deal with this speedily and have direct communication with you as the reporter for more effective debugging.

Thanks!

Changed in kdebase (Ubuntu):
status: Confirmed → Invalid
Richard Hansen (rhansen)
Changed in kdebase:
importance: Undecided → Unknown
status: New → Unknown
Richard Hansen (rhansen)
summary: - konsole reports wrong window size (columns, rows) to terminal programs
+ konsole reports wrong window size (rows=24) to terminal programs
summary: - konsole reports wrong window size (rows=24) to terminal programs
+ konsole reports wrong window size (lines=24) to terminal programs
Revision history for this message
Skewray (ubuntu-skewray) wrote :

I originally submitted this bug. I am now running 9.10, and the problem has not appeared. It disappeared without my doing anything about it while I was still running 9.04. I don't know why.

Revision history for this message
Richard Hansen (rhansen) wrote :

According to the upstream bug report, it only happens if new tabs/windows start at 80x40 and it only affects programs that use the alternate screen buffer (vim, less, screen, etc.). If the new tab/window starts at 80x39, 80x41, 81x40, etc., then it's not a problem. That matches my experience.

Changed in kdebase:
status: Unknown → Confirmed
Revision history for this message
In , Gabriel (gabriel-redhat-bugs) wrote :

this bug happen with kde SC 4.4 kdebase-4.4.0-3.fc12.i686 but not with previous KDE SC RC ( 4.3.98, 4.3.5)

sometimes new created tabs are fine ( with LINES=40) and sometimes are not.(LINES=24)

Gabriel

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

it seems that konsole swaps informations of COLUMNS and LINES.
i reported this at https://bugs.kde.org/show_bug.cgi?id=176902#c15

Revision history for this message
In , Alain (alain-redhat-bugs) wrote :

from ubuntu , Konsole swaps COLUMNS and LINES , when a resize is done from inside a program (eg vi)

The following command line totally messes-up konsole until it is resized with mouse !

$ resize; vi /tmp/a +"set co=$(($COLUMNS + 3))" +:q; resize

Changed in kdebase:
importance: Unknown → Medium
Changed in kde-baseapps:
status: Confirmed → Fix Released
Changed in kdebase (Fedora):
importance: Unknown → Medium
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.