Bug 155153 - Text copied from Konsole window is corrupted on the first line.
Summary: Text copied from Konsole window is corrupted on the first line.
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-05 18:29 UTC by Jon
Modified: 2008-01-05 19:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (475 bytes, patch)
2008-01-05 18:40 UTC, Dmitriy Taychenachev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon 2008-01-05 18:29:57 UTC
Version:           2.0 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 4.2.2 (Gentoo 4.2.2 p1.0) 
OS:                Linux

I am using Konsole version 2.0 from the kde 4.0.0 tag in the SVN.

I noticed this issue when I was copying text from konsole for help in IRC. The first line of the text would get corrupted by information that is in later lines of text. This only happens with the first newline, so if a command gives more than one line of text, it's fine for the other lines. I would highlight the text and then right-click to select copy.

Simple example:
# ls -l /proc/21660/exe              8:50 /proc/2
lrwxrwxrwx 1 jon users 0 2008-01-05 08:50 /proc/21660/exe - gt; /usr/kde/svn/lib/kde4/libexec/klauncher

It cuts off at the width of the terminal, I think. That is why it ends with a single 2.

Thanks.
Comment 1 Jon 2008-01-05 18:32:18 UTC
On the second line of that example, the browser or something added in those big tabs. Everything lined up fine in the text box, like the 8:50 in the first line, lined up with the second line.
Comment 2 Dmitriy Taychenachev 2008-01-05 18:40:06 UTC
Created attachment 22849 [details]
patch

This is happening because of incorrect detection of characters to be copied as
`selected'.
Comment 3 Robert Knight 2008-01-05 19:10:23 UTC
Fixed by SVN commit #757710.  Thanks for the patch Dimitriy.
Comment 4 Jon 2008-01-05 19:43:15 UTC
I can confirm that it works. I no longer have the weirdness going on in my copied text. Thanks for the quick responses and fix.

Cheers all.