[Konsole-devel] [Bug 173999] konsole doesn't report size to TIOCGWINSZ ioctl for ncurses applications

Graeme Hewson ghewson at wormhole.me.uk
Sat Jul 10 18:22:13 UTC 2010


https://bugs.kde.org/show_bug.cgi?id=173999


Graeme Hewson <ghewson at wormhole.me.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ghewson at wormhole.me.uk




--- Comment #7 from Graeme Hewson <ghewson wormhole me uk>  2010-07-10 20:22:10 ---
I see this bug using Kubuntu 10.04 (Lucid Lynx) and Konsole 2.4.2.

I used the Special Applications Settings dialogue to set the default Konsole
size to 80 columns by 40 rows. With the default Nouveau graphics driver for
nVidia supplied with Kubuntu, on my 1680x1050 pixel monitor, I specified
590,688.

When subsequently starting Konsole, the bug was intermittent. It seemed the
first time I started Konsole, and sometimes after that, "stty -a" showed the
required "rows 40; columns 80;". Otherwise, it was "rows 0; columns 0;".

Setting a lower default height (such as 35 rows), the bug (if it's the same
bug) changed, but was still intermittent. Mostly "stty -a" showed the required
size, but sometimes it showed "rows 40; columns 80;". Wrong height!

I've now installed the "NVIDIA accelerated graphics driver (version current)",
and the bug is still present, but perhaps a little more consistent. Using the
previous Special Applications Settings value of 590,688, "stty -a" shows "rows
43; columns 80;", and so it does every time I start Konsole. Setting rows under
40, again, stty shows the correct values. With 40 rows (setting 590,644 now
with the new driver), stty shows "rows 40; columns 80" the first time I start
Konsole, and "rows 0; columns 0;" after that.

As for the resize command, I've found it's not necessary to eval it. Starting
with stty showing "rows 0; columns 0;", just "resize" or "resize > /dev/null"
gives the required result.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list