Bug 102886

Summary: cat-ting file containing echo "ESC]" displays incorrectly
Product: [Applications] konsole Reporter: Cédric Bellegarde <web>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 1.5   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Debian configuration file

Description Cédric Bellegarde 2005-03-30 21:45:56 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

If i cat the file in attached file, konsole don't ouput it correctly, it work with xterm
Comment 1 Cédric Bellegarde 2005-03-30 21:47:04 UTC
Created attachment 10434 [details]
Debian configuration file
Comment 2 Kurt Hindenburg 2005-03-30 22:04:38 UTC
Need more info.  What version of KDE/Konsole?  Are you using non-English term?

perhaps a screenshot of the offense?
Comment 3 Cédric Bellegarde 2005-03-30 23:13:31 UTC
http://hibbert.univ-lille3.fr/~cbellegarde/konsole.png
Comment 4 Cédric Bellegarde 2006-02-21 23:58:54 UTC
Always having this bug with kde 3.5.1 and kubuntu packages :(
Comment 5 Kurt Hindenburg 2006-02-26 18:39:01 UTC
WELL!!! That is very strange....
Comment 6 Kurt Hindenburg 2006-02-26 18:40:35 UTC
Here's the offending line 51:

	    echo -n "^[]R"

Konsole doesn't like the the escape ]R 
Comment 7 Kurt Hindenburg 2006-07-04 18:58:51 UTC
If you 'less file.log', you'll see less changes the line to  'echo -n "R"'.

Granted it works in xterm when you 'cat' the file.


Comment 8 Kurt Hindenburg 2006-07-04 19:03:05 UTC
When catting from gnome-terminal, the line changes to 'echo -n "?]R"'

where ? is the greater-than-equal to sign...
Comment 9 Robert Knight 2006-08-07 17:55:04 UTC
If you want to cat files containing escape sequences you need to use "cat -v".

It doesn't display as you would expect in xterm either - notice that the offending line appears as 'echo -n ""' instead of 'echo -n "^[]R"'.

There is something to look into here because Xterm's behaviour is different from Konsole's.
Comment 10 Robert Knight 2008-06-02 07:37:16 UTC
Closing as per comment #9, cat needs to be run with "-v" to cat files containing escape sequences.