Summary: | kde-base/konsole-4.6.1: LINES incorrect for new window size if menu shows | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin von Gagern <Martin.vGagern> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=176902 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
Flag to emit imageSizeChanged once |
Can't do much about this here... could you please file a bug at bugs.kde.org and link to it in the "See Also" field? Found an upstream bug report: https://bugs.kde.org/show_bug.cgi?id=176902 Created attachment 268679 [details, diff]
Flag to emit imageSizeChanged once
With information provided in the upstream report, I was able to create this patch, which I attached upstream as well. Simply drop it in /etc/portage/patches/kde-base/konsole/ if you are a user, or include it in a revbumped ebuild if you are a maintainer.
Patch looks good, thanks! Added for 4.6.4-r1 and later. |
Created attachment 265165 [details] emerge --info When opening a new window in konsole (either forking an existing process or actually starting a new process using --nofork), the bash instance in that new window will start with an incorrect idea of the terminal size: the LINES variable will be set to 24 even if the terminal is actually at 40 columns. Calling "resize" will give the correct size. The issue only occurs when the menu bar ish showing, though. 1. Start konsole 2. Ctrl+Shift+M to hide menu bar, if it is showing 3. Ctrl+Shift+N to open new instance (with menu as well) 4. $ echo $LINES 41 5. $ resize | grep ^LINES LINES=41; 6. Close new window, going back to the one from 1. 7. Ctrl+Shift+M to show menu bar 8. Ctrl+Shift+N to open new instance (without menu this time) 9. $ echo $LINES 24 10. $ resize | grep ^LINES LINES=40; Step 9 is where things are not as they should be, the rest is for comparison. Unfortunate side effects is that e.g. less will occupy only part of the screen, which in turn can lead to confusion when files appear shorter than they are.