Bug 292452 - konsole setImageSize escape sequence resizes text but not window
Summary: konsole setImageSize escape sequence resizes text but not window
Status: RESOLVED DUPLICATE of bug 238073
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-26 11:22 UTC by John Haxby
Modified: 2012-01-26 11:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Haxby 2012-01-26 11:22:11 UTC
Version:           unspecified (using KDE 4.7.4) 
OS:                Linux

I thought for some time that the Esc[8;<rows>;<cols>t escape sequence no longer did anything.   However, I find that, for example "Esc[8;40;24t" makes the terminal work as though it is 40x24 (lines wrap at column 40) although the window size doesn't change.

setImageSize(), called when the escape sequence is received, calls resizeImage() and which does all the work necessary to make the size as specified but doesn't do anything at all to set the window size.

Interestingly, perhaps, when a new tab is created, setImageSize() is also called to set the image size for the new tab.  In this case, of course, you wouldn't expect the window size to change.

In KDE 3.5 there was a global configuration option to allow programs to change the window size and setting this allows Esc[8;<cols>;<rows>t to resize the window and seems to be otherwise ignored (I haven't checked in detail to see what happens, sorry).

Fixing this would also allow those people who want an easy way to set specific geometries to be satisfied: the menu entry would simply call the same function that the escape sequence calls.

Reproducible: Always

Steps to Reproduce:
Use this shell function: 

ts () {

    local cols=${1:-80} rows=${2:-24};
    echo -ne "\\e[8;${rows};${cols}t"
}

and use, for exmaple, "ts 40 24" to resize the terminal.


Actual Results:  
Notice that long lines now wrap at column 40 instead of column 80 although the window size is unchanged.

Expected Results:  
I expected the window size to change like it used to do (when permitted by configuration) and like it does for xterm.
Comment 1 Jekyll Wu 2012-01-26 11:46:33 UTC
Thanks for reporting.

This is actually a known issue tracked at bug 238073.

*** This bug has been marked as a duplicate of bug 238073 ***