Bug 74499 - characters are lost when resizing konsole window
Summary: characters are lost when resizing konsole window
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-07 18:47 UTC by Eduardo Robles Elvira
Modified: 2006-08-11 12:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
lost characters (186.78 KB, image/png)
2006-04-26 12:54 UTC, Marijn Schouten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Robles Elvira 2004-02-07 18:47:48 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
Compiler:          gcc versión 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice) $ gcc -v
Leyendo especificaciones de /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs
Configurado con: /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,ada,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext
Modelo de hilos: posix
gcc versión 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
OS:          Linux

Characters are lost when resizing konsole window

This error is in every version of konsole I've tried. The last one is kde 3.2rc1.

How to reproduce:
1. Start "konsole" app
2. execute any command with a considerable width output (i.e. $ gcc -v or $ uname -a)
Characters are aranged the way they should. If there are large lines (without a "\n" or "newline"), then they're arranged in various lines so that all of the characters appear and none is hidden out of the window border.

3. Resize the window width so that the window have a lesser area and some of the characters that were the output of the executed command became hidden.

4. Resize the window width to a bigger value. The characters that were hidden before have disappeared!

Expected Behaviour:


1. Start "konsole" app
2. execute any command with a considerable width output (i.e. $ gcc -v or $ uname -a)
Characters are aranged the way they should. If there are large lines (without a "\n" or "newline"), then they're arranged in various lines so that all of the characters appear and none is hidden out of the window border.

3. Resize the window width so that the window have a lesser area and some of the characters that were the output of the executed command became hidden.

4. Resize the window width to a bigger value. The characters that were hidden before appear  just as they were before.

Useful Information:

When writting this bug, I've tried other terminals to see what's therir behaviour, and I've found that the only one that behaves the way I've described as good is the gnome-terminal. I think it's a good thinkto try it and see what I mean.
Comment 1 Kurt Hindenburg 2004-02-25 18:28:13 UTC
Yes, this is a strange behavior in konsole.  Looks kindy funny when you resize to a bigger width.  xterm has the same behavior.  It looks like konsole should redraw the image upon window size change.
Comment 2 Eduardo Robles Elvira 2004-05-23 16:23:38 UTC
Kurt. V. Hindenburg:
Please, can you marjk this as confirmed or something ? =)
Comment 3 Sebastien 2004-10-13 23:54:24 UTC
Interesting.

Why not a wordwrapping feature?

ie. you resize down the window and the characters that would become hidden are pushed to the line below, as it's done in KWrite when resizing the window!

Would be useful if you start a 80*40 terminal, enter a command and then discover the output is big: resize the window up and text is worwrapped in a beautiful way, displaying data (eg. mysql table output) as the developer wanted it would ideally.

Yes, geeks can argue it's not usual for UNIX users that the console is wordwrapped, but please get back your earlier eyes, when computers was more a magic than a "easy"/"under control" science, when every features you discovered was new and exciting:
When I discovered that terminal wasn't wordrapped it seemed very strange to me, and quite broken.
Of course, since then I'm used a lot of computers and I find it normal.
But that's a wrong assumption: we were forced to think wordwrapping is not natural on terminals.
Comment 4 Marijn Schouten 2006-04-26 12:54:23 UTC
Created attachment 15782 [details]
lost characters

This bug is still/again in kde 3.5.2.
Note that characters farther up (off screen when you're not scrolled up) are
not lost.
Comment 5 Marijn Schouten 2006-04-26 12:57:33 UTC
this is not a wish but a bug. The wordwrap is a wish, but it's not this bug.
Comment 6 Robert Knight 2006-08-11 12:28:14 UTC
Fixed with SVN commit #571962 (will appear in KDE 4).  I haven't implemented the word-wrap idea, just allowed lines to "remember" characters that no longer fit on the screen when you resize the window to make it smaller.

The reason this used to happen in Konsole is probably the same reason it happens in Xterm.  Konsole used to store the current screen image in one big chunk of contiguous memory - which means that all lines on the screen always had to be the same length, so characters were lost when resizing the window to make it smaller.