LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Konsole window size weirdness (https://www.linuxquestions.org/questions/linux-software-2/konsole-window-size-weirdness-4175665553/)

rnturn 12-07-2019 12:49 AM

Konsole window size weirdness
 
Let's get this out of the way: openSUSE Leap 15.1 (up to date w/ patches) running KDE.

About the first thing I ever do with a new Linux setup is set the default Konsole terminal size to 80x24 with Courier as the font ("12.0" in this case) in the "Shell" profile. I don't use the "Tabs" feature and the Tab bar is not being displayed anyway.

I have Konsole added to the panel to quickly launch it. But... when I launch it, I've been getting 80x25 as the size (as reported by "stty -a").

I've double checked the "Shell" profile and it's set to 80x24. I've created a new profile ("Standard") to 80x24. I edited the properties of the panel icon to include the "--profile <profile-name>" command line switch to force a specific profile and that didn't make any difference---I still 80x25. I created a "Wide" profile -- 132x24 -- and issued "konsole --profile Wide" and got a "132x25" window.

If I set up a profile to have a non-standard (non-VT-100, anyway) 23 rows, I get 24 when I launch konsole. Makes no sense at all that one should have to do this.

I checked to see if there was any KDE window properties/rules defined (via "Special Window Settings...") and there were none (see below, though).

In some cases, after I've opened a new konsole next to an exiting konsole window and gotten different font sizes. Same size window but the rows/cols were obviously different---in one case I wound up with a 72x20 window. This is what happened to night and got me checking other terminal window properties. I've probably been using 80x25 windows for quite some time but never realized it.

I didn't want to enforce a window size via the Special Settings dialog -- I often expand a konsole to full screen when tailing log files with long lines -- and I'm betting that going that route is going to present problems one day. But I'm experimenting with "Size -> Remember" and "Obey geometry -> Force temporarily -> No" to see how that goes. I'm sure the window size will be consistent but who knows about the row/col count will wind up being should the font size be ignored.

And there's always the venerable "xterm". I fired up an xterm and ran "konsole &" and checked the rows/cols with the Special Setting in effect: "80x24". After disabling the "Size -> Remember" setting and rerunning "konsole &", I get "80x25". So it doesn't seem to matter how konsole is being launched. (Moving back to xterm is, I suppose, always an option---at least it hasn't screwed up the row count.)

Q: Has anyone else seen konsole do strange things like ignore profile settings?

Q: What could be adding the extra row? (Baker's Two Dozen? Ask for 24 rows and get one free?)

TIA...

Update: After digging deep into the links returned by The Google, it appears that Konsole has been having a tough time dealing with window sizing for as many as 15 years. Apparently terminal emulation doesn't have the sex appeal that would get the maintainers' attention that other aspects of the desktop do.

scasey 12-08-2019 01:35 PM

My recollection from back in the day when consoles/terminals only had one size is that the 80x24 screen always actually had 25 lines. The extra line is used to display the prompt on a full screen.

That is, there are 24 usable display lines.


All times are GMT -5. The time now is 10:19 PM.