[Konsole-devel] [Bug 292452] New: konsole setImageSize escape sequence resizes text but not window
John Haxby
john.haxby at oracle.com
Thu Jan 26 11:22:11 UTC 2012
https://bugs.kde.org/show_bug.cgi?id=292452
Summary: konsole setImageSize escape sequence resizes text but
not window
Product: konsole
Version: unspecified
Platform: Fedora RPMs
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: konsole-devel at kde.org
ReportedBy: john.haxby at oracle.com
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.
--
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