[Konsole-devel] [Bug 127516] dropped lines in program output to console

Thomas Duebendorfer thomas at duebendorfer.ch
Tue Aug 8 14:25:24 UTC 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=127516         




------- Additional Comments From thomas duebendorfer ch  2006-08-08 16:25 -------
The problem seems to be connected to resizing the konsole window and then copying from the konsole scrollback buffer. I can easily reproduce missing characters but could not reproduce missing lines. I use konsole with a 80 char default window width.

Using the following C program megaoutput.c, I write 100 lines of text to stdout:
#include <stdio.h>
int main(int argc, char** argv) {
  char *s = "This is a rather long line of English written nonsense text " \
    "that somewhat exceeds 80 characters per line.";
  int i = 100;

  while(i > 0) {
   printf("%d - %s\n", i, s);
   i--;
  }
}

# gcc megaoutput.c; mv a.out megaoutput
# Then run it with ./megaoutput

Now I select the last ~50 lines with the left mouse button and scroll up (move mouse over top window border). Pasting it to e.g. emacs with the middle mouse button yields the correct text with complete text lines.

Now I resize konsole to ~60 chars window width and copy the same text from the scrollback buffer again. Now each line is missing some characters. Even when resizing the window again to 80 chars and copying again, some previously output characters stay missing. Apparently the scrollback buffer looses some of its content when resizing the konsole window and copying and/or scrolling.



More information about the konsole-devel mailing list