Bug 102886 - cat-ting file containing echo "ESC]" displays incorrectly
Summary: cat-ting file containing echo "ESC]" displays incorrectly
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.5
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-30 21:45 UTC by Cédric Bellegarde
Modified: 2008-06-02 07:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Debian configuration file (5.24 KB, text/plain)
2005-03-30 21:47 UTC, Cédric Bellegarde
Details

Note You need to log in before you can comment on or make changes to this bug.
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.