konsole inverts $COLUMNS and $LINES when resized from vi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
konsole |
Unknown
|
Medium
|
|||
konsole (Ubuntu) |
Invalid
|
Low
|
Unassigned | ||
Bug Description
Binary package hint: kdebase
This simple command does a resize from vi (enlarge by 3 columns)
$ resize; vi /tmp/a +"set co=$(($COLUMNS + 3))" +:q; echo; resize
We see that Konsole is totaly messed-up, due to the fact that it inverts the number of lines and the number of columns.
To have a normal display agin, it is enougth to resize the windo with the mouse, then correct values are taken into account (and set as env vars).
-------------------
$ lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
$ konsole --version
Qt : 4.5.2
KDE : 4.3.2 (KDE 4.3.2)
Konsole : 2.3.2
------------------
ProblemType: Bug
Architecture: i386
Date: Sun Jul 25 15:05:06 2010
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: konsole 4:4.3.2-0ubuntu3
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=fr_FR.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: kdebase
Uname: Linux 2.6.31-22-generic i686
Changed in kdebase: | |
status: | Unknown → New |
Changed in kdebase: | |
importance: | Unknown → Medium |
Changed in kde-baseapps: | |
status: | New → Confirmed |
affects: | kde-baseapps → konsole |
affects: | kdebase (Ubuntu) → konsole (Ubuntu) |
Changed in konsole (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in konsole: | |
status: | Confirmed → Invalid |
Changed in konsole: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in konsole: | |
status: | Confirmed → Unknown |
Version: (using KDE 4.4.3)
OS: Linux
Installed from: Ubuntu Packages
Konsole 3 used to support the ANSI escape sequences to resize the window. Konsole 4 no longer does.
This for instance causes some Vim plug-ins to completely screw up the display.
How to reproduce:
Open Konsole;
Resize to, say, 140x60 with the mouse;
Type: echo -ne "\033[8;25;80t"
Expected result:
The terminal window is resized to 80 columns and 25 lines.
Actual result:
1/ The display gets screwed up.
2/ The window isn't resized.
The screw up part actually looks like Konsole tries to apply the resize, but with the width and height inverted! I.e. it seems to expect "ESC[8; width;height; t" instead of the correct "ESC[8; height; width;t" . So this at least should be easy to correct.
But the window should still resize itself accordingly.